Lines Matching refs:LIST_FIRST
428 if (LIST_FIRST((head)) != NULL && \
429 LIST_FIRST((head))->field.le_prev != \
430 &LIST_FIRST((head))) \
453 #define LIST_FIRST(head) ((head)->lh_first) macro
456 for ((var) = LIST_FIRST((head)); \
461 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
466 for ((var) = LIST_FIRST((head)); \
471 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
476 LIST_FIRST((head)) = NULL; \
498 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
499 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
500 LIST_FIRST((head)) = (elm); \
501 (elm)->field.le_prev = &LIST_FIRST((head)); \
507 ((elm)->field.le_prev == &LIST_FIRST((head)) ? NULL : \
525 QUEUE_TYPEOF(type) *swap_tmp = LIST_FIRST(head1); \
526 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
527 LIST_FIRST((head2)) = swap_tmp; \
528 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
529 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
530 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
531 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \