Lines Matching refs:ndesc

1505 	unsigned int last_desc, flits, ndesc;  in cxgb4_eth_xmit()  local
1563 ndesc = flits_to_desc(flits); in cxgb4_eth_xmit()
1564 credits = txq_avail(&q->q) - ndesc; in cxgb4_eth_xmit()
1580 last_desc = q->q.pidx + ndesc - 1; in cxgb4_eth_xmit()
1733 txq_advance(&q->q, ndesc); in cxgb4_eth_xmit()
1735 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_eth_xmit()
1826 unsigned int last_desc, flits, ndesc; in cxgb4_vf_eth_xmit() local
1870 ndesc = flits_to_desc(flits); in cxgb4_vf_eth_xmit()
1871 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1886 last_desc = txq->q.pidx + ndesc - 1; in cxgb4_vf_eth_xmit()
2087 txq_advance(&txq->q, ndesc); in cxgb4_vf_eth_xmit()
2089 cxgb4_ring_tx_db(adapter, &txq->q, ndesc); in cxgb4_vf_eth_xmit()
2131 struct sge_eosw_txq *eosw_txq, u32 ndesc) in cxgb4_eosw_txq_free_desc() argument
2136 while (ndesc--) { in cxgb4_eosw_txq_free_desc()
2146 eosw_txq->ndesc); in cxgb4_eosw_txq_free_desc()
2153 eosw_txq_advance_index(&eosw_txq->pidx, n, eosw_txq->ndesc); in eosw_txq_advance()
2160 if (eosw_txq->inuse == eosw_txq->ndesc) in eosw_txq_enqueue()
2277 u8 flits, ndesc; in ethofld_hard_xmit() local
2303 ndesc = flits_to_desc(flits); in ethofld_hard_xmit()
2307 left = txq_avail(&eohw_txq->q) - ndesc; in ethofld_hard_xmit()
2389 txq_advance(&eohw_txq->q, ndesc); in ethofld_hard_xmit()
2390 cxgb4_ring_tx_db(adap, &eohw_txq->q, ndesc); in ethofld_hard_xmit()
2391 eosw_txq_advance_index(&eosw_txq->last_pidx, 1, eosw_txq->ndesc); in ethofld_hard_xmit()
2409 pktcount += eosw_txq->ndesc; in ethofld_xmit()
2422 eosw_txq->ndesc); in ethofld_xmit()
2509 pktcount += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2514 pidx += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2673 u32 ctrl0, ndesc, flits; in cxgb4_selftest_lb_pkt() local
2681 ndesc = flits_to_desc(flits); in cxgb4_selftest_lb_pkt()
2690 credits = txq_avail(&q->q) - ndesc; in cxgb4_selftest_lb_pkt()
2725 txq_advance(&q->q, ndesc); in cxgb4_selftest_lb_pkt()
2726 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_selftest_lb_pkt()
2751 unsigned int ndesc; in ctrl_xmit() local
2760 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2764 skb->priority = ndesc; /* save for restart */ in ctrl_xmit()
2773 txq_advance(&q->q, ndesc); in ctrl_xmit()
2777 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ctrl_xmit()
2802 unsigned int ndesc = skb->priority; /* previously saved */ in restart_ctrlq() local
2804 written += ndesc; in restart_ctrlq()
2809 txq_advance(&q->q, ndesc); in restart_ctrlq()
2957 unsigned int flits, ndesc; in service_ofldq() local
2982 ndesc = flits_to_desc(flits); in service_ofldq()
2983 credits = txq_avail(&q->q) - ndesc; in service_ofldq()
3030 last_desc = q->q.pidx + ndesc - 1; in service_ofldq()
3036 txq_advance(&q->q, ndesc); in service_ofldq()
3037 written += ndesc; in service_ofldq()
3223 unsigned int ndesc; in ofld_xmit_direct() local
3245 ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); in ofld_xmit_direct()
3246 credits = txq_avail(&q->q) - ndesc; in ofld_xmit_direct()
3253 txq_advance(&q->q, ndesc); in ofld_xmit_direct()
3254 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ofld_xmit_direct()
4046 pktcount += eosw_txq->ndesc; in cxgb4_ethofld_restart()
4124 eosw_txq->ndesc); in cxgb4_ethofld_rx_handler()