Home
last modified time | relevance | path

Searched refs:lachead (Results 1 – 2 of 2) sorted by relevance

/external/libwebsockets/lib/misc/lwsac/
Dlwsac.c75 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()
[all …]
Dcached-file.c81 struct lwsac_head *lachead = (struct lwsac_head *)&lac->head[1]; in lwsac_use_cached_file_start() local
83 lachead->refcount++; in lwsac_use_cached_file_start()
91 struct lwsac_head *lachead; in lwsac_use_cached_file_end() local
97 lachead = (struct lwsac_head *)&lac->head[1]; in lwsac_use_cached_file_end()
99 if (!lachead->refcount) in lwsac_use_cached_file_end()
102 if (lachead->refcount && !--lachead->refcount && lachead->detached) { in lwsac_use_cached_file_end()
112 struct lwsac_head *lachead = NULL; in lwsac_use_cached_file_detach() local
115 lachead = (struct lwsac_head *)&lac->head[1]; in lwsac_use_cached_file_detach()
117 lachead->detached = 1; in lwsac_use_cached_file_detach()
118 if (lachead->refcount) in lwsac_use_cached_file_detach()