Lines Matching refs:member
60 #define nl_container_of(ptr, type, member) ({ \ argument
61 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
62 (type *)( (char *)__mptr - ((size_t) &((type *)0)->member));})
64 #define nl_list_entry(ptr, type, member) \ argument
65 nl_container_of(ptr, type, member)
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); \
82 (pos) = nl_list_entry((pos)->member.next, typeof(*(pos)), member))
84 #define nl_list_for_each_entry_safe(pos, n, head, member) \ argument
85 for (pos = nl_list_entry((head)->next, typeof(*pos), member), \
86 n = nl_list_entry(pos->member.next, typeof(*pos), member); \
87 &(pos)->member != (head); \
88 pos = n, n = nl_list_entry(n->member.next, typeof(*n), member))