Lines Matching refs:LIST_FIRST
383 if (LIST_FIRST((head)) != NULL && \
384 LIST_FIRST((head))->field.le_prev != \
385 &LIST_FIRST((head))) \
408 #define LIST_FIRST(head) ((head)->lh_first)
411 for ((var) = LIST_FIRST((head)); \
416 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
421 for ((var) = LIST_FIRST((head)); \
426 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
431 LIST_FIRST((head)) = NULL; \
453 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
454 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
455 LIST_FIRST((head)) = (elm); \
456 (elm)->field.le_prev = &LIST_FIRST((head)); \
462 ((elm)->field.le_prev == &LIST_FIRST((head)) ? NULL : \
479 struct type *swap_tmp = LIST_FIRST((head1)); \
480 LIST_FIRST((head1)) = LIST_FIRST((head2)); \
481 LIST_FIRST((head2)) = swap_tmp; \
482 if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
483 swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
484 if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
485 swap_tmp->field.le_prev = &LIST_FIRST((head2)); \