Lines Matching refs:head1
358 #define STAILQ_CONCAT(head1, head2) do { \
360 head1)->stqh_last = (head2)->stqh_first; \
361 (head1)->stqh_last = (head2)->stqh_last; \
456 #define STAILQ_SWAP(head1, head2, type) \
460 struct type *swap_first = STAILQ_FIRST(head1); \
461 struct type **swap_last = (head1)->stqh_last; \
462 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
463 (head1)->stqh_last = (head2)->stqh_last; \
466 if (STAILQ_EMPTY(head1)) \
467 (head1)->stqh_last = &STAILQ_FIRST(head1); \
564 #define LIST_SWAP(head1, head2, type, field) \
568 struct type *swap_tmp = LIST_FIRST((head1)); \
569 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
571 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
572 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
614 #define TAILQ_CONCAT(head1, head2, field) do { \
616 *(head1)->tqh_last = (head2)->tqh_first; \
617 (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
618 (head1)->tqh_last = (head2)->tqh_last; \
620 QMD_TRACE_HEAD(head1); \
739 #define TAILQ_SWAP(head1, head2, type, field) \
743 struct type *swap_first = (head1)->tqh_first; \
744 struct type **swap_last = (head1)->tqh_last; \
745 (head1)->tqh_first = (head2)->tqh_first; \
746 (head1)->tqh_last = (head2)->tqh_last; \
749 if ((swap_first = (head1)->tqh_first) != NULL) \
750 swap_first->field.tqe_prev = &(head1)->tqh_first; \
752 (head1)->tqh_last = &(head1)->tqh_first; \