Lines Matching refs:head1
356 #define STAILQ_CONCAT(head1, head2) do { \ argument
358 *(head1)->stqh_last = (head2)->stqh_first; \
359 (head1)->stqh_last = (head2)->stqh_last; \
449 #define STAILQ_SWAP(head1, head2, type) \ argument
453 struct type *swap_first = STAILQ_FIRST(head1); \
454 struct type **swap_last = (head1)->stqh_last; \
455 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
456 (head1)->stqh_last = (head2)->stqh_last; \
459 if (STAILQ_EMPTY(head1)) \
460 (head1)->stqh_last = &STAILQ_FIRST(head1); \
580 #define LIST_SWAP(head1, head2, type, field) \ argument
584 struct type *swap_tmp = LIST_FIRST((head1)); \
585 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
587 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
588 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
653 #define TAILQ_CONCAT(head1, head2, field) do { \ argument
655 *(head1)->tqh_last = (head2)->tqh_first; \
656 (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
657 (head1)->tqh_last = (head2)->tqh_last; \
659 QMD_TRACE_HEAD(head1); \
788 #define TAILQ_SWAP(head1, head2, type, field) \ argument
792 struct type *swap_first = (head1)->tqh_first; \
793 struct type **swap_last = (head1)->tqh_last; \
794 (head1)->tqh_first = (head2)->tqh_first; \
795 (head1)->tqh_last = (head2)->tqh_last; \
798 if ((swap_first = (head1)->tqh_first) != NULL) \
799 swap_first->field.tqe_prev = &(head1)->tqh_first; \
801 (head1)->tqh_last = &(head1)->tqh_first; \