Lines Matching refs:member

18 #define container_of(ptr, type, member) ({			\  argument
19 typeof( ((type *)0)->member ) *__mptr = (ptr); \
20 (type *)( (char *)__mptr - offsetof(type,member) );})
45 #define list_top(head, type, member) \ argument
48 list_empty(_head) ? NULL : list_entry(_head->next, type, member); \
267 #define list_entry(ptr, type, member) \ argument
268 container_of(ptr, type, member)
302 #define list_for_each_entry(pos, head, member) \ argument
303 for (pos = list_entry((head)->next, typeof(*pos), member); \
304 &pos->member != (head); \
305 pos = list_entry(pos->member.next, typeof(*pos), member))
313 #define list_for_each_entry_reverse(pos, head, member) \ argument
314 for (pos = list_entry((head)->prev, typeof(*pos), member); \
315 &pos->member != (head); \
316 pos = list_entry(pos->member.prev, typeof(*pos), member))
326 #define list_for_each_entry_continue(pos, head, member) \ argument
327 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
328 &pos->member != (head); \
329 pos = list_entry(pos->member.next, typeof(*pos), member))
338 #define list_for_each_entry_safe(pos, n, head, member) \ argument
339 for (pos = list_entry((head)->next, typeof(*pos), member), \
340 n = list_entry(pos->member.next, typeof(*pos), member); \
341 &pos->member != (head); \
342 pos = n, n = list_entry(n->member.next, typeof(*n), member))
455 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
472 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
474 pos && ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
483 #define hlist_for_each_entry_continue(tpos, pos, member) \ argument
485 pos && ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
494 #define hlist_for_each_entry_from(tpos, pos, member) \ argument
495 for (; pos && ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
506 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
509 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \