ndesc 541 drivers/crypto/chelsio/chcr_ipsec.c u16 ndesc; ndesc 550 drivers/crypto/chelsio/chcr_ipsec.c ndesc = DIV_ROUND_UP(flits, 2); ndesc 566 drivers/crypto/chelsio/chcr_ipsec.c wr_mid = FW_CRYPTO_LOOKASIDE_WR_LEN16_V(ndesc); ndesc 579 drivers/crypto/chelsio/chcr_ipsec.c wr->req.ulptx.len = htonl(ndesc - 1); ndesc 679 drivers/crypto/chelsio/chcr_ipsec.c unsigned int flits = 0, ndesc; ndesc 706 drivers/crypto/chelsio/chcr_ipsec.c ndesc = flits_to_desc(flits); ndesc 707 drivers/crypto/chelsio/chcr_ipsec.c credits = txq_avail(&q->q) - ndesc; ndesc 713 drivers/crypto/chelsio/chcr_ipsec.c dev->name, qidx, credits, ndesc, txq_avail(&q->q), ndesc 751 drivers/crypto/chelsio/chcr_ipsec.c last_desc = q->q.pidx + ndesc - 1; ndesc 757 drivers/crypto/chelsio/chcr_ipsec.c txq_advance(&q->q, ndesc); ndesc 759 drivers/crypto/chelsio/chcr_ipsec.c cxgb4_ring_tx_db(adap, &q->q, ndesc); ndesc 969 drivers/crypto/inside-secure/safexcel.c int ret, i, nreq, ndesc, tot_descs, handled = 0; ndesc 985 drivers/crypto/inside-secure/safexcel.c ndesc = ctx->handle_result(priv, ring, req, ndesc 987 drivers/crypto/inside-secure/safexcel.c if (ndesc < 0) { ndesc 989 drivers/crypto/inside-secure/safexcel.c ndesc); ndesc 999 drivers/crypto/inside-secure/safexcel.c tot_descs += ndesc; ndesc 500 drivers/crypto/inside-secure/safexcel_cipher.c int ndesc = 0; ndesc 519 drivers/crypto/inside-secure/safexcel_cipher.c ndesc++; ndesc 545 drivers/crypto/inside-secure/safexcel_cipher.c return ndesc; ndesc 780 drivers/crypto/inside-secure/safexcel_cipher.c int ndesc = 0, enq_ret; ndesc 799 drivers/crypto/inside-secure/safexcel_cipher.c ndesc++; ndesc 810 drivers/crypto/inside-secure/safexcel_cipher.c return ndesc; ndesc 828 drivers/crypto/inside-secure/safexcel_cipher.c return ndesc; ndesc 187 drivers/dma/idma64.c static struct idma64_desc *idma64_alloc_desc(unsigned int ndesc) ndesc 195 drivers/dma/idma64.c desc->hw = kcalloc(ndesc, sizeof(*desc->hw), GFP_NOWAIT); ndesc 209 drivers/dma/idma64.c if (desc->ndesc) { ndesc 210 drivers/dma/idma64.c unsigned int i = desc->ndesc; ndesc 272 drivers/dma/idma64.c unsigned int i = desc->ndesc; ndesc 312 drivers/dma/idma64.c desc->ndesc = i; ndesc 321 drivers/dma/idma64.c desc->ndesc = sg_len; ndesc 354 drivers/dma/idma64.c } while (++i < desc->ndesc); ndesc 117 drivers/dma/idma64.h unsigned int ndesc; ndesc 808 drivers/infiniband/hw/qib/qib_user_sdma.c int *maxpkts, int *ndesc) ndesc 1015 drivers/infiniband/hw/qib/qib_user_sdma.c *ndesc += pkt->naddr; ndesc 1401 drivers/infiniband/hw/qib/qib_user_sdma.c int ndesc = 0; ndesc 1404 drivers/infiniband/hw/qib/qib_user_sdma.c iov, dim, &list, &mxp, &ndesc); ndesc 1417 drivers/infiniband/hw/qib/qib_user_sdma.c if (qib_sdma_descq_freecnt(ppd) < ndesc) { ndesc 144 drivers/infiniband/hw/qib/qib_verbs.c u32 ndesc = 1; /* count the header */ ndesc 151 drivers/infiniband/hw/qib/qib_verbs.c ndesc = 0; ndesc 154 drivers/infiniband/hw/qib/qib_verbs.c ndesc++; ndesc 174 drivers/infiniband/hw/qib/qib_verbs.c return ndesc; ndesc 783 drivers/infiniband/hw/qib/qib_verbs.c u32 ndesc; ndesc 818 drivers/infiniband/hw/qib/qib_verbs.c ndesc = qib_count_sge(ss, len); ndesc 819 drivers/infiniband/hw/qib/qib_verbs.c if (ndesc >= ppd->sdma_descq_cnt) ndesc 820 drivers/infiniband/hw/qib/qib_verbs.c ndesc = 0; ndesc 822 drivers/infiniband/hw/qib/qib_verbs.c ndesc = 1; ndesc 823 drivers/infiniband/hw/qib/qib_verbs.c if (ndesc) { ndesc 829 drivers/infiniband/hw/qib/qib_verbs.c tx->txreq.sg_count = ndesc; ndesc 1462 drivers/infiniband/ulp/srp/ib_srp.c state->ndesc++; ndesc 1775 drivers/infiniband/ulp/srp/ib_srp.c for (i = 0; i < state->ndesc; i++) ndesc 1787 drivers/infiniband/ulp/srp/ib_srp.c state->ndesc, state->nmdesc); ndesc 1918 drivers/infiniband/ulp/srp/ib_srp.c if (state.ndesc == 1) { ndesc 1930 drivers/infiniband/ulp/srp/ib_srp.c if (unlikely(target->cmd_sg_cnt < state.ndesc && ndesc 1938 drivers/infiniband/ulp/srp/ib_srp.c count = min(state.ndesc, target->cmd_sg_cnt); ndesc 1939 drivers/infiniband/ulp/srp/ib_srp.c table_len = state.ndesc * sizeof (struct srp_direct_buf); ndesc 350 drivers/infiniband/ulp/srp/ib_srp.h unsigned int ndesc; ndesc 1239 drivers/media/platform/marvell-ccic/mcam-core.c int ndesc = cam->pix_format.sizeimage/PAGE_SIZE + 1; ndesc 1242 drivers/media/platform/marvell-ccic/mcam-core.c ndesc * sizeof(struct mcam_dma_desc), ndesc 1273 drivers/media/platform/marvell-ccic/mcam-core.c int ndesc = cam->pix_format.sizeimage/PAGE_SIZE + 1; ndesc 1275 drivers/media/platform/marvell-ccic/mcam-core.c dma_free_coherent(cam->dev, ndesc * sizeof(struct mcam_dma_desc), ndesc 13 drivers/net/ethernet/altera/altera_sgdma.c struct sgdma_descrip __iomem *ndesc, ndesc 173 drivers/net/ethernet/altera/altera_sgdma.c struct sgdma_descrip __iomem *ndesc = &descbase[1]; ndesc 180 drivers/net/ethernet/altera/altera_sgdma.c ndesc, /* next descriptor */ ndesc 181 drivers/net/ethernet/altera/altera_sgdma.c sgdma_txphysaddr(priv, ndesc), ndesc 294 drivers/net/ethernet/altera/altera_sgdma.c struct sgdma_descrip __iomem *ndesc, ndesc 305 drivers/net/ethernet/altera/altera_sgdma.c u32 ctrl = csrrd8(ndesc, sgdma_descroffs(control)); ndesc 307 drivers/net/ethernet/altera/altera_sgdma.c csrwr8(ctrl, ndesc, sgdma_descroffs(control)); ndesc 342 drivers/net/ethernet/altera/altera_sgdma.c struct sgdma_descrip __iomem *ndesc = &descbase[1]; ndesc 353 drivers/net/ethernet/altera/altera_sgdma.c ndesc, /* next descriptor */ ndesc 354 drivers/net/ethernet/altera/altera_sgdma.c sgdma_rxphysaddr(priv, ndesc), ndesc 1280 drivers/net/ethernet/atheros/ag71xx.c int i, ring_mask, ndesc, split; ndesc 1284 drivers/net/ethernet/atheros/ag71xx.c ndesc = 0; ndesc 1293 drivers/net/ethernet/atheros/ag71xx.c i = (ring->curr + ndesc) & ring_mask; ndesc 1317 drivers/net/ethernet/atheros/ag71xx.c if (!ndesc) ndesc 1321 drivers/net/ethernet/atheros/ag71xx.c ndesc++; ndesc 1324 drivers/net/ethernet/atheros/ag71xx.c return ndesc; ndesc 1091 drivers/net/ethernet/chelsio/cxgb3/sge.c static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, ndesc 1109 drivers/net/ethernet/chelsio/cxgb3/sge.c if (likely(ndesc == 1)) { ndesc 1132 drivers/net/ethernet/chelsio/cxgb3/sge.c ndesc--; ndesc 1162 drivers/net/ethernet/chelsio/cxgb3/sge.c WARN_ON(ndesc != 0); ndesc 1182 drivers/net/ethernet/chelsio/cxgb3/sge.c struct sge_txq *q, unsigned int ndesc, ndesc 1240 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; ndesc 1243 drivers/net/ethernet/chelsio/cxgb3/sge.c write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, ndesc 1266 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc, pidx, credits, gen, compl; ndesc 1291 drivers/net/ethernet/chelsio/cxgb3/sge.c ndesc = calc_tx_descs(skb); ndesc 1293 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(credits < ndesc)) { ndesc 1309 drivers/net/ethernet/chelsio/cxgb3/sge.c q->in_use += ndesc; ndesc 1310 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(credits - ndesc < q->stop_thres)) { ndesc 1321 drivers/net/ethernet/chelsio/cxgb3/sge.c q->unacked += ndesc; ndesc 1325 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; ndesc 1366 drivers/net/ethernet/chelsio/cxgb3/sge.c write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); ndesc 1422 drivers/net/ethernet/chelsio/cxgb3/sge.c struct sk_buff *skb, unsigned int ndesc, ndesc 1429 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(q->size - q->in_use < ndesc)) { ndesc 1631 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int gen, unsigned int ndesc, ndesc 1652 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; ndesc 1661 drivers/net/ethernet/chelsio/cxgb3/sge.c write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, ndesc 1698 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; ndesc 1703 drivers/net/ethernet/chelsio/cxgb3/sge.c ret = check_desc_avail(adap, q, skb, ndesc, TXQ_OFLD); ndesc 1706 drivers/net/ethernet/chelsio/cxgb3/sge.c skb->priority = ndesc; /* save for restart */ ndesc 1720 drivers/net/ethernet/chelsio/cxgb3/sge.c q->in_use += ndesc; ndesc 1722 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; ndesc 1729 drivers/net/ethernet/chelsio/cxgb3/sge.c write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); ndesc 1754 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc = skb->priority; ndesc 1756 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(q->size - q->in_use < ndesc)) { ndesc 1772 drivers/net/ethernet/chelsio/cxgb3/sge.c q->in_use += ndesc; ndesc 1774 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; ndesc 1775 drivers/net/ethernet/chelsio/cxgb3/sge.c written += ndesc; ndesc 1783 drivers/net/ethernet/chelsio/cxgb3/sge.c write_ofld_wr(adap, skb, q, pidx, gen, ndesc, ndesc 1368 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int flits, ndesc; ndesc 1440 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = flits_to_desc(flits); ndesc 1441 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; ndesc 1609 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = q->q.pidx + ndesc - 1; ndesc 1616 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&q->q, ndesc); ndesc 1618 drivers/net/ethernet/chelsio/cxgb4/sge.c cxgb4_ring_tx_db(adap, &q->q, ndesc); ndesc 1713 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int flits, ndesc; ndesc 1755 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = flits_to_desc(flits); ndesc 1756 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&txq->q) - ndesc; ndesc 1959 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = tq->pidx + ndesc - 1; ndesc 1969 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&txq->q, ndesc); ndesc 1971 drivers/net/ethernet/chelsio/cxgb4/sge.c cxgb4_ring_tx_db(adapter, &txq->q, ndesc); ndesc 2053 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int ndesc; ndesc 2062 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); ndesc 2066 drivers/net/ethernet/chelsio/cxgb4/sge.c skb->priority = ndesc; /* save for restart */ ndesc 2075 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&q->q, ndesc); ndesc 2079 drivers/net/ethernet/chelsio/cxgb4/sge.c cxgb4_ring_tx_db(q->adap, &q->q, ndesc); ndesc 2104 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int ndesc = skb->priority; /* previously saved */ ndesc 2106 drivers/net/ethernet/chelsio/cxgb4/sge.c written += ndesc; ndesc 2111 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&q->q, ndesc); ndesc 2254 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int flits, ndesc; ndesc 2279 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = flits_to_desc(flits); ndesc 2280 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; ndesc 2327 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = q->q.pidx + ndesc - 1; ndesc 2333 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&q->q, ndesc); ndesc 2334 drivers/net/ethernet/chelsio/cxgb4/sge.c written += ndesc; ndesc 2519 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int ndesc; ndesc 2541 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); ndesc 2542 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; ndesc 2549 drivers/net/ethernet/chelsio/cxgb4/sge.c txq_advance(&q->q, ndesc); ndesc 2550 drivers/net/ethernet/chelsio/cxgb4/sge.c cxgb4_ring_tx_db(q->adap, &q->q, ndesc); ndesc 1162 drivers/net/ethernet/chelsio/cxgb4vf/sge.c unsigned int flits, ndesc; ndesc 1216 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ndesc = flits_to_desc(flits); ndesc 1217 drivers/net/ethernet/chelsio/cxgb4vf/sge.c credits = txq_avail(&txq->q) - ndesc; ndesc 1367 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); ndesc 1438 drivers/net/ethernet/chelsio/cxgb4vf/sge.c last_desc = tq->pidx + ndesc - 1; ndesc 1449 drivers/net/ethernet/chelsio/cxgb4vf/sge.c txq_advance(&txq->q, ndesc); ndesc 1451 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ring_tx_db(adapter, &txq->q, ndesc); ndesc 164 drivers/net/ethernet/rdc/r6040.c __le32 ndesc; /* 8-B */ ndesc 300 drivers/net/ethernet/rdc/r6040.c desc->ndesc = cpu_to_le32(mapping); ndesc 305 drivers/net/ethernet/rdc/r6040.c desc->ndesc = cpu_to_le32(desc_dma); ndesc 232 drivers/net/ethernet/socionext/sni_ave.c u32 ndesc; /* number of descriptor */ ndesc 682 drivers/net/ethernet/socionext/sni_ave.c u32 proc_idx, done_idx, ndesc, cmdsts; ndesc 689 drivers/net/ethernet/socionext/sni_ave.c ndesc = priv->tx.ndesc; ndesc 722 drivers/net/ethernet/socionext/sni_ave.c done_idx = (done_idx + 1) % ndesc; ndesc 749 drivers/net/ethernet/socionext/sni_ave.c u32 ndesc, cmdsts; ndesc 753 drivers/net/ethernet/socionext/sni_ave.c ndesc = priv->rx.ndesc; ndesc 754 drivers/net/ethernet/socionext/sni_ave.c restpkt = ((proc_idx + ndesc - 1) - done_idx) % ndesc; ndesc 769 drivers/net/ethernet/socionext/sni_ave.c proc_idx = (proc_idx + 1) % ndesc; ndesc 793 drivers/net/ethernet/socionext/sni_ave.c proc_idx = (proc_idx + 1) % ndesc; ndesc 808 drivers/net/ethernet/socionext/sni_ave.c done_idx = (done_idx + 1) % ndesc; ndesc 903 drivers/net/ethernet/socionext/sni_ave.c ave_rx_receive(ndev, priv->rx.ndesc); ndesc 1275 drivers/net/ethernet/socionext/sni_ave.c priv->tx.desc = kcalloc(priv->tx.ndesc, sizeof(*priv->tx.desc), ndesc 1282 drivers/net/ethernet/socionext/sni_ave.c priv->rx.desc = kcalloc(priv->rx.ndesc, sizeof(*priv->rx.desc), ndesc 1293 drivers/net/ethernet/socionext/sni_ave.c for (entry = 0; entry < priv->tx.ndesc; entry++) { ndesc 1298 drivers/net/ethernet/socionext/sni_ave.c (((priv->tx.ndesc * priv->desc_size) << 16) & AVE_TXDC_SIZE), ndesc 1304 drivers/net/ethernet/socionext/sni_ave.c for (entry = 0; entry < priv->rx.ndesc; entry++) { ndesc 1309 drivers/net/ethernet/socionext/sni_ave.c (((priv->rx.ndesc * priv->desc_size) << 16) & AVE_RXDC0_SIZE), ndesc 1368 drivers/net/ethernet/socionext/sni_ave.c for (entry = 0; entry < priv->tx.ndesc; entry++) { ndesc 1380 drivers/net/ethernet/socionext/sni_ave.c for (entry = 0; entry < priv->rx.ndesc; entry++) { ndesc 1400 drivers/net/ethernet/socionext/sni_ave.c u32 proc_idx, done_idx, ndesc, cmdsts; ndesc 1406 drivers/net/ethernet/socionext/sni_ave.c ndesc = priv->tx.ndesc; ndesc 1407 drivers/net/ethernet/socionext/sni_ave.c freepkt = ((done_idx + ndesc - 1) - proc_idx) % ndesc; ndesc 1450 drivers/net/ethernet/socionext/sni_ave.c priv->tx.proc_idx = (proc_idx + 1) % ndesc; ndesc 1637 drivers/net/ethernet/socionext/sni_ave.c priv->tx.ndesc = AVE_NR_TXDESC; ndesc 1638 drivers/net/ethernet/socionext/sni_ave.c priv->rx.ndesc = AVE_NR_RXDESC; ndesc 109 drivers/net/ethernet/ti/netcp_core.c static void get_pkt_info(dma_addr_t *buff, u32 *buff_len, dma_addr_t *ndesc, ndesc 114 drivers/net/ethernet/ti/netcp_core.c *ndesc = le32_to_cpu(desc->next_desc); ndesc 151 drivers/net/ethernet/ti/netcp_core.c static void set_pkt_info(dma_addr_t buff, u32 buff_len, u32 ndesc, ndesc 156 drivers/net/ethernet/ti/netcp_core.c desc->next_desc = cpu_to_le32(ndesc); ndesc 581 drivers/net/ethernet/ti/netcp_core.c struct knav_dma_desc *ndesc; ndesc 583 drivers/net/ethernet/ti/netcp_core.c unsigned int buf_len, dma_sz = sizeof(*ndesc); ndesc 590 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); ndesc 591 drivers/net/ethernet/ti/netcp_core.c if (unlikely(!ndesc)) { ndesc 595 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc); ndesc 599 drivers/net/ethernet/ti/netcp_core.c buf_ptr = (void *)GET_SW_DATA0(ndesc); ndesc 644 drivers/net/ethernet/ti/netcp_core.c struct knav_dma_desc *desc, *ndesc; ndesc 694 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); ndesc 695 drivers/net/ethernet/ti/netcp_core.c if (unlikely(!ndesc)) { ndesc 700 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buff, &buf_len, &dma_desc, ndesc); ndesc 704 drivers/net/ethernet/ti/netcp_core.c page = (struct page *)GET_SW_DATA0(ndesc); ndesc 720 drivers/net/ethernet/ti/netcp_core.c knav_pool_desc_put(netcp->rx_pool, ndesc); ndesc 977 drivers/net/ethernet/ti/netcp_core.c struct knav_dma_desc *ndesc = desc; ndesc 981 drivers/net/ethernet/ti/netcp_core.c while (ndesc) { ndesc 982 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buf, &buf_len, &dma_desc, ndesc); ndesc 991 drivers/net/ethernet/ti/netcp_core.c knav_pool_desc_put(netcp->tx_pool, ndesc); ndesc 992 drivers/net/ethernet/ti/netcp_core.c ndesc = NULL; ndesc 994 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->tx_pool, dma_desc, ndesc 996 drivers/net/ethernet/ti/netcp_core.c if (!ndesc) ndesc 1084 drivers/net/ethernet/ti/netcp_core.c struct knav_dma_desc *desc, *ndesc, *pdesc; ndesc 1131 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_get(netcp->tx_pool); ndesc 1132 drivers/net/ethernet/ti/netcp_core.c if (IS_ERR_OR_NULL(ndesc)) { ndesc 1138 drivers/net/ethernet/ti/netcp_core.c desc_dma = knav_pool_desc_virt_to_dma(netcp->tx_pool, ndesc); ndesc 1139 drivers/net/ethernet/ti/netcp_core.c set_pkt_info(dma_addr, buf_len, 0, ndesc); ndesc 1146 drivers/net/ethernet/ti/netcp_core.c pdesc = ndesc; ndesc 77 drivers/net/wireless/ath/ath9k/ath9k.h int nbuf, int ndesc, bool is_tx); ndesc 285 drivers/net/wireless/ath/ath9k/init.c int nbuf, int ndesc, bool is_tx) ndesc 292 drivers/net/wireless/ath/ath9k/init.c name, nbuf, ndesc); ndesc 308 drivers/net/wireless/ath/ath9k/init.c dd->dd_desc_len = desc_len * nbuf * ndesc; ndesc 348 drivers/net/wireless/ath/ath9k/init.c for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ndesc 364 drivers/net/wireless/ath/ath9k/init.c ds += (desc_len * ndesc); ndesc 379 drivers/net/wireless/ath/ath9k/init.c for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ndesc 395 drivers/net/wireless/ath/ath9k/init.c ds += (desc_len * ndesc); ndesc 21 drivers/net/wireless/mediatek/mt76/dma.c q->ndesc = n_desc; ndesc 25 drivers/net/wireless/mediatek/mt76/dma.c size = q->ndesc * sizeof(struct mt76_desc); ndesc 30 drivers/net/wireless/mediatek/mt76/dma.c size = q->ndesc * sizeof(*q->entry); ndesc 36 drivers/net/wireless/mediatek/mt76/dma.c for (i = 0; i < q->ndesc; i++) ndesc 42 drivers/net/wireless/mediatek/mt76/dma.c writel(q->ndesc, &q->regs->ring_size); ndesc 76 drivers/net/wireless/mediatek/mt76/dma.c q->head = (q->head + 1) % q->ndesc; ndesc 132 drivers/net/wireless/mediatek/mt76/dma.c writel(q->ndesc, &q->regs->ring_size); ndesc 162 drivers/net/wireless/mediatek/mt76/dma.c q->tail = (q->tail + 1) % q->ndesc; ndesc 192 drivers/net/wireless/mediatek/mt76/dma.c qid < IEEE80211_NUM_ACS && q->queued < q->ndesc - 8; ndesc 244 drivers/net/wireless/mediatek/mt76/dma.c q->tail = (q->tail + 1) % q->ndesc; ndesc 339 drivers/net/wireless/mediatek/mt76/dma.c if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { ndesc 372 drivers/net/wireless/mediatek/mt76/dma.c while (q->queued < q->ndesc - 1) { ndesc 430 drivers/net/wireless/mediatek/mt76/dma.c for (i = 0; i < q->ndesc; i++) ndesc 118 drivers/net/wireless/mediatek/mt76/mt76.h int ndesc; ndesc 284 drivers/net/wireless/mediatek/mt76/tx.c if (q->queued > q->ndesc - 8 && !q->stopped) { ndesc 400 drivers/net/wireless/mediatek/mt76/usb.c q->head = (q->head + 1) % q->ndesc; ndesc 520 drivers/net/wireless/mediatek/mt76/usb.c q->tail = (q->tail + 1) % q->ndesc; ndesc 570 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < q->ndesc; i++) { ndesc 599 drivers/net/wireless/mediatek/mt76/usb.c q->ndesc = MT_NUM_RX_ENTRIES; ndesc 602 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < q->ndesc; i++) { ndesc 617 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < q->ndesc; i++) ndesc 633 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < q->ndesc; i++) ndesc 645 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < q->ndesc; i++) ndesc 678 drivers/net/wireless/mediatek/mt76/usb.c q->head = (q->head + 1) % q->ndesc; ndesc 689 drivers/net/wireless/mediatek/mt76/usb.c wake = q->stopped && q->queued < q->ndesc - 8; ndesc 779 drivers/net/wireless/mediatek/mt76/usb.c if (q->queued == q->ndesc) ndesc 795 drivers/net/wireless/mediatek/mt76/usb.c q->tail = (q->tail + 1) % q->ndesc; ndesc 820 drivers/net/wireless/mediatek/mt76/usb.c q->first = (q->first + 1) % q->ndesc; ndesc 851 drivers/net/wireless/mediatek/mt76/usb.c q->ndesc = MT_NUM_TX_ENTRIES; ndesc 852 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) { ndesc 869 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) ndesc 887 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) ndesc 903 drivers/net/wireless/mediatek/mt76/usb.c q->head = (q->head + 1) % q->ndesc; ndesc 113 drivers/usb/mon/mon_bin.c unsigned int ndesc; /* Actual number of ISO descriptors */ ndesc 448 drivers/usb/mon/mon_bin.c struct urb *urb, unsigned int ndesc) ndesc 455 drivers/usb/mon/mon_bin.c while (ndesc-- != 0) { ndesc 466 drivers/usb/mon/mon_bin.c unsigned int offset, struct urb *urb, char ev_type, unsigned int ndesc) ndesc 472 drivers/usb/mon/mon_bin.c while (ndesc-- != 0) { ndesc 495 drivers/usb/mon/mon_bin.c unsigned int ndesc, lendesc; ndesc 513 drivers/usb/mon/mon_bin.c ndesc = 0; ndesc 515 drivers/usb/mon/mon_bin.c ndesc = ISODESC_MAX; ndesc 517 drivers/usb/mon/mon_bin.c ndesc = urb->number_of_packets; ndesc 520 drivers/usb/mon/mon_bin.c length = mon_bin_collate_isodesc(rp, urb, ndesc); ndesc 522 drivers/usb/mon/mon_bin.c ndesc = 0; ndesc 524 drivers/usb/mon/mon_bin.c lendesc = ndesc*sizeof(struct mon_bin_isodesc); ndesc 595 drivers/usb/mon/mon_bin.c if (ndesc != 0) { ndesc 596 drivers/usb/mon/mon_bin.c ep->ndesc = ndesc; ndesc 597 drivers/usb/mon/mon_bin.c mon_bin_get_isodesc(rp, offset, urb, ev_type, ndesc); ndesc 200 drivers/usb/mon/mon_text.c int i, ndesc; ndesc 233 drivers/usb/mon/mon_text.c if ((ndesc = urb->number_of_packets) > ISODESC_MAX) ndesc 234 drivers/usb/mon/mon_text.c ndesc = ISODESC_MAX; ndesc 237 drivers/usb/mon/mon_text.c for (i = 0; i < ndesc; i++) { ndesc 591 drivers/usb/mon/mon_text.c int ndesc; /* Display this many */ ndesc 597 drivers/usb/mon/mon_text.c ndesc = ep->numdesc; ndesc 598 drivers/usb/mon/mon_text.c if (ndesc > ISODESC_MAX) ndesc 599 drivers/usb/mon/mon_text.c ndesc = ISODESC_MAX; ndesc 600 drivers/usb/mon/mon_text.c if (ndesc < 0) ndesc 601 drivers/usb/mon/mon_text.c ndesc = 0; ndesc 603 drivers/usb/mon/mon_text.c for (i = 0; i < ndesc; i++) {