Lines Matching refs:head1
355 #define STAILQ_CONCAT(head1, head2) do { \ argument
357 *(head1)->stqh_last = (head2)->stqh_first; \
358 (head1)->stqh_last = (head2)->stqh_last; \
448 #define STAILQ_SWAP(head1, head2, type) \ argument
452 struct type *swap_first = STAILQ_FIRST(head1); \
453 struct type **swap_last = (head1)->stqh_last; \
454 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
455 (head1)->stqh_last = (head2)->stqh_last; \
458 if (STAILQ_EMPTY(head1)) \
459 (head1)->stqh_last = &STAILQ_FIRST(head1); \
582 #define LIST_SWAP(head1, head2, type, field) \ argument
586 struct type *swap_tmp = LIST_FIRST((head1)); \
587 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
589 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
590 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
658 #define TAILQ_CONCAT(head1, head2, field) do { \ argument
660 *(head1)->tqh_last = (head2)->tqh_first; \
661 (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
662 (head1)->tqh_last = (head2)->tqh_last; \
664 QMD_TRACE_HEAD(head1); \
793 #define TAILQ_SWAP(head1, head2, type, field) \ argument
797 struct type *swap_first = (head1)->tqh_first; \
798 struct type **swap_last = (head1)->tqh_last; \
799 (head1)->tqh_first = (head2)->tqh_first; \
800 (head1)->tqh_last = (head2)->tqh_last; \
803 if ((swap_first = (head1)->tqh_first) != NULL) \
804 swap_first->field.tqe_prev = &(head1)->tqh_first; \
806 (head1)->tqh_last = &(head1)->tqh_first; \