Lines Matching refs:head2

191 #define SLIST_CONCAT(head1, head2, type, field) do {			\
194 if ((SLIST_FIRST(head1) = SLIST_FIRST(head2)) != NULL) \
195 SLIST_INIT(head2); \
196 } else if (SLIST_FIRST(head2) != NULL) { \
199 SLIST_NEXT(curelm, field) = SLIST_FIRST(head2); \
200 SLIST_INIT(head2); \
272 #define SLIST_SWAP(head1, head2, type) do { \
274 SLIST_FIRST(head1) = SLIST_FIRST(head2); \
275 SLIST_FIRST(head2) = swap_first; \
309 #define STAILQ_CONCAT(head1, head2) do { \
310 if (!STAILQ_EMPTY((head2))) { \
311 *(head1)->stqh_last = (head2)->stqh_first; \
312 (head1)->stqh_last = (head2)->stqh_last; \
313 STAILQ_INIT((head2)); \
397 #define STAILQ_SWAP(head1, head2, type) do { \
400 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
401 (head1)->stqh_last = (head2)->stqh_last; \
402 STAILQ_FIRST(head2) = swap_first; \
403 (head2)->stqh_last = swap_last; \
406 if (STAILQ_EMPTY(head2)) \
407 (head2)->stqh_last = &STAILQ_FIRST(head2); \
468 #define LIST_CONCAT(head1, head2, type, field) do { \
471 if ((LIST_FIRST(head1) = LIST_FIRST(head2)) != NULL) { \
472 LIST_FIRST(head2)->field.le_prev = \
474 LIST_INIT(head2); \
476 } else if (LIST_FIRST(head2) != NULL) { \
479 LIST_NEXT(curelm, field) = LIST_FIRST(head2); \
480 LIST_FIRST(head2)->field.le_prev = &LIST_NEXT(curelm, field); \
481 LIST_INIT(head2); \
558 #define LIST_SWAP(head1, head2, type, field) do { \
560 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
561 LIST_FIRST((head2)) = swap_tmp; \
564 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
565 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \
636 #define TAILQ_CONCAT(head1, head2, field) do { \
637 if (!TAILQ_EMPTY(head2)) { \
638 *(head1)->tqh_last = (head2)->tqh_first; \
639 (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
640 (head1)->tqh_last = (head2)->tqh_last; \
641 TAILQ_INIT((head2)); \
643 QMD_TRACE_HEAD(head2); \
785 #define TAILQ_SWAP(head1, head2, type, field) do { \
788 (head1)->tqh_first = (head2)->tqh_first; \
789 (head1)->tqh_last = (head2)->tqh_last; \
790 (head2)->tqh_first = swap_first; \
791 (head2)->tqh_last = swap_last; \
796 if ((swap_first = (head2)->tqh_first) != NULL) \
797 swap_first->field.tqe_prev = &(head2)->tqh_first; \
799 (head2)->tqh_last = &(head2)->tqh_first; \