Lines Matching refs:LIST_FIRST
451 if (LIST_FIRST((head)) != NULL && \
452 LIST_FIRST((head))->field.le_prev != \
453 &LIST_FIRST((head))) \
486 QUEUE_TYPEOF(type) *curelm = LIST_FIRST(head1); \
488 if ((LIST_FIRST(head1) = LIST_FIRST(head2)) != NULL) { \
489 LIST_FIRST(head2)->field.le_prev = \
490 &LIST_FIRST((head1)); \
493 } else if (LIST_FIRST(head2) != NULL) { \
496 LIST_NEXT(curelm, field) = LIST_FIRST(head2); \
497 LIST_FIRST(head2)->field.le_prev = &LIST_NEXT(curelm, field); \
504 #define LIST_FIRST(head) ((head)->lh_first) macro
507 for ((var) = LIST_FIRST((head)); \
512 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
517 for ((var) = LIST_FIRST((head)); \
522 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
527 LIST_FIRST((head)) = NULL; \
549 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
550 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
551 LIST_FIRST((head)) = (elm); \
552 (elm)->field.le_prev = &LIST_FIRST((head)); \
558 ((elm)->field.le_prev == &LIST_FIRST((head)) ? NULL : \
576 QUEUE_TYPEOF(type) *swap_tmp = LIST_FIRST(head1); \
577 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
578 LIST_FIRST((head2)) = swap_tmp; \
579 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
580 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
581 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
582 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \