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()
1732 txq_advance(&q->q, ndesc); in cxgb4_eth_xmit()
1734 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_eth_xmit()
1825 unsigned int last_desc, flits, ndesc; in cxgb4_vf_eth_xmit() local
1866 ndesc = flits_to_desc(flits); in cxgb4_vf_eth_xmit()
1867 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1882 last_desc = txq->q.pidx + ndesc - 1; in cxgb4_vf_eth_xmit()
2081 txq_advance(&txq->q, ndesc); in cxgb4_vf_eth_xmit()
2083 cxgb4_ring_tx_db(adapter, &txq->q, ndesc); in cxgb4_vf_eth_xmit()
2125 struct sge_eosw_txq *eosw_txq, u32 ndesc) in cxgb4_eosw_txq_free_desc() argument
2130 while (ndesc--) { in cxgb4_eosw_txq_free_desc()
2140 eosw_txq->ndesc); in cxgb4_eosw_txq_free_desc()
2147 eosw_txq_advance_index(&eosw_txq->pidx, n, eosw_txq->ndesc); in eosw_txq_advance()
2154 if (eosw_txq->inuse == eosw_txq->ndesc) in eosw_txq_enqueue()
2271 u8 flits, ndesc; in ethofld_hard_xmit() local
2297 ndesc = flits_to_desc(flits); in ethofld_hard_xmit()
2301 left = txq_avail(&eohw_txq->q) - ndesc; in ethofld_hard_xmit()
2383 txq_advance(&eohw_txq->q, ndesc); in ethofld_hard_xmit()
2384 cxgb4_ring_tx_db(adap, &eohw_txq->q, ndesc); in ethofld_hard_xmit()
2385 eosw_txq_advance_index(&eosw_txq->last_pidx, 1, eosw_txq->ndesc); in ethofld_hard_xmit()
2403 pktcount += eosw_txq->ndesc; in ethofld_xmit()
2416 eosw_txq->ndesc); in ethofld_xmit()
2503 pktcount += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2508 pidx += eosw_txq->ndesc; in eosw_txq_flush_pending_skbs()
2667 u32 ctrl0, ndesc, flits; in cxgb4_selftest_lb_pkt() local
2675 ndesc = flits_to_desc(flits); in cxgb4_selftest_lb_pkt()
2684 credits = txq_avail(&q->q) - ndesc; in cxgb4_selftest_lb_pkt()
2719 txq_advance(&q->q, ndesc); in cxgb4_selftest_lb_pkt()
2720 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_selftest_lb_pkt()
2745 unsigned int ndesc; in ctrl_xmit() local
2754 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2758 skb->priority = ndesc; /* save for restart */ in ctrl_xmit()
2767 txq_advance(&q->q, ndesc); in ctrl_xmit()
2771 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ctrl_xmit()
2796 unsigned int ndesc = skb->priority; /* previously saved */ in restart_ctrlq() local
2798 written += ndesc; in restart_ctrlq()
2803 txq_advance(&q->q, ndesc); in restart_ctrlq()
2951 unsigned int flits, ndesc; in service_ofldq() local
2976 ndesc = flits_to_desc(flits); in service_ofldq()
2977 credits = txq_avail(&q->q) - ndesc; in service_ofldq()
3024 last_desc = q->q.pidx + ndesc - 1; in service_ofldq()
3030 txq_advance(&q->q, ndesc); in service_ofldq()
3031 written += ndesc; in service_ofldq()
3217 unsigned int ndesc; in ofld_xmit_direct() local
3239 ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); in ofld_xmit_direct()
3240 credits = txq_avail(&q->q) - ndesc; in ofld_xmit_direct()
3247 txq_advance(&q->q, ndesc); in ofld_xmit_direct()
3248 cxgb4_ring_tx_db(q->adap, &q->q, ndesc); in ofld_xmit_direct()
4021 pktcount += eosw_txq->ndesc; in cxgb4_ethofld_restart()
4099 eosw_txq->ndesc); in cxgb4_ethofld_rx_handler()