Lines Matching refs:ofs
63 return lac->ofs; in lwsac_get_tail_pos()
84 if (bf->alloc_size - bf->ofs < lwsac_align(amount)) in lwsac_extend()
89 memset(((uint8_t *)bf) + bf->ofs, 0, lwsac_align(amount)); in lwsac_extend()
90 bf->ofs += lwsac_align(amount); in lwsac_extend()
99 size_t ofs, alloc, al, hp; in _lwsac_use() local
114 if (bf->alloc_size - bf->ofs >= ensure) in _lwsac_use()
125 if (bf->alloc_size - bf->ofs >= ensure) in _lwsac_use()
161 bf->ofs = sizeof(*bf); in _lwsac_use()
171 bf->ofs += sizeof(*lachead); in _lwsac_use()
188 ofs = bf->ofs; in _lwsac_use()
192 memset((char *)bf + ofs + ensure, 0, al - ensure); in _lwsac_use()
194 bf->ofs += al; in _lwsac_use()
195 if (bf->ofs >= bf->alloc_size) in _lwsac_use()
196 bf->ofs = bf->alloc_size; in _lwsac_use()
198 return (char *)bf + ofs; in _lwsac_use()
218 *end = ((uint8_t *)head) + head->ofs - len; in lwsac_scan_extant()
220 if (head->ofs - sizeof(*head) >= len) in lwsac_scan_extant()
242 overhead += (head->alloc_size - head->ofs) + sizeof(*head); in lwsac_total_overhead()