Lines Matching refs:member
326 #define list_entry(ptr, type, member) \ argument
327 container_of(ptr, type, member)
337 #define list_first_entry(ptr, type, member) \ argument
338 list_entry((ptr)->next, type, member)
348 #define list_last_entry(ptr, type, member) \ argument
349 list_entry((ptr)->prev, type, member)
409 #define list_for_each_entry(pos, head, member) \ argument
410 for (pos = list_entry((head)->next, typeof(*pos), member); \
411 prefetch(pos->member.next), &pos->member != (head); \
412 pos = list_entry(pos->member.next, typeof(*pos), member))
420 #define list_for_each_entry_reverse(pos, head, member) \ argument
421 for (pos = list_entry((head)->prev, typeof(*pos), member); \
422 prefetch(pos->member.prev), &pos->member != (head); \
423 pos = list_entry(pos->member.prev, typeof(*pos), member))
433 #define list_prepare_entry(pos, head, member) \ argument
434 ((pos) ? : list_entry(head, typeof(*pos), member))
445 #define list_for_each_entry_continue(pos, head, member) \ argument
446 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
447 prefetch(pos->member.next), &pos->member != (head); \
448 pos = list_entry(pos->member.next, typeof(*pos), member))
459 #define list_for_each_entry_continue_reverse(pos, head, member) \ argument
460 for (pos = list_entry(pos->member.prev, typeof(*pos), member); \
461 prefetch(pos->member.prev), &pos->member != (head); \
462 pos = list_entry(pos->member.prev, typeof(*pos), member))
472 #define list_for_each_entry_from(pos, head, member) \ argument
473 for (; prefetch(pos->member.next), &pos->member != (head); \
474 pos = list_entry(pos->member.next, typeof(*pos), member))
483 #define list_for_each_entry_safe(pos, n, head, member) \ argument
484 for (pos = list_entry((head)->next, typeof(*pos), member), \
485 n = list_entry(pos->member.next, typeof(*pos), member); \
486 &pos->member != (head); \
487 pos = n, n = list_entry(n->member.next, typeof(*n), member))
499 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
500 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
501 n = list_entry(pos->member.next, typeof(*pos), member); \
502 &pos->member != (head); \
503 pos = n, n = list_entry(n->member.next, typeof(*n), member))
515 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
516 for (n = list_entry(pos->member.next, typeof(*pos), member); \
517 &pos->member != (head); \
518 pos = n, n = list_entry(n->member.next, typeof(*n), member))
530 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
531 for (pos = list_entry((head)->prev, typeof(*pos), member), \
532 n = list_entry(pos->member.prev, typeof(*pos), member); \
533 &pos->member != (head); \
534 pos = n, n = list_entry(n->member.prev, typeof(*n), member))
625 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
642 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
645 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
654 #define hlist_for_each_entry_continue(tpos, pos, member) \ argument
657 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
666 #define hlist_for_each_entry_from(tpos, pos, member) \ argument
668 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
679 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
682 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \