Lines Matching refs:head
40 struct nl_list_head *head) in nl_list_add_tail() argument
42 __nl_list_add(obj, head->prev, head); in nl_list_add_tail()
46 struct nl_list_head *head) in nl_list_add_head() argument
48 __nl_list_add(obj, head, head->next); in nl_list_add_head()
57 static inline int nl_list_empty(struct nl_list_head *head) in nl_list_empty() argument
59 return head->next == head; in nl_list_empty()
69 #define nl_list_at_tail(pos, head, member) \ argument
70 ((pos)->member.next == (head))
72 #define nl_list_at_head(pos, head, member) \ argument
73 ((pos)->member.prev == (head))
78 #define nl_list_first_entry(head, type, member) \ argument
79 nl_list_entry((head)->next, type, member)
81 #define nl_list_for_each_entry(pos, head, member) \ argument
82 for (pos = nl_list_entry((head)->next, __typeof__(*pos), member); \
83 &(pos)->member != (head); \
86 #define nl_list_for_each_entry_safe(pos, n, head, member) \ argument
87 for (pos = nl_list_entry((head)->next, __typeof__(*pos), member), \
89 &(pos)->member != (head); \
92 #define nl_init_list_head(head) \ argument
93 do { (head)->next = (head); (head)->prev = (head); } while (0)