Home
last modified time | relevance | path

Searched refs:_q_ptr (Results 1 – 1 of 1) sorted by relevance

/drivers/net/ethernet/brocade/bna/
Dbna.h146 #define BNA_QE_FREE_CNT(_q_ptr, _q_depth) \ argument
147 (((_q_ptr)->consumer_index - (_q_ptr)->producer_index - 1) & \
150 #define BNA_QE_IN_USE_CNT(_q_ptr, _q_depth) \ argument
151 ((((_q_ptr)->producer_index - (_q_ptr)->consumer_index)) & \
154 #define BNA_Q_GET_CI(_q_ptr) ((_q_ptr)->q.consumer_index) argument
156 #define BNA_Q_GET_PI(_q_ptr) ((_q_ptr)->q.producer_index) argument
158 #define BNA_Q_PI_ADD(_q_ptr, _num) \ argument
159 (_q_ptr)->q.producer_index = \
160 (((_q_ptr)->q.producer_index + (_num)) & \
161 ((_q_ptr)->q.q_depth - 1))
[all …]