Lines Matching refs:q_depth
86 for (i = 0; i < ccb->q_depth; i++) { in bnad_cq_cleanup()
99 u32 q_depth, u32 index) in bnad_tx_buff_unmap() argument
122 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
134 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
151 for (i = 0; i < tcb->q_depth; i++) { in bnad_txq_cleanup()
155 bnad_tx_buff_unmap(bnad, unmap_q, tcb->q_depth, i); in bnad_txq_cleanup()
170 u32 wis, unmap_wis, hw_cons, cons, q_depth; in bnad_txcmpl_process() local
182 q_depth = tcb->q_depth; in bnad_txcmpl_process()
184 wis = BNA_Q_INDEX_CHANGE(cons, hw_cons, q_depth); in bnad_txcmpl_process()
185 BUG_ON(!(wis <= BNA_QE_IN_USE_CNT(tcb, tcb->q_depth))); in bnad_txcmpl_process()
198 cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons); in bnad_txcmpl_process()
224 BNA_QE_FREE_CNT(tcb, tcb->q_depth) >= in bnad_tx_complete()
335 for (i = 0; i < rcb->q_depth; i++) { in bnad_rxq_cleanup()
349 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local
358 q_depth = rcb->q_depth; in bnad_rxq_refill_page()
405 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_page()
423 u32 alloced, prod, q_depth, buff_sz; in bnad_rxq_refill_skb() local
432 q_depth = rcb->q_depth; in bnad_rxq_refill_skb()
461 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_skb()
482 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
517 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_drop_packet()
553 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_setup_skb_frags()
569 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_setup_skb_frags()
659 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_process()
728 BNA_QE_INDX_ADD(rcb->consumer_index, nvecs, rcb->q_depth); in bnad_cq_process()
732 BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); in bnad_cq_process()
2933 u32 prod, q_depth, vect_id; in bnad_start_xmit() local
2971 q_depth = tcb->q_depth; in bnad_start_xmit()
2985 if (unlikely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3005 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()
3070 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3087 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, tcb->producer_index); in bnad_start_xmit()
3093 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()