Lines Matching refs:member
15 #define container_of(ptr, type, member) ({ \ argument
16 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
17 (type *)( (char *)__mptr - offsetof(type,member) );})
330 #define list_entry(ptr, type, member) \ argument
331 container_of(ptr, type, member)
380 #define list_for_each_entry(pos, head, member) \ argument
381 for (pos = list_entry((head)->next, typeof(*pos), member), \
382 prefetch(pos->member.next); \
383 &pos->member != (head); \
384 pos = list_entry(pos->member.next, typeof(*pos), member), \
385 prefetch(pos->member.next))
393 #define list_for_each_entry_reverse(pos, head, member) \ argument
394 for (pos = list_entry((head)->prev, typeof(*pos), member), \
395 prefetch(pos->member.prev); \
396 &pos->member != (head); \
397 pos = list_entry(pos->member.prev, typeof(*pos), member), \
398 prefetch(pos->member.prev))
407 #define list_prepare_entry(pos, head, member) \ argument
408 ((pos) ? : list_entry(head, typeof(*pos), member))
417 #define list_for_each_entry_continue(pos, head, member) \ argument
418 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
419 prefetch(pos->member.next); \
420 &pos->member != (head); \
421 pos = list_entry(pos->member.next, typeof(*pos), member), \
422 prefetch(pos->member.next))
431 #define list_for_each_entry_safe(pos, n, head, member) \ argument
432 for (pos = list_entry((head)->next, typeof(*pos), member), \
433 n = list_entry(pos->member.next, typeof(*pos), member); \
434 &pos->member != (head); \
435 pos = n, n = list_entry(n->member.next, typeof(*n), member))
479 #define list_for_each_entry_rcu(pos, head, member) \ argument
480 for (pos = list_entry((head)->next, typeof(*pos), member), \
481 prefetch(pos->member.next); \
482 &pos->member != (head); \
483 pos = list_entry(pos->member.next, typeof(*pos), member), \
485 prefetch(pos->member.next))
646 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
663 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
666 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
675 #define hlist_for_each_entry_continue(tpos, pos, member) \ argument
678 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
687 #define hlist_for_each_entry_from(tpos, pos, member) \ argument
689 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
700 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
703 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
717 #define hlist_for_each_entry_rcu(tpos, pos, head, member) \ argument
720 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \