Lines Matching refs:_qe
52 #define bfa_q_next(_qe) (((struct list_head *) (_qe))->next) argument
53 #define bfa_q_prev(_qe) (((struct list_head *) (_qe))->prev) argument
58 #define bfa_q_qe_init(_qe) { \ argument
59 bfa_q_next(_qe) = (struct list_head *) NULL; \
60 bfa_q_prev(_qe) = (struct list_head *) NULL; \
66 #define bfa_q_deq(_q, _qe) { \ argument
68 (*((struct list_head **) (_qe))) = bfa_q_next(_q); \
69 bfa_q_prev(bfa_q_next(*((struct list_head **) _qe))) = \
71 bfa_q_next(_q) = bfa_q_next(*((struct list_head **) _qe)); \
72 bfa_q_qe_init(*((struct list_head **) _qe)); \
74 *((struct list_head **)(_qe)) = NULL; \
81 #define bfa_q_deq_tail(_q, _qe) { \ argument
83 *((struct list_head **) (_qe)) = bfa_q_prev(_q); \
84 bfa_q_next(bfa_q_prev(*((struct list_head **) _qe))) = \
86 bfa_q_prev(_q) = bfa_q_prev(*(struct list_head **) _qe);\
87 bfa_q_qe_init(*((struct list_head **) _qe)); \
89 *((struct list_head **) (_qe)) = (struct list_head *) NULL; \
96 #define bfa_q_enq_head(_q, _qe) { \ argument
97 if (!(bfa_q_next(_qe) == NULL) && (bfa_q_prev(_qe) == NULL)) \
100 (bfa_q_next(_qe) == NULL) && (bfa_q_prev(_qe) == NULL));\
101 bfa_q_next(_qe) = bfa_q_next(_q); \
102 bfa_q_prev(_qe) = (struct list_head *) (_q); \
103 bfa_q_prev(bfa_q_next(_q)) = (struct list_head *) (_qe); \
104 bfa_q_next(_q) = (struct list_head *) (_qe); \