Lines Matching refs:q_depth

105 	for (i = 0; i < ccb->q_depth; i++) {  in bnad_cq_cleanup()
118 u32 q_depth, u32 index) in bnad_tx_buff_unmap() argument
141 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
153 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap()
170 for (i = 0; i < tcb->q_depth; i++) { in bnad_txq_cleanup()
174 bnad_tx_buff_unmap(bnad, unmap_q, tcb->q_depth, i); in bnad_txq_cleanup()
189 u32 wis, unmap_wis, hw_cons, cons, q_depth; in bnad_txcmpl_process() local
200 q_depth = tcb->q_depth; in bnad_txcmpl_process()
202 wis = BNA_Q_INDEX_CHANGE(cons, hw_cons, q_depth); in bnad_txcmpl_process()
203 BUG_ON(!(wis <= BNA_QE_IN_USE_CNT(tcb, tcb->q_depth))); in bnad_txcmpl_process()
216 cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons); in bnad_txcmpl_process()
242 BNA_QE_FREE_CNT(tcb, tcb->q_depth) >= in bnad_tx_complete()
353 for (i = 0; i < rcb->q_depth; i++) { in bnad_rxq_cleanup()
367 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local
376 q_depth = rcb->q_depth; in bnad_rxq_refill_page()
423 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_page()
441 u32 alloced, prod, q_depth, buff_sz; in bnad_rxq_refill_skb() local
450 q_depth = rcb->q_depth; in bnad_rxq_refill_skb()
479 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_skb()
500 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
535 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_drop_packet()
562 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_setup_skb_frags()
666 BNA_QE_INDX_INC(pi, ccb->q_depth); in bnad_cq_process()
735 BNA_QE_INDX_ADD(rcb->consumer_index, nvecs, rcb->q_depth); in bnad_cq_process()
739 BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); in bnad_cq_process()
2942 u32 prod, q_depth, vect_id; in bnad_start_xmit() local
2980 q_depth = tcb->q_depth; in bnad_start_xmit()
2994 if (unlikely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3014 if (likely(wis > BNA_QE_FREE_CNT(tcb, q_depth))) { in bnad_start_xmit()
3057 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3069 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()
3079 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, in bnad_start_xmit()
3096 bnad_tx_buff_unmap(bnad, unmap_q, q_depth, tcb->producer_index); in bnad_start_xmit()
3102 BNA_QE_INDX_INC(prod, q_depth); in bnad_start_xmit()