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
1868 ndesc = flits_to_desc(flits); in cxgb4_vf_eth_xmit()
1869 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1884 last_desc = txq->q.pidx + ndesc - 1; in cxgb4_vf_eth_xmit()
2085 txq_advance(&txq->q, ndesc); in cxgb4_vf_eth_xmit()
2087 cxgb4_ring_tx_db(adapter, &txq->q, ndesc); in cxgb4_vf_eth_xmit()
2129 struct sge_eosw_txq *eosw_txq, u32 ndesc) in cxgb4_eosw_txq_free_desc() argument
2134 while (ndesc--) { in cxgb4_eosw_txq_free_desc()
2144 eosw_txq->ndesc); in cxgb4_eosw_txq_free_desc()
2151 eosw_txq_advance_index(&eosw_txq->pidx, n, eosw_txq->ndesc); in eosw_txq_advance()
2158 if (eosw_txq->inuse == eosw_txq->ndesc) in eosw_txq_enqueue()
2275 u8 flits, ndesc; in ethofld_hard_xmit() local
2301 ndesc = flits_to_desc(flits); in ethofld_hard_xmit()
2305 left = txq_avail(&eohw_txq->q) - ndesc; in ethofld_hard_xmit()
2387 txq_advance(&eohw_txq->q, ndesc); in ethofld_hard_xmit()
2388 cxgb4_ring_tx_db(adap, &eohw_txq->q, ndesc); in ethofld_hard_xmit()
2389 eosw_txq_advance_index(&eosw_txq->last_pidx, 1, eosw_txq->ndesc); in ethofld_hard_xmit()
2407 pktcount += eosw_txq->ndesc; in ethofld_xmit()
2420 eosw_txq->ndesc); in ethofld_xmit()
2507 pktcount += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2512 pidx += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2671 u32 ctrl0, ndesc, flits; in cxgb4_selftest_lb_pkt() local
2679 ndesc = flits_to_desc(flits); in cxgb4_selftest_lb_pkt()
2688 credits = txq_avail(&q->q) - ndesc; in cxgb4_selftest_lb_pkt()
2723 txq_advance(&q->q, ndesc); in cxgb4_selftest_lb_pkt()
2724 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_selftest_lb_pkt()
2749 unsigned int ndesc; in ctrl_xmit() local
2758 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2762 skb->priority = ndesc; /* save for restart */ in ctrl_xmit()
2771 txq_advance(&q->q, ndesc); in ctrl_xmit()
2775 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ctrl_xmit()
2800 unsigned int ndesc = skb->priority; /* previously saved */ in restart_ctrlq() local
2802 written += ndesc; in restart_ctrlq()
2807 txq_advance(&q->q, ndesc); in restart_ctrlq()
2955 unsigned int flits, ndesc; in service_ofldq() local
2980 ndesc = flits_to_desc(flits); in service_ofldq()
2981 credits = txq_avail(&q->q) - ndesc; in service_ofldq()
3028 last_desc = q->q.pidx + ndesc - 1; in service_ofldq()
3034 txq_advance(&q->q, ndesc); in service_ofldq()
3035 written += ndesc; in service_ofldq()
3221 unsigned int ndesc; in ofld_xmit_direct() local
3243 ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); in ofld_xmit_direct()
3244 credits = txq_avail(&q->q) - ndesc; in ofld_xmit_direct()
3251 txq_advance(&q->q, ndesc); in ofld_xmit_direct()
3252 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ofld_xmit_direct()
4044 pktcount += eosw_txq->ndesc; in cxgb4_ethofld_restart()
4122 eosw_txq->ndesc); in cxgb4_ethofld_rx_handler()