Lines Matching refs:list
22 static inline bool verify_emptyness(sys_dlist_t *list) in verify_emptyness() argument
30 if (!sys_dlist_is_empty(list)) { in verify_emptyness()
34 if (sys_dlist_peek_head(list)) { in verify_emptyness()
38 if (sys_dlist_peek_tail(list)) { in verify_emptyness()
42 if (sys_dlist_len(list) != 0) { in verify_emptyness()
47 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
55 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
64 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
73 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
84 static inline bool verify_content_amount(sys_dlist_t *list, int amount) in verify_content_amount() argument
92 if (sys_dlist_is_empty(list)) { in verify_content_amount()
96 if (!sys_dlist_peek_head(list)) { in verify_content_amount()
100 if (!sys_dlist_peek_tail(list)) { in verify_content_amount()
104 if (sys_dlist_len(list) != amount) { in verify_content_amount()
109 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
118 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
127 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
136 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_content_amount()
147 static inline bool verify_tail_head(sys_dlist_t *list, in verify_tail_head() argument
152 if (sys_dlist_peek_head(list) != head) { in verify_tail_head()
156 if (sys_dlist_peek_tail(list) != tail) { in verify_tail_head()
161 if (sys_dlist_peek_head(list) != sys_dlist_peek_tail(list)) { in verify_tail_head()
165 if (sys_dlist_peek_head(list) == sys_dlist_peek_tail(list)) { in verify_tail_head()