Lines Matching refs:ndesc

1087 static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb,  in write_wr_hdr_sgl()  argument
1105 if (likely(ndesc == 1)) { in write_wr_hdr_sgl()
1128 ndesc--; in write_wr_hdr_sgl()
1158 WARN_ON(ndesc != 0); in write_wr_hdr_sgl()
1179 struct sge_txq *q, unsigned int ndesc, in write_tx_pkt_wr() argument
1237 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1240 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1263 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1288 ndesc = calc_tx_descs(skb); in t3_eth_xmit()
1290 if (unlikely(credits < ndesc)) { in t3_eth_xmit()
1306 q->in_use += ndesc; in t3_eth_xmit()
1307 if (unlikely(credits - ndesc < q->stop_thres)) { in t3_eth_xmit()
1318 q->unacked += ndesc; in t3_eth_xmit()
1322 q->pidx += ndesc; in t3_eth_xmit()
1363 write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); in t3_eth_xmit()
1419 struct sk_buff *skb, unsigned int ndesc, in check_desc_avail() argument
1426 if (unlikely(q->size - q->in_use < ndesc)) { in check_desc_avail()
1631 unsigned int gen, unsigned int ndesc, in write_ofld_wr() argument
1652 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_ofld_wr()
1661 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, in write_ofld_wr()
1698 unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; in ofld_xmit() local
1703 ret = check_desc_avail(adap, q, skb, ndesc, TXQ_OFLD); in ofld_xmit()
1706 skb->priority = ndesc; /* save for restart */ in ofld_xmit()
1720 q->in_use += ndesc; in ofld_xmit()
1722 q->pidx += ndesc; in ofld_xmit()
1729 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); in ofld_xmit()
1755 unsigned int ndesc = skb->priority; in restart_offloadq() local
1757 if (unlikely(q->size - q->in_use < ndesc)) { in restart_offloadq()
1773 q->in_use += ndesc; in restart_offloadq()
1775 q->pidx += ndesc; in restart_offloadq()
1776 written += ndesc; in restart_offloadq()
1784 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, in restart_offloadq()