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