Lines Matching refs:q_depth

78 	for (i = 0; i < ccb->q_depth; i++) {  in bnad_cq_cleanup()
91 u32 q_depth, u32 index) in bnad_tx_buff_unmap() argument
114 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
126 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
143 for (i = 0; i < tcb->q_depth; i++) { in bnad_txq_cleanup()
147 bnad_tx_buff_unmap(bnad, unmap_q, tcb->q_depth, i); in bnad_txq_cleanup()
162 u32 wis, unmap_wis, hw_cons, cons, q_depth; in bnad_txcmpl_process() local
174 q_depth = tcb->q_depth; in bnad_txcmpl_process()
176 wis = BNA_Q_INDEX_CHANGE(cons, hw_cons, q_depth); in bnad_txcmpl_process()
177 BUG_ON(!(wis <= BNA_QE_IN_USE_CNT(tcb, tcb->q_depth))); in bnad_txcmpl_process()
190 cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons); in bnad_txcmpl_process()
216 BNA_QE_FREE_CNT(tcb, tcb->q_depth) >= in bnad_tx_complete()
327 for (i = 0; i < rcb->q_depth; i++) { in bnad_rxq_cleanup()
341 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local
350 q_depth = rcb->q_depth; in bnad_rxq_refill_page()
397 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_page()
415 u32 alloced, prod, q_depth, buff_sz; in bnad_rxq_refill_skb() local
424 q_depth = rcb->q_depth; in bnad_rxq_refill_skb()
453 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_skb()
474 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
509 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_drop_packet()
545 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_setup_skb_frags()
561 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_setup_skb_frags()
651 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_process()
720 BNA_QE_INDX_ADD(rcb->consumer_index, nvecs, rcb->q_depth); in bnad_cq_process()
724 BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); in bnad_cq_process()
2917 u32 prod, q_depth, vect_id; in bnad_start_xmit() local
2955 q_depth = tcb->q_depth; in bnad_start_xmit()
2969 if (unlikely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
2989 if (likely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3032 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3044 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()
3054 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3071 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, tcb->producer_index); in bnad_start_xmit()
3077 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()