Lines Matching refs:ndesc
1491 unsigned int last_desc, flits, ndesc; in cxgb4_eth_xmit() local
1549 ndesc = flits_to_desc(flits); in cxgb4_eth_xmit()
1550 credits = txq_avail(&q->q) - ndesc; in cxgb4_eth_xmit()
1566 last_desc = q->q.pidx + ndesc - 1; in cxgb4_eth_xmit()
1719 txq_advance(&q->q, ndesc); in cxgb4_eth_xmit()
1721 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_eth_xmit()
1812 unsigned int last_desc, flits, ndesc; in cxgb4_vf_eth_xmit() local
1856 ndesc = flits_to_desc(flits); in cxgb4_vf_eth_xmit()
1857 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1872 last_desc = txq->q.pidx + ndesc - 1; in cxgb4_vf_eth_xmit()
2073 txq_advance(&txq->q, ndesc); in cxgb4_vf_eth_xmit()
2075 cxgb4_ring_tx_db(adapter, &txq->q, ndesc); in cxgb4_vf_eth_xmit()
2117 struct sge_eosw_txq *eosw_txq, u32 ndesc) in cxgb4_eosw_txq_free_desc() argument
2122 while (ndesc--) { in cxgb4_eosw_txq_free_desc()
2132 eosw_txq->ndesc); in cxgb4_eosw_txq_free_desc()
2139 eosw_txq_advance_index(&eosw_txq->pidx, n, eosw_txq->ndesc); in eosw_txq_advance()
2146 if (eosw_txq->inuse == eosw_txq->ndesc) in eosw_txq_enqueue()
2263 u8 flits, ndesc; in ethofld_hard_xmit() local
2289 ndesc = flits_to_desc(flits); in ethofld_hard_xmit()
2293 left = txq_avail(&eohw_txq->q) - ndesc; in ethofld_hard_xmit()
2375 txq_advance(&eohw_txq->q, ndesc); in ethofld_hard_xmit()
2376 cxgb4_ring_tx_db(adap, &eohw_txq->q, ndesc); in ethofld_hard_xmit()
2377 eosw_txq_advance_index(&eosw_txq->last_pidx, 1, eosw_txq->ndesc); in ethofld_hard_xmit()
2395 pktcount += eosw_txq->ndesc; in ethofld_xmit()
2408 eosw_txq->ndesc); in ethofld_xmit()
2495 pktcount += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2500 pidx += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2659 u32 ctrl0, ndesc, flits; in cxgb4_selftest_lb_pkt() local
2667 ndesc = flits_to_desc(flits); in cxgb4_selftest_lb_pkt()
2676 credits = txq_avail(&q->q) - ndesc; in cxgb4_selftest_lb_pkt()
2711 txq_advance(&q->q, ndesc); in cxgb4_selftest_lb_pkt()
2712 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_selftest_lb_pkt()
2737 unsigned int ndesc; in ctrl_xmit() local
2746 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2750 skb->priority = ndesc; /* save for restart */ in ctrl_xmit()
2759 txq_advance(&q->q, ndesc); in ctrl_xmit()
2763 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ctrl_xmit()
2788 unsigned int ndesc = skb->priority; /* previously saved */ in restart_ctrlq() local
2790 written += ndesc; in restart_ctrlq()
2795 txq_advance(&q->q, ndesc); in restart_ctrlq()
2943 unsigned int flits, ndesc; in service_ofldq() local
2968 ndesc = flits_to_desc(flits); in service_ofldq()
2969 credits = txq_avail(&q->q) - ndesc; in service_ofldq()
3016 last_desc = q->q.pidx + ndesc - 1; in service_ofldq()
3022 txq_advance(&q->q, ndesc); in service_ofldq()
3023 written += ndesc; in service_ofldq()
3209 unsigned int ndesc; in ofld_xmit_direct() local
3231 ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); in ofld_xmit_direct()
3232 credits = txq_avail(&q->q) - ndesc; in ofld_xmit_direct()
3239 txq_advance(&q->q, ndesc); in ofld_xmit_direct()
3240 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ofld_xmit_direct()
4032 pktcount += eosw_txq->ndesc; in cxgb4_ethofld_restart()
4110 eosw_txq->ndesc); in cxgb4_ethofld_rx_handler()