Lines Matching refs:pos
338 #define list_for_each(pos, head) \ argument
339 for (pos = (head)->next, prefetch(pos->next); pos != (head); \
340 pos = pos->next, prefetch(pos->next))
352 #define __list_for_each(pos, head) \ argument
353 for (pos = (head)->next; pos != (head); pos = pos->next)
360 #define list_for_each_prev(pos, head) \ argument
361 for (pos = (head)->prev, prefetch(pos->prev); pos != (head); \
362 pos = pos->prev, prefetch(pos->prev))
370 #define list_for_each_safe(pos, n, head) \ argument
371 for (pos = (head)->next, n = pos->next; pos != (head); \
372 pos = n, n = pos->next)
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))
446 #define list_for_each_rcu(pos, head) \ argument
447 for (pos = (head)->next, prefetch(pos->next); pos != (head); \
448 pos = pos->next, ({ smp_read_barrier_depends(); 0;}), prefetch(pos->next))
450 #define __list_for_each_rcu(pos, head) \ argument
451 for (pos = (head)->next; pos != (head); \
452 pos = pos->next, ({ smp_read_barrier_depends(); 0;}))
465 #define list_for_each_safe_rcu(pos, n, head) \ argument
466 for (pos = (head)->next, n = pos->next; pos != (head); \
467 pos = n, ({ smp_read_barrier_depends(); 0;}), n = pos->next)
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))
498 #define list_for_each_continue_rcu(pos, head) \ argument
499 for ((pos) = (pos)->next, prefetch((pos)->next); (pos) != (head); \
500 (pos) = (pos)->next, ({ smp_read_barrier_depends(); 0;}), prefetch((pos)->next))
648 #define hlist_for_each(pos, head) \ argument
649 for (pos = (head)->first; pos && ({ prefetch(pos->next); 1; }); \
650 pos = pos->next)
652 #define hlist_for_each_safe(pos, n, head) \ argument
653 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
654 pos = n)
663 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
664 for (pos = (head)->first; \
665 pos && ({ prefetch(pos->next); 1;}) && \
666 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
667 pos = pos->next)
675 #define hlist_for_each_entry_continue(tpos, pos, member) \ argument
676 for (pos = (pos)->next; \
677 pos && ({ prefetch(pos->next); 1;}) && \
678 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
679 pos = pos->next)
687 #define hlist_for_each_entry_from(tpos, pos, member) \ argument
688 for (; pos && ({ prefetch(pos->next); 1;}) && \
689 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
690 pos = pos->next)
700 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
701 for (pos = (head)->first; \
702 pos && ({ n = pos->next; 1; }) && \
703 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
704 pos = n)
717 #define hlist_for_each_entry_rcu(tpos, pos, head, member) \ argument
718 for (pos = (head)->first; \
719 pos && ({ prefetch(pos->next); 1;}) && \
720 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
721 pos = pos->next, ({ smp_read_barrier_depends(); 0; }) )