Lines Matching refs:list
59 sys_ ## __lname ## _is_empty(sys_ ## __lname ## _t *list) \
61 return (sys_ ## __lname ## _peek_head(list) == NULL); \
82 sys_ ## __lname ## _prepend(sys_ ## __lname ## _t *list, \
86 sys_ ## __lname ## _peek_head(list)); \
87 z_ ## __lname ## _head_set(list, node); \
89 if (sys_ ## __lname ## _peek_tail(list) == NULL) { \
90 z_ ## __lname ## _tail_set(list, \
91 sys_ ## __lname ## _peek_head(list)); \
97 sys_ ## __lname ## _append(sys_ ## __lname ## _t *list, \
102 if (sys_ ## __lname ## _peek_tail(list) == NULL) { \
103 z_ ## __lname ## _tail_set(list, node); \
104 z_ ## __lname ## _head_set(list, node); \
107 sys_ ## __lname ## _peek_tail(list), \
109 z_ ## __lname ## _tail_set(list, node); \
115 sys_ ## __lname ## _append_list(sys_ ## __lname ## _t *list, \
119 if (sys_ ## __lname ## _peek_tail(list) == NULL) { \
120 z_ ## __lname ## _head_set(list, \
124 sys_ ## __lname ## _peek_tail(list), \
127 z_ ## __lname ## _tail_set(list, \
135 sys_ ## __lname ## _t *list, \
141 sys_ ## __lname ## _append_list(list, head, tail); \
147 sys_ ## __lname ## _insert(sys_ ## __lname ## _t *list, \
152 sys_ ## __lname ## _prepend(list, node); \
154 sys_ ## __lname ## _append(list, node); \
164 sys_ ## __lname ## _get_not_empty(sys_ ## __lname ## _t *list) \
167 sys_ ## __lname ## _peek_head(list); \
169 z_ ## __lname ## _head_set(list, \
171 if (sys_ ## __lname ## _peek_tail(list) == node) { \
172 z_ ## __lname ## _tail_set(list, \
173 sys_ ## __lname ## _peek_head(list)); \
181 sys_ ## __lname ## _get(sys_ ## __lname ## _t *list) \
183 return sys_ ## __lname ## _is_empty(list) ? NULL : \
184 sys_ ## __lname ## _get_not_empty(list); \
189 sys_ ## __lname ## _remove(sys_ ## __lname ## _t *list, \
194 z_ ## __lname ## _head_set(list, \
198 if (sys_ ## __lname ## _peek_tail(list) == node) { \
199 z_ ## __lname ## _tail_set(list, \
200 sys_ ## __lname ## _peek_head(list)); \
207 if (sys_ ## __lname ## _peek_tail(list) == node) { \
208 z_ ## __lname ## _tail_set(list, \
218 sys_ ## __lname ## _find_and_remove(sys_ ## __lname ## _t *list, \
224 Z_GENLIST_FOR_EACH_NODE(__lname, list, test) { \
226 sys_ ## __lname ## _remove(list, prev, \
239 sys_##__lname##_t *list, sys_##__nname##_t *node, sys_##__nname##_t **prev) \
244 Z_GENLIST_FOR_EACH_NODE(__lname, list, current) { \
263 static inline size_t sys_##__lname##_len(sys_##__lname##_t * list) \
267 Z_GENLIST_FOR_EACH_NODE(__lname, list, node) { \