Lines Matching refs:MEMBER
7 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
9 #define container_of(ptr, type, member) ({ \
10 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
11 (type *)( (char *)__mptr - offsetof(type,member) );})
71 #define list_entry(ptr, type, member) \
72 container_of(ptr, type, member)
80 #define list_for_each_entry(pos, head, member) \
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) \
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))