Lines Matching refs:lachead
75 struct lwsac_head *lachead;
79 lachead = (struct lwsac_head *)&head[1];
81 bf = lachead->curr;
98 struct lwsac_head *lachead = NULL;
103 lachead = (struct lwsac_head *)&bf[1];
123 if (lachead && lachead->curr) {
124 bf = lachead->curr;
171 bf->ofs += sizeof(*lachead);
172 lachead = (struct lwsac_head *)&bf[1];
173 memset(lachead, 0, sizeof(*lachead));
175 if (lachead->curr)
176 lachead->curr->next = bf;
178 lachead->curr = bf;
183 lachead->total_alloc_size += alloc;
184 lachead->total_blocks++;
281 struct lwsac_head *lachead;
288 lachead = (struct lwsac_head *)&head[1];
291 (int)(lachead->total_alloc_size >> 10), lachead->total_blocks);
298 struct lwsac_head *lachead;
303 lachead = (struct lwsac_head *)&head[1];
304 return lachead->total_alloc_size;
310 struct lwsac_head *lachead = (struct lwsac_head *)&head[1];
312 lachead->refcount++;
314 __func__, head, lachead->detached, lachead->refcount);
320 struct lwsac_head *lachead;
325 lachead = (struct lwsac_head *)&(*head)[1];
327 if (!lachead->refcount)
330 lachead->refcount--;
333 __func__, *head, lachead->detached, lachead->refcount);
335 if (lachead->detached && !lachead->refcount) {
344 struct lwsac_head *lachead;
349 lachead = (struct lwsac_head *)&(*head)[1];
351 lachead->detached = 1;
352 if (!lachead->refcount) {
357 __func__, *head, lachead->refcount);