Lines Matching refs:elm2
322 #define LIST_REPLACE(elm, elm2, field) do { \ argument
323 if (((elm2)->field.le_next = (elm)->field.le_next) != NULL) \
324 (elm2)->field.le_next->field.le_prev = \
325 &(elm2)->field.le_next; \
326 (elm2)->field.le_prev = (elm)->field.le_prev; \
327 *(elm2)->field.le_prev = (elm2); \
512 #define TAILQ_REPLACE(head, elm, elm2, field) do { \ argument
513 if (((elm2)->field.tqe_next = (elm)->field.tqe_next) != NULL) \
514 (elm2)->field.tqe_next->field.tqe_prev = \
515 &(elm2)->field.tqe_next; \
517 (head)->tqh_last = &(elm2)->field.tqe_next; \
518 (elm2)->field.tqe_prev = (elm)->field.tqe_prev; \
519 *(elm2)->field.tqe_prev = (elm2); \
638 #define CIRCLEQ_REPLACE(head, elm, elm2, field) do { \ argument
639 if (((elm2)->field.cqe_next = (elm)->field.cqe_next) == \
641 (head).cqh_last = (elm2); \
643 (elm2)->field.cqe_next->field.cqe_prev = (elm2); \
644 if (((elm2)->field.cqe_prev = (elm)->field.cqe_prev) == \
646 (head).cqh_first = (elm2); \
648 (elm2)->field.cqe_prev->field.cqe_next = (elm2); \