Lines Matching refs:ofs
63 return lac->ofs;
84 if (bf->alloc_size - bf->ofs < lwsac_align(amount))
89 memset(((uint8_t *)bf) + bf->ofs, 0, lwsac_align(amount));
90 bf->ofs += lwsac_align(amount);
99 size_t ofs, alloc, al, hp;
114 if (bf->alloc_size - bf->ofs >= ensure)
125 if (bf->alloc_size - bf->ofs >= ensure)
158 * belabouring the point... ofs is aligned to the platform's
161 bf->ofs = sizeof(*bf);
171 bf->ofs += sizeof(*lachead);
188 ofs = bf->ofs;
192 memset((char *)bf + ofs + ensure, 0, al - ensure);
194 bf->ofs += al;
195 if (bf->ofs >= bf->alloc_size)
196 bf->ofs = bf->alloc_size;
198 return (char *)bf + ofs;
218 *end = ((uint8_t *)head) + head->ofs - len;
220 if (head->ofs - sizeof(*head) >= len)
242 overhead += (head->alloc_size - head->ofs) + sizeof(*head);