Lines Matching refs:ndesc

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