Home | History | Annotate | Download | only in cxgb

Lines Matching refs:ndesc

874 txq_prod(struct sge_txq *txq, unsigned int ndesc, struct txq_state *txqs)
876 txq->in_use += ndesc;
882 txq->unacked += ndesc;
886 txq->pidx += ndesc;
1065 * @ndesc: number of Tx descriptors spanned by the SGL
1082 write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs,
1090 if (__predict_true(ndesc == 1)) {
1113 ndesc--;
1162 unsigned int ndesc, flits, cntrl, mlen;
1280 ndesc = calc_tx_descs(m0, nsegs);
1282 sgp = (ndesc == 1) ? (struct sg_ent *)&txd->flit[flits] : sgl;
1287 DPRINTF("make_sgl success nsegs==%d ndesc==%d\n", nsegs, ndesc);
1288 txq_prod(txq, ndesc, &txqs);
1295 write_wr_hdr_sgl(ndesc, txd, &txqs, txq, sgl, flits, sgl_flits, wr_hi, wr_lo);
1336 * @ndesc: the number of Tx descriptors needed
1351 struct mbuf *m, unsigned int ndesc,
1363 if (__predict_false(q->size - q->in_use < ndesc)) {
1709 * @ndesc: number of descriptors the packet will occupy
1717 unsigned int gen, unsigned int ndesc,
1738 sgp = (ndesc == 1) ? (struct sg_ent *)&d->flit[flits] : sgl;
1746 write_wr_hdr_sgl(ndesc, d, &txqs, q, sgl, flits, sgl_flits,
1787 unsigned int ndesc;
1799 ndesc = calc_tx_descs_ofld(m, nsegs);
1802 ret = check_desc_avail(adap, q, m, ndesc, TXQ_OFLD);
1805 m_set_priority(m, ndesc); /* save for restart */
1813 q->in_use += ndesc;
1815 q->pidx += ndesc;
1822 "ofld_xmit: ndesc %u, pidx %u, len %u, main %u, frags %u",
1823 ndesc, pidx, skb->len, skb->len - skb->data_len,
1828 write_ofld_wr(adap, m, q, pidx, gen, ndesc, segs, nsegs);
1861 unsigned int ndesc = m_get_priority(m);
1863 if (__predict_false(q->size - q->in_use < ndesc)) {
1875 q->in_use += ndesc;
1877 q->pidx += ndesc;
1886 write_ofld_wr(adap, m, q, pidx, gen, ndesc, segs, nsegs);