Lines Matching refs:list

23 static inline bool verify_emptyness(sys_slist_t *list)  in verify_emptyness()  argument
31 if (!sys_slist_is_empty(list)) { in verify_emptyness()
35 if (sys_slist_peek_head(list)) { in verify_emptyness()
39 if (sys_slist_peek_tail(list)) { in verify_emptyness()
43 if (sys_slist_len(list) != 0) { in verify_emptyness()
48 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
56 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
65 SYS_SLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
74 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
85 static inline bool verify_content_amount(sys_slist_t *list, int amount) in verify_content_amount() argument
93 if (sys_slist_is_empty(list)) { in verify_content_amount()
97 if (!sys_slist_peek_head(list)) { in verify_content_amount()
101 if (!sys_slist_peek_tail(list)) { in verify_content_amount()
105 if (sys_slist_len(list) != amount) { in verify_content_amount()
110 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
119 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
128 SYS_SLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
137 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_content_amount()
148 static inline bool verify_tail_head(sys_slist_t *list, in verify_tail_head() argument
153 if (sys_slist_peek_head(list) != head) { in verify_tail_head()
157 if (sys_slist_peek_tail(list) != tail) { in verify_tail_head()
162 if (sys_slist_peek_head(list) != sys_slist_peek_tail(list)) { in verify_tail_head()
166 if (sys_slist_peek_head(list) == sys_slist_peek_tail(list)) { in verify_tail_head()