Lines Matching refs:buf_offs
432 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local
440 buf_offs = c->ihead_offs; in layout_in_empty_space()
449 if (buf_offs + next_len > c->leb_size) in layout_in_empty_space()
464 buf_offs = 0; in layout_in_empty_space()
469 offs = buf_offs + used; in layout_in_empty_space()
515 buf_offs + used + next_len <= c->leb_size && in layout_in_empty_space()
520 buf_offs + used + next_len <= c->leb_size) in layout_in_empty_space()
526 buf_offs += blen; in layout_in_empty_space()
528 if (buf_offs + next_len > c->leb_size) { in layout_in_empty_space()
530 c->leb_size - buf_offs, blen - used, in layout_in_empty_space()
542 err = ubifs_update_one_lp(c, lnum, c->leb_size - buf_offs, in layout_in_empty_space()
550 c->dbg->new_ihead_offs = buf_offs; in layout_in_empty_space()
828 int i, lnum, offs, len, next_len, buf_len, buf_offs, used; in write_index() local
840 buf_offs = c->ihead_offs; in write_index()
849 if (buf_offs + next_len > c->leb_size) { in write_index()
910 buf_offs = 0; in write_index()
914 offs = buf_offs + used; in write_index()
979 nxt_offs = buf_offs + used + next_len; in write_index()
992 err = ubifs_leb_write(c, lnum, c->cbuf, buf_offs, blen); in write_index()
995 buf_offs += blen; in write_index()
1015 buf_offs != c->dbg->new_ihead_offs) { in write_index()
1021 c->ihead_offs = buf_offs; in write_index()