Lines Matching refs:q_depth
104 for (i = 0; i < ccb->q_depth; i++) { in bnad_cq_cleanup()
117 u32 q_depth, u32 index) in bnad_tx_buff_unmap() argument
140 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
152 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
169 for (i = 0; i < tcb->q_depth; i++) { in bnad_txq_cleanup()
173 bnad_tx_buff_unmap(bnad, unmap_q, tcb->q_depth, i); in bnad_txq_cleanup()
188 u32 wis, unmap_wis, hw_cons, cons, q_depth; in bnad_txcmpl_process() local
199 q_depth = tcb->q_depth; in bnad_txcmpl_process()
201 wis = BNA_Q_INDEX_CHANGE(cons, hw_cons, q_depth); in bnad_txcmpl_process()
202 BUG_ON(!(wis <= BNA_QE_IN_USE_CNT(tcb, tcb->q_depth))); in bnad_txcmpl_process()
215 cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons); in bnad_txcmpl_process()
241 BNA_QE_FREE_CNT(tcb, tcb->q_depth) >= in bnad_tx_complete()
352 for (i = 0; i < rcb->q_depth; i++) { in bnad_rxq_cleanup()
366 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local
375 q_depth = rcb->q_depth; in bnad_rxq_refill_page()
416 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_page()
434 u32 alloced, prod, q_depth, buff_sz; in bnad_rxq_refill_skb() local
443 q_depth = rcb->q_depth; in bnad_rxq_refill_skb()
465 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_skb()
486 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
521 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_drop_packet()
548 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_setup_skb_frags()
652 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_process()
721 BNA_QE_INDX_ADD(rcb->consumer_index, nvecs, rcb->q_depth); in bnad_cq_process()
725 BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); in bnad_cq_process()
2938 u32 prod, q_depth, vect_id; in bnad_start_xmit() local
2976 q_depth = tcb->q_depth; in bnad_start_xmit()
2990 if (unlikely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3010 if (likely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3048 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3060 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()
3078 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, tcb->producer_index); in bnad_start_xmit()
3084 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()