Lines Matching refs:used
432 int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; in layout_in_empty_space() local
444 used = 0; in layout_in_empty_space()
465 used = 0; in layout_in_empty_space()
469 offs = buf_offs + used; in layout_in_empty_space()
510 wlen = used + len; in layout_in_empty_space()
511 used += ALIGN(len, 8); 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()
530 c->leb_size - buf_offs, blen - used, in layout_in_empty_space()
536 used -= blen; in layout_in_empty_space()
537 if (used < 0) in layout_in_empty_space()
538 used = 0; in layout_in_empty_space()
539 avail = buf_len - used; in layout_in_empty_space()
543 blen - used, 0, 0); in layout_in_empty_space()
828 int i, lnum, offs, len, next_len, buf_len, buf_offs, used; in write_index() local
844 used = 0; in write_index()
863 idx = c->cbuf + used; in write_index()
911 used = 0; in write_index()
914 offs = buf_offs + used; in write_index()
966 wlen = used + len; in write_index()
967 used += ALIGN(len, 8); in write_index()
979 nxt_offs = buf_offs + used + next_len; in write_index()
1004 used -= blen; in write_index()
1005 if (used < 0) in write_index()
1006 used = 0; in write_index()
1007 avail = buf_len - used; in write_index()
1008 memmove(c->cbuf, c->cbuf + blen, used); in write_index()