Lines Matching refs:member
9 #define container_of(ptr, type, member) ({ \ argument
10 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
11 (type *)( (char *)__mptr - offsetof(type,member) );})
71 #define list_entry(ptr, type, member) \ argument
72 container_of(ptr, type, member)
80 #define list_for_each_entry(pos, head, member) \ argument
81 for (pos = list_entry((head)->next, typeof(*pos), member); \
82 &pos->member != (head); \
83 pos = list_entry(pos->member.next, typeof(*pos), member))
84 #define list_for_each_entry_safe(pos, n, head, member) \ argument
85 for (pos = list_entry((head)->next, typeof(*pos), member), \
86 n = list_entry(pos->member.next, typeof(*pos), member); \
87 &pos->member != (head); \
88 pos = n, n = list_entry(n->member.next, typeof(*n), member))