Lines Matching refs:offs
38 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument
53 br->offs = cpu_to_le32(zbr->offs); in make_idx_node()
65 znode->offs = offs; in make_idx_node()
77 zbr->offs = offs; in make_idx_node()
81 c->zroot.offs = offs; in make_idx_node()
168 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() argument
180 else if (offs < o->offs) in find_old_idx()
182 else if (offs > o->offs) in find_old_idx()
204 int level, int lnum, int offs) in is_idx_node_in_use() argument
208 ret = is_idx_node_in_tnc(c, key, level, lnum, offs); in is_idx_node_in_use()
212 if (find_old_idx(c, lnum, offs)) in is_idx_node_in_use()
266 snod->offs); in layout_leb_in_gaps()
280 gap_end = snod->offs; in layout_leb_in_gaps()
288 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
416 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local
453 offs = buf_offs + used; in layout_in_empty_space()
456 znode->offs = offs; in layout_in_empty_space()
468 zbr->offs = offs; in layout_in_empty_space()
472 c->zroot.offs = offs; in layout_in_empty_space()
810 int i, lnum, offs, len, next_len, buf_len, buf_offs, used; in write_index() local
855 br->offs = cpu_to_le32(zbr->offs); in write_index()
874 offs = buf_offs + used; in write_index()
876 if (lnum != znode->lnum || offs != znode->offs || in write_index()