Lines Matching refs:head2
219 #define CK_SLIST_MOVE(head1, head2, field) do { \ argument
220 ck_pr_store_ptr(&(head1)->cslh_first, (head2)->cslh_first); \
252 #define CK_STAILQ_CONCAT(head1, head2) do { \ argument
253 if ((head2)->cstqh_first != NULL) { \
254 ck_pr_store_ptr((head1)->cstqh_last, (head2)->cstqh_first); \
256 (head1)->cstqh_last = (head2)->cstqh_last; \
257 CK_STAILQ_INIT((head2)); \
338 #define CK_STAILQ_MOVE(head1, head2, field) do { \ argument
339 ck_pr_store_ptr(&(head1)->cstqh_first, (head2)->cstqh_first); \
340 (head1)->cstqh_last = (head2)->cstqh_last; \
341 if ((head2)->cstqh_last == &(head2)->cstqh_first) \
348 #define CK_STAILQ_SWAP(head1, head2, type) do { \ argument
351 CK_STAILQ_FIRST(head1) = CK_STAILQ_FIRST(head2); \
352 (head1)->cstqh_last = (head2)->cstqh_last; \
353 CK_STAILQ_FIRST(head2) = swap_first; \
354 (head2)->cstqh_last = swap_last; \
357 if (CK_STAILQ_EMPTY(head2)) \
358 (head2)->cstqh_last = &(head2)->cstqh_first; \
434 #define CK_LIST_MOVE(head1, head2, field) do { \ argument
435 ck_pr_store_ptr(&(head1)->clh_first, (head2)->clh_first); \
443 #define CK_LIST_SWAP(head1, head2, type, field) do { \ argument
445 (head1)->clh_first = (head2)->clh_first; \
446 (head2)->clh_first = swap_tmp; \
449 if ((swap_tmp = (head2)->clh_first) != NULL) \
450 swap_tmp->field.cle_prev = &(head2)->clh_first; \