Lines Matching refs:LIST_FIRST
450 if (LIST_FIRST((head)) != NULL && \
451 LIST_FIRST((head))->field.le_prev != \
452 &LIST_FIRST((head))) \
485 QUEUE_TYPEOF(type) *curelm = LIST_FIRST(head1); \
487 if ((LIST_FIRST(head1) = LIST_FIRST(head2)) != NULL) { \
488 LIST_FIRST(head2)->field.le_prev = \
489 &LIST_FIRST((head1)); \
492 } else if (LIST_FIRST(head2) != NULL) { \
495 LIST_NEXT(curelm, field) = LIST_FIRST(head2); \
496 LIST_FIRST(head2)->field.le_prev = &LIST_NEXT(curelm, field); \
503 #define LIST_FIRST(head) ((head)->lh_first) macro
506 for ((var) = LIST_FIRST((head)); \
511 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
516 for ((var) = LIST_FIRST((head)); \
521 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
526 LIST_FIRST((head)) = NULL; \
548 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
549 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
550 LIST_FIRST((head)) = (elm); \
551 (elm)->field.le_prev = &LIST_FIRST((head)); \
557 ((elm)->field.le_prev == &LIST_FIRST((head)) ? NULL : \
575 QUEUE_TYPEOF(type) *swap_tmp = LIST_FIRST(head1); \
576 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
577 LIST_FIRST((head2)) = swap_tmp; \
578 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
579 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
580 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
581 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \