Lines Matching refs:offs
26 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument
42 br->offs = cpu_to_le32(zbr->offs); in make_idx_node()
58 znode->offs = offs; in make_idx_node()
70 zbr->offs = offs; in make_idx_node()
75 c->zroot.offs = offs; in make_idx_node()
163 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() argument
175 else if (offs < o->offs) in find_old_idx()
177 else if (offs > o->offs) in find_old_idx()
199 int level, int lnum, int offs) in is_idx_node_in_use() argument
203 ret = is_idx_node_in_tnc(c, key, level, lnum, offs); in is_idx_node_in_use()
207 if (find_old_idx(c, lnum, offs)) in is_idx_node_in_use()
261 snod->offs); in layout_leb_in_gaps()
275 gap_end = snod->offs; in layout_leb_in_gaps()
283 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
432 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local
469 offs = buf_offs + used; in layout_in_empty_space()
472 znode->offs = offs; in layout_in_empty_space()
484 zbr->offs = offs; in layout_in_empty_space()
488 c->zroot.offs = offs; in layout_in_empty_space()
828 int i, lnum, offs, len, next_len, buf_len, buf_offs, used; in write_index() local
875 br->offs = cpu_to_le32(zbr->offs); in write_index()
914 offs = buf_offs + used; in write_index()
916 if (lnum != znode->lnum || offs != znode->offs || in write_index()