Lines Matching refs:pos

403 #define list_next_entry(pos, member) \  argument
404 list_entry((pos)->member.next, typeof(*(pos)), member)
411 #define list_prev_entry(pos, member) \ argument
412 list_entry((pos)->member.prev, typeof(*(pos)), member)
419 #define list_for_each(pos, head) \ argument
420 for (pos = (head)->next; pos != (head); pos = pos->next)
427 #define list_for_each_prev(pos, head) \ argument
428 for (pos = (head)->prev; pos != (head); pos = pos->prev)
436 #define list_for_each_safe(pos, n, head) \ argument
437 for (pos = (head)->next, n = pos->next; pos != (head); \
438 pos = n, n = pos->next)
446 #define list_for_each_prev_safe(pos, n, head) \ argument
447 for (pos = (head)->prev, n = pos->prev; \
448 pos != (head); \
449 pos = n, n = pos->prev)
457 #define list_for_each_entry(pos, head, member) \ argument
458 for (pos = list_first_entry(head, typeof(*pos), member); \
459 &pos->member != (head); \
460 pos = list_next_entry(pos, member))
468 #define list_for_each_entry_reverse(pos, head, member) \ argument
469 for (pos = list_last_entry(head, typeof(*pos), member); \
470 &pos->member != (head); \
471 pos = list_prev_entry(pos, member))
481 #define list_prepare_entry(pos, head, member) \ argument
482 ((pos) ? : list_entry(head, typeof(*pos), member))
493 #define list_for_each_entry_continue(pos, head, member) \ argument
494 for (pos = list_next_entry(pos, member); \
495 &pos->member != (head); \
496 pos = list_next_entry(pos, member))
507 #define list_for_each_entry_continue_reverse(pos, head, member) \ argument
508 for (pos = list_prev_entry(pos, member); \
509 &pos->member != (head); \
510 pos = list_prev_entry(pos, member))
520 #define list_for_each_entry_from(pos, head, member) \ argument
521 for (; &pos->member != (head); \
522 pos = list_next_entry(pos, member))
531 #define list_for_each_entry_safe(pos, n, head, member) \ argument
532 for (pos = list_first_entry(head, typeof(*pos), member), \
533 n = list_next_entry(pos, member); \
534 &pos->member != (head); \
535 pos = n, n = list_next_entry(n, member))
547 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
548 for (pos = list_next_entry(pos, member), \
549 n = list_next_entry(pos, member); \
550 &pos->member != (head); \
551 pos = n, n = list_next_entry(n, member))
563 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
564 for (n = list_next_entry(pos, member); \
565 &pos->member != (head); \
566 pos = n, n = list_next_entry(n, member))
578 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
579 for (pos = list_last_entry(head, typeof(*pos), member), \
580 n = list_prev_entry(pos, member); \
581 &pos->member != (head); \
582 pos = n, n = list_prev_entry(n, member))
596 #define list_safe_reset_next(pos, n, member) \ argument
597 n = list_next_entry(pos, member)
707 #define hlist_for_each(pos, head) \ argument
708 for (pos = (head)->first; pos ; pos = pos->next)
710 #define hlist_for_each_safe(pos, n, head) \ argument
711 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
712 pos = n)
725 #define hlist_for_each_entry(pos, head, member) \ argument
726 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
727 pos; \
728 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
735 #define hlist_for_each_entry_continue(pos, member) \ argument
736 for (pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member);\
737 pos; \
738 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
745 #define hlist_for_each_entry_from(pos, member) \ argument
746 for (; pos; \
747 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
756 #define hlist_for_each_entry_safe(pos, n, head, member) \ argument
757 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\
758 pos && ({ n = pos->member.next; 1; }); \
759 pos = hlist_entry_safe(n, typeof(*pos), member))
780 #define list_for_each_from(pos, head) \ argument
781 for (; pos != (head); pos = pos->next)