• Home
  • Raw
  • Download

Lines Matching refs:member

7 #define container_of(ptr, type, member) ({			\  argument
8 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
9 (type *)( (char *)__mptr - offsetof(type,member) );})
52 #define list_entry(ptr, type, member) \ argument
53 container_of(ptr, type, member)
55 #define list_first_entry(ptr, type, member) \ argument
56 list_entry((ptr)->next, type, member)
58 #define list_last_entry(ptr, type, member) \ argument
59 list_entry((ptr)->prev, type, member)
61 #define list_next_entry(pos, member) \ argument
62 list_entry((pos)->member.next, typeof(*(pos)), member)
64 #define list_prev_entry(pos, member) \ argument
65 list_entry((pos)->member.prev, typeof(*(pos)), member)
67 #define list_for_each_entry(pos, head, member) \ argument
68 for (pos = list_first_entry(head, typeof(*pos), member); \
69 &pos->member != (head); \
70 pos = list_next_entry(pos, member))
72 #define list_for_each_entry_safe(pos, n, head, member) \ argument
73 for (pos = list_first_entry(head, typeof(*pos), member), \
74 n = list_next_entry(pos, member); \
75 &pos->member != (head); \
76 pos = n, n = list_next_entry(n, member))
78 #define list_for_each_entry_reverse(pos, head, member) \ argument
79 for (pos = list_last_entry(head, typeof(*pos), member); \
80 &pos->member != (head); \
81 pos = list_prev_entry(pos, member))
118 #define hlist_entry_safe(ptr, type, member) \ argument
120 ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
123 #define hlist_for_each_entry(pos, head, member) \ argument
124 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
126 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))