Lines Matching refs:pos

342 #define list_for_each(pos, head) \  argument
343 for (pos = (head)->next, prefetch(pos->next); pos != (head); \
344 pos = pos->next, prefetch(pos->next))
356 #define __list_for_each(pos, head) \ argument
357 for (pos = (head)->next; pos != (head); pos = pos->next)
364 #define list_for_each_prev(pos, head) \ argument
365 for (pos = (head)->prev, prefetch(pos->prev); pos != (head); \
366 pos = pos->prev, prefetch(pos->prev))
374 #define list_for_each_safe(pos, n, head) \ argument
375 for (pos = (head)->next, n = pos->next; pos != (head); \
376 pos = n, n = pos->next)
384 #define list_for_each_entry(pos, head, member) \ argument
385 for (pos = list_entry((head)->next, typeof(*pos), member), \
386 prefetch(pos->member.next); \
387 &pos->member != (head); \
388 pos = list_entry(pos->member.next, typeof(*pos), member), \
389 prefetch(pos->member.next))
397 #define list_for_each_entry_reverse(pos, head, member) \ argument
398 for (pos = list_entry((head)->prev, typeof(*pos), member), \
399 prefetch(pos->member.prev); \
400 &pos->member != (head); \
401 pos = list_entry(pos->member.prev, typeof(*pos), member), \
402 prefetch(pos->member.prev))
411 #define list_prepare_entry(pos, head, member) \ argument
412 ((pos) ? : list_entry(head, typeof(*pos), member))
421 #define list_for_each_entry_continue(pos, head, member) \ argument
422 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
423 prefetch(pos->member.next); \
424 &pos->member != (head); \
425 pos = list_entry(pos->member.next, typeof(*pos), member), \
426 prefetch(pos->member.next))
435 #define list_for_each_entry_safe(pos, n, head, member) \ argument
436 for (pos = list_entry((head)->next, typeof(*pos), member), \
437 n = list_entry(pos->member.next, typeof(*pos), member); \
438 &pos->member != (head); \
439 pos = n, n = list_entry(n->member.next, typeof(*n), member))
450 #define list_for_each_rcu(pos, head) \ argument
451 for (pos = (head)->next, prefetch(pos->next); pos != (head); \
452 pos = pos->next, ({ smp_read_barrier_depends(); 0;}), prefetch(pos->next))
454 #define __list_for_each_rcu(pos, head) \ argument
455 for (pos = (head)->next; pos != (head); \
456 pos = pos->next, ({ smp_read_barrier_depends(); 0;}))
469 #define list_for_each_safe_rcu(pos, n, head) \ argument
470 for (pos = (head)->next, n = pos->next; pos != (head); \
471 pos = n, ({ smp_read_barrier_depends(); 0;}), n = pos->next)
483 #define list_for_each_entry_rcu(pos, head, member) \ argument
484 for (pos = list_entry((head)->next, typeof(*pos), member), \
485 prefetch(pos->member.next); \
486 &pos->member != (head); \
487 pos = list_entry(pos->member.next, typeof(*pos), member), \
489 prefetch(pos->member.next))
502 #define list_for_each_continue_rcu(pos, head) \ argument
503 for ((pos) = (pos)->next, prefetch((pos)->next); (pos) != (head); \
504 (pos) = (pos)->next, ({ smp_read_barrier_depends(); 0;}), prefetch((pos)->next))
652 #define hlist_for_each(pos, head) \ argument
653 for (pos = (head)->first; pos && ({ prefetch(pos->next); 1; }); \
654 pos = pos->next)
656 #define hlist_for_each_safe(pos, n, head) \ argument
657 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
658 pos = n)
667 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
668 for (pos = (head)->first; \
669 pos && ({ prefetch(pos->next); 1;}) && \
670 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
671 pos = pos->next)
679 #define hlist_for_each_entry_continue(tpos, pos, member) \ argument
680 for (pos = (pos)->next; \
681 pos && ({ prefetch(pos->next); 1;}) && \
682 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
683 pos = pos->next)
691 #define hlist_for_each_entry_from(tpos, pos, member) \ argument
692 for (; pos && ({ prefetch(pos->next); 1;}) && \
693 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
694 pos = pos->next)
704 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
705 for (pos = (head)->first; \
706 pos && ({ n = pos->next; 1; }) && \
707 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
708 pos = n)
721 #define hlist_for_each_entry_rcu(tpos, pos, head, member) \ argument
722 for (pos = (head)->first; \
723 pos && ({ prefetch(pos->next); 1;}) && \
724 ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
725 pos = pos->next, ({ smp_read_barrier_depends(); 0; }) )