Lines Matching refs:head
38 struct nl_list_head *head) in nl_list_add_tail() argument
40 __nl_list_add(obj, head->prev, head); in nl_list_add_tail()
44 struct nl_list_head *head) in nl_list_add_head() argument
46 __nl_list_add(obj, head, head->next); in nl_list_add_head()
55 static inline int nl_list_empty(struct nl_list_head *head) in nl_list_empty() argument
57 return head->next == head; in nl_list_empty()
67 #define nl_list_at_tail(pos, head, member) \ argument
68 ((pos)->member.next == (head))
70 #define nl_list_at_head(pos, head, member) \ argument
71 ((pos)->member.prev == (head))
76 #define nl_list_first_entry(head, type, member) \ argument
77 nl_list_entry((head)->next, type, member)
79 #define nl_list_for_each_entry(pos, head, member) \ argument
80 for (pos = nl_list_entry((head)->next, typeof(*pos), member); \
81 &(pos)->member != (head); \
84 #define nl_list_for_each_entry_safe(pos, n, head, member) \ argument
85 for (pos = nl_list_entry((head)->next, typeof(*pos), member), \
87 &(pos)->member != (head); \
90 #define nl_init_list_head(head) \ argument
91 do { (head)->next = (head); (head)->prev = (head); } while (0)