Lines Matching refs:ndesc
1089 static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, in write_wr_hdr_sgl() argument
1107 if (likely(ndesc == 1)) { in write_wr_hdr_sgl()
1130 ndesc--; in write_wr_hdr_sgl()
1160 WARN_ON(ndesc != 0); in write_wr_hdr_sgl()
1181 struct sge_txq *q, unsigned int ndesc, in write_tx_pkt_wr() argument
1239 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1242 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1265 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1290 ndesc = calc_tx_descs(skb); in t3_eth_xmit()
1292 if (unlikely(credits < ndesc)) { in t3_eth_xmit()
1308 q->in_use += ndesc; in t3_eth_xmit()
1309 if (unlikely(credits - ndesc < q->stop_thres)) { in t3_eth_xmit()
1320 q->unacked += ndesc; in t3_eth_xmit()
1324 q->pidx += ndesc; in t3_eth_xmit()
1365 write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); in t3_eth_xmit()
1421 struct sk_buff *skb, unsigned int ndesc, in check_desc_avail() argument
1428 if (unlikely(q->size - q->in_use < ndesc)) { in check_desc_avail()
1633 unsigned int gen, unsigned int ndesc, in write_ofld_wr() argument
1654 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_ofld_wr()
1663 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, in write_ofld_wr()
1700 unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; in ofld_xmit() local
1705 ret = check_desc_avail(adap, q, skb, ndesc, TXQ_OFLD); in ofld_xmit()
1708 skb->priority = ndesc; /* save for restart */ in ofld_xmit()
1722 q->in_use += ndesc; in ofld_xmit()
1724 q->pidx += ndesc; in ofld_xmit()
1731 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); in ofld_xmit()
1757 unsigned int ndesc = skb->priority; in restart_offloadq() local
1759 if (unlikely(q->size - q->in_use < ndesc)) { in restart_offloadq()
1775 q->in_use += ndesc; in restart_offloadq()
1777 q->pidx += ndesc; in restart_offloadq()
1778 written += ndesc; in restart_offloadq()
1786 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, in restart_offloadq()