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