Lines Matching refs:n

425 #define list_for_each_safe(pos, n, head) \  argument
426 for (pos = (head)->next, n = pos->next; pos != (head); \
427 pos = n, n = pos->next)
435 #define list_for_each_prev_safe(pos, n, head) \ argument
436 for (pos = (head)->prev, n = pos->prev; \
438 pos = n, n = pos->prev)
520 #define list_for_each_entry_safe(pos, n, head, member) \ argument
522 n = list_next_entry(pos, member); \
524 pos = n, n = list_next_entry(n, member))
536 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
538 n = list_next_entry(pos, member); \
540 pos = n, n = list_next_entry(n, member))
552 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
553 for (n = list_next_entry(pos, member); \
555 pos = n, n = list_next_entry(n, member))
567 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
569 n = list_prev_entry(pos, member); \
571 pos = n, n = list_prev_entry(n, member))
585 #define list_safe_reset_next(pos, n, member) \ argument
586 n = list_next_entry(pos, member)
614 static inline void __hlist_del(struct hlist_node *n) in __hlist_del() argument
616 struct hlist_node *next = n->next; in __hlist_del()
617 struct hlist_node **pprev = n->pprev; in __hlist_del()
623 static inline void hlist_del(struct hlist_node *n) in hlist_del() argument
625 __hlist_del(n); in hlist_del()
626 n->next = LIST_POISON1; in hlist_del()
627 n->pprev = LIST_POISON2; in hlist_del()
630 static inline void hlist_del_init(struct hlist_node *n) in hlist_del_init() argument
632 if (!hlist_unhashed(n)) { in hlist_del_init()
633 __hlist_del(n); in hlist_del_init()
634 INIT_HLIST_NODE(n); in hlist_del_init()
638 static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h) in hlist_add_head() argument
641 n->next = first; in hlist_add_head()
643 first->pprev = &n->next; in hlist_add_head()
644 h->first = n; in hlist_add_head()
645 n->pprev = &h->first; in hlist_add_head()
649 static inline void hlist_add_before(struct hlist_node *n, in hlist_add_before() argument
652 n->pprev = next->pprev; in hlist_add_before()
653 n->next = next; in hlist_add_before()
654 next->pprev = &n->next; in hlist_add_before()
655 *(n->pprev) = n; in hlist_add_before()
658 static inline void hlist_add_behind(struct hlist_node *n, in hlist_add_behind() argument
661 n->next = prev->next; in hlist_add_behind()
662 prev->next = n; in hlist_add_behind()
663 n->pprev = &prev->next; in hlist_add_behind()
665 if (n->next) in hlist_add_behind()
666 n->next->pprev = &n->next; in hlist_add_behind()
670 static inline void hlist_add_fake(struct hlist_node *n) in hlist_add_fake() argument
672 n->pprev = &n->next; in hlist_add_fake()
693 #define hlist_for_each_safe(pos, n, head) \ argument
694 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
695 pos = n)
739 #define hlist_for_each_entry_safe(pos, n, head, member) \ argument
741 pos && ({ n = pos->member.next; 1; }); \
742 pos = hlist_entry_safe(n, typeof(*pos), member))