Lines Matching refs:LIST_FIRST
480 if (LIST_FIRST((head)) != NULL && \
481 LIST_FIRST((head))->field.le_prev != \
482 &LIST_FIRST((head))) \
515 QUEUE_TYPEOF(type) *curelm = LIST_FIRST(head1); \
517 if ((LIST_FIRST(head1) = LIST_FIRST(head2)) != NULL) { \
518 LIST_FIRST(head2)->field.le_prev = \
519 &LIST_FIRST((head1)); \
522 } else if (LIST_FIRST(head2) != NULL) { \
525 LIST_NEXT(curelm, field) = LIST_FIRST(head2); \
526 LIST_FIRST(head2)->field.le_prev = &LIST_NEXT(curelm, field); \
533 #define LIST_FIRST(head) ((head)->lh_first) macro
536 for ((var) = LIST_FIRST((head)); \
541 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
546 for ((var) = LIST_FIRST((head)); \
551 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
556 LIST_FIRST((head)) = NULL; \
578 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
579 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
580 LIST_FIRST((head)) = (elm); \
581 (elm)->field.le_prev = &LIST_FIRST((head)); \
587 ((elm)->field.le_prev == &LIST_FIRST((head)) ? NULL : \
605 QUEUE_TYPEOF(type) *swap_tmp = LIST_FIRST(head1); \
606 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
607 LIST_FIRST((head2)) = swap_tmp; \
608 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
609 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
610 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
611 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \