Lines Matching refs:ndesc
1128 txq_prod(struct sge_txq *txq, unsigned int ndesc, struct txq_state *txqs) in txq_prod() argument
1130 txq->in_use += ndesc; in txq_prod()
1136 txq->unacked += ndesc; in txq_prod()
1140 txq->pidx += ndesc; in txq_prod()
1279 write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs, in write_wr_hdr_sgl() argument
1286 if (__predict_true(ndesc == 1)) { in write_wr_hdr_sgl()
1309 ndesc--; in write_wr_hdr_sgl()
1359 unsigned int ndesc, flits, cntrl, mlen; in t3_encap() local
1390 ndesc = 1; in t3_encap()
1400 ndesc = calc_tx_descs(m0, nsegs); in t3_encap()
1402 txq_prod(txq, ndesc, &txqs); in t3_encap()
1571 sgp = (ndesc == 1) ? (struct sg_ent *)&txd->flit[flits] : sgl; in t3_encap()
1578 KASSERT(ndesc <= 4, ("ndesc too large %d", ndesc)); in t3_encap()
1581 write_wr_hdr_sgl(ndesc, txd, &txqs, txq, sgl, flits, in t3_encap()
1830 struct mbuf *m, unsigned int ndesc, in check_desc_avail() argument
1842 if (__predict_false(q->size - q->in_use < ndesc)) { in check_desc_avail()
2196 unsigned int pidx, unsigned int gen, unsigned int ndesc) in write_ofld_wr() argument
2228 sgp = (ndesc == 1) ? (struct sg_ent *)&d->flit[flits] : t3sgl; in write_ofld_wr()
2250 write_wr_hdr_sgl(ndesc, d, &txqs, q, t3sgl, flits, sgl_flits, in write_ofld_wr()
2266 unsigned int ndesc; in ofld_xmit() local
2271 ndesc = G_HDR_NDESC(oh->flags); in ofld_xmit()
2275 ret = check_desc_avail(adap, q, m, ndesc, TXQ_OFLD); in ofld_xmit()
2285 q->in_use += ndesc; in ofld_xmit()
2287 q->pidx += ndesc; in ofld_xmit()
2293 write_ofld_wr(adap, m, q, pidx, gen, ndesc); in ofld_xmit()
2319 unsigned int ndesc = G_HDR_NDESC(oh->flags); in restart_offloadq() local
2321 if (__predict_false(q->size - q->in_use < ndesc)) { in restart_offloadq()
2331 q->in_use += ndesc; in restart_offloadq()
2333 q->pidx += ndesc; in restart_offloadq()
2341 write_ofld_wr(adap, m, q, pidx, gen, ndesc); in restart_offloadq()