Lines Matching refs:ndesc
1092 static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, in write_wr_hdr_sgl() argument
1110 if (likely(ndesc == 1)) { in write_wr_hdr_sgl()
1133 ndesc--; in write_wr_hdr_sgl()
1163 WARN_ON(ndesc != 0); in write_wr_hdr_sgl()
1184 struct sge_txq *q, unsigned int ndesc, in write_tx_pkt_wr() argument
1242 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1245 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1268 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1293 ndesc = calc_tx_descs(skb); in t3_eth_xmit()
1295 if (unlikely(credits < ndesc)) { in t3_eth_xmit()
1311 q->in_use += ndesc; in t3_eth_xmit()
1312 if (unlikely(credits - ndesc < q->stop_thres)) { in t3_eth_xmit()
1323 q->unacked += ndesc; in t3_eth_xmit()
1327 q->pidx += ndesc; in t3_eth_xmit()
1368 write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); in t3_eth_xmit()
1424 struct sk_buff *skb, unsigned int ndesc, in check_desc_avail() argument
1431 if (unlikely(q->size - q->in_use < ndesc)) { in check_desc_avail()
1636 unsigned int gen, unsigned int ndesc, in write_ofld_wr() argument
1657 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_ofld_wr()
1666 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, in write_ofld_wr()
1703 unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; in ofld_xmit() local
1708 ret = check_desc_avail(adap, q, skb, ndesc, TXQ_OFLD); in ofld_xmit()
1711 skb->priority = ndesc; /* save for restart */ in ofld_xmit()
1725 q->in_use += ndesc; in ofld_xmit()
1727 q->pidx += ndesc; in ofld_xmit()
1734 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); in ofld_xmit()
1760 unsigned int ndesc = skb->priority; in restart_offloadq() local
1762 if (unlikely(q->size - q->in_use < ndesc)) { in restart_offloadq()
1778 q->in_use += ndesc; in restart_offloadq()
1780 q->pidx += ndesc; in restart_offloadq()
1781 written += ndesc; in restart_offloadq()
1789 write_ofld_wr(adap, skb, q, pidx, gen, ndesc, in restart_offloadq()