Lines Matching refs:member
68 #define offsetof(type, member) ((long) &((type *) 0)->member)
71 #define dl_list_entry(item, type, member) \
72 ((type *) ((char *) item - offsetof(type, member)))
74 #define dl_list_first(list, type, member) \
76 dl_list_entry((list)->next, type, member))
78 #define dl_list_last(list, type, member) \
80 dl_list_entry((list)->prev, type, member))
82 #define dl_list_for_each(item, list, type, member) \
83 for (item = dl_list_entry((list)->next, type, member); \
84 &item->member != (list); \
85 item = dl_list_entry(item->member.next, type, member))
87 #define dl_list_for_each_safe(item, n, list, type, member) \
88 for (item = dl_list_entry((list)->next, type, member), \
89 n = dl_list_entry(item->member.next, type, member); \
90 &item->member != (list); \
91 item = n, n = dl_list_entry(n->member.next, type, member))
93 #define dl_list_for_each_reverse(item, list, type, member) \
94 for (item = dl_list_entry((list)->prev, type, member); \
95 &item->member != (list); \
96 item = dl_list_entry(item->member.prev, type, member))