Lines Matching refs:head2

233 #define SLIST_SWAP(head1, head2, type) do {				\
235 SLIST_FIRST(head1) = SLIST_FIRST(head2); \
236 SLIST_FIRST(head2) = swap_first; \
259 #define STAILQ_CONCAT(head1, head2) do { \
260 if (!STAILQ_EMPTY((head2))) { \
261 *(head1)->stqh_last = (head2)->stqh_first; \
262 (head1)->stqh_last = (head2)->stqh_last; \
263 STAILQ_INIT((head2)); \
346 #define STAILQ_SWAP(head1, head2, type) do { \
349 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
350 (head1)->stqh_last = (head2)->stqh_last; \
351 STAILQ_FIRST(head2) = swap_first; \
352 (head2)->stqh_last = swap_last; \
355 if (STAILQ_EMPTY(head2)) \
356 (head2)->stqh_last = &STAILQ_FIRST(head2); \
478 #define LIST_SWAP(head1, head2, type, field) do { \
480 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
481 LIST_FIRST((head2)) = swap_tmp; \
484 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
485 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \
542 #define TAILQ_CONCAT(head1, head2, field) do { \
543 if (!TAILQ_EMPTY(head2)) { \
544 *(head1)->tqh_last = (head2)->tqh_first; \
545 (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
546 (head1)->tqh_last = (head2)->tqh_last; \
547 TAILQ_INIT((head2)); \
549 QMD_TRACE_HEAD(head2); \
677 #define TAILQ_SWAP(head1, head2, type, field) do { \
680 (head1)->tqh_first = (head2)->tqh_first; \
681 (head1)->tqh_last = (head2)->tqh_last; \
682 (head2)->tqh_first = swap_first; \
683 (head2)->tqh_last = swap_last; \
688 if ((swap_first = (head2)->tqh_first) != NULL) \
689 swap_first->field.tqe_prev = &(head2)->tqh_first; \
691 (head2)->tqh_last = &(head2)->tqh_first; \