Lines Matching refs:member
18 #define container_of(ptr, type, member) ({ \ argument
20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
23 ((type *)(__mptr - offsetof(type, member))); })
158 #define list_entry(ptr, type, member) \ argument
159 container_of(ptr, type, member)
169 #define list_first_entry(ptr, type, member) \ argument
170 list_entry((ptr)->next, type, member)
177 #define list_next_entry(pos, member) \ argument
178 list_entry((pos)->member.next, typeof(*(pos)), member)
186 #define list_entry_is_head(pos, head, member) \ argument
187 (&pos->member == (head))
195 #define list_for_each_entry(pos, head, member) \ argument
196 for (pos = list_first_entry(head, typeof(*pos), member); \
197 !list_entry_is_head(pos, head, member); \
198 pos = list_next_entry(pos, member))
207 #define list_for_each_entry_safe(pos, n, head, member) \ argument
208 for (pos = list_first_entry(head, typeof(*pos), member), \
209 n = list_next_entry(pos, member); \
210 !list_entry_is_head(pos, head, member); \
211 pos = n, n = list_next_entry(n, member))