Home
last modified time | relevance | path

Searched refs:ndesc (Results 1 – 20 of 20) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/altera/
Daltera_sgdma.c24 struct sgdma_descrip __iomem *ndesc,
184 struct sgdma_descrip __iomem *ndesc = &descbase[1]; in sgdma_tx_buffer() local
191 ndesc, /* next descriptor */ in sgdma_tx_buffer()
192 sgdma_txphysaddr(priv, ndesc), in sgdma_tx_buffer()
305 struct sgdma_descrip __iomem *ndesc, in sgdma_setup_descrip() argument
316 u32 ctrl = csrrd8(ndesc, sgdma_descroffs(control)); in sgdma_setup_descrip()
318 csrwr8(ctrl, ndesc, sgdma_descroffs(control)); in sgdma_setup_descrip()
353 struct sgdma_descrip __iomem *ndesc = &descbase[1]; in sgdma_async_read() local
364 ndesc, /* next descriptor */ in sgdma_async_read()
365 sgdma_rxphysaddr(priv, ndesc), in sgdma_async_read()
/linux-4.4.14/drivers/net/ethernet/ti/
Dnetcp_core.c112 static void get_pkt_info(u32 *buff, u32 *buff_len, u32 *ndesc, in get_pkt_info() argument
117 *ndesc = desc->next_desc; in get_pkt_info()
141 static void set_pkt_info(u32 buff, u32 buff_len, u32 ndesc, in set_pkt_info() argument
146 desc->next_desc = ndesc; in set_pkt_info()
569 struct knav_dma_desc *ndesc; in netcp_free_rx_desc_chain() local
571 unsigned int buf_len, dma_sz = sizeof(*ndesc); in netcp_free_rx_desc_chain()
578 ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); in netcp_free_rx_desc_chain()
579 if (unlikely(!ndesc)) { in netcp_free_rx_desc_chain()
583 get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc); in netcp_free_rx_desc_chain()
584 get_pad_info((u32 *)&buf_ptr, &tmp, ndesc); in netcp_free_rx_desc_chain()
[all …]
/linux-4.4.14/drivers/usb/mon/
Dmon_bin.c110 unsigned int ndesc; /* Actual number of ISO descriptors */ member
445 struct urb *urb, unsigned int ndesc) in mon_bin_collate_isodesc() argument
452 while (ndesc-- != 0) { in mon_bin_collate_isodesc()
463 unsigned int offset, struct urb *urb, char ev_type, unsigned int ndesc) in mon_bin_get_isodesc() argument
469 while (ndesc-- != 0) { in mon_bin_get_isodesc()
492 unsigned int ndesc, lendesc; in mon_bin_event() local
510 ndesc = 0; in mon_bin_event()
512 ndesc = ISODESC_MAX; in mon_bin_event()
514 ndesc = urb->number_of_packets; in mon_bin_event()
517 length = mon_bin_collate_isodesc(rp, urb, ndesc); in mon_bin_event()
[all …]
Dmon_text.c195 int i, ndesc; in mon_text_event() local
228 if ((ndesc = urb->number_of_packets) > ISODESC_MAX) in mon_text_event()
229 ndesc = ISODESC_MAX; in mon_text_event()
232 for (i = 0; i < ndesc; i++) { in mon_text_event()
556 int ndesc; /* Display this many */ in mon_text_read_isodesc() local
562 ndesc = ep->numdesc; in mon_text_read_isodesc()
563 if (ndesc > ISODESC_MAX) in mon_text_read_isodesc()
564 ndesc = ISODESC_MAX; in mon_text_read_isodesc()
565 if (ndesc < 0) in mon_text_read_isodesc()
566 ndesc = 0; in mon_text_read_isodesc()
[all …]
/linux-4.4.14/drivers/dma/
Didma64.c200 static struct idma64_desc *idma64_alloc_desc(unsigned int ndesc) in idma64_alloc_desc() argument
208 desc->hw = kcalloc(ndesc, sizeof(*desc->hw), GFP_NOWAIT); in idma64_alloc_desc()
222 if (desc->ndesc) { in idma64_desc_free()
223 unsigned int i = desc->ndesc; in idma64_desc_free()
286 struct idma64_hw_desc *hw = &desc->hw[desc->ndesc - 1]; in idma64_desc_fill()
289 unsigned int i = desc->ndesc; in idma64_desc_fill()
322 desc->ndesc = i; in idma64_prep_slave_sg()
331 desc->ndesc = sg_len; in idma64_prep_slave_sg()
364 } while (++i < desc->ndesc); in idma64_active_desc_size()
Didma64.h119 unsigned int ndesc; member
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1049 static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, in write_wr_hdr_sgl() argument
1067 if (likely(ndesc == 1)) { in write_wr_hdr_sgl()
1090 ndesc--; in write_wr_hdr_sgl()
1120 WARN_ON(ndesc != 0); in write_wr_hdr_sgl()
1140 struct sge_txq *q, unsigned int ndesc, in write_tx_pkt_wr() argument
1198 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1201 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1224 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1248 ndesc = calc_tx_descs(skb); in t3_eth_xmit()
1250 if (unlikely(credits < ndesc)) { in t3_eth_xmit()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1143 unsigned int flits, ndesc; in t4_eth_xmit() local
1188 ndesc = flits_to_desc(flits); in t4_eth_xmit()
1189 credits = txq_avail(&q->q) - ndesc; in t4_eth_xmit()
1300 last_desc = q->q.pidx + ndesc - 1; in t4_eth_xmit()
1307 txq_advance(&q->q, ndesc); in t4_eth_xmit()
1309 ring_tx_db(adap, &q->q, ndesc); in t4_eth_xmit()
1374 unsigned int ndesc; in ctrl_xmit() local
1383 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
1387 skb->priority = ndesc; /* save for restart */ in ctrl_xmit()
1396 txq_advance(&q->q, ndesc); in ctrl_xmit()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dinit.c227 int nbuf, int ndesc, bool is_tx) in ath_descdma_setup() argument
234 name, nbuf, ndesc); in ath_descdma_setup()
250 dd->dd_desc_len = desc_len * nbuf * ndesc; in ath_descdma_setup()
290 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
306 ds += (desc_len * ndesc); in ath_descdma_setup()
321 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
337 ds += (desc_len * ndesc); in ath_descdma_setup()
Dath9k.h76 int nbuf, int ndesc, bool is_tx);
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_verbs.c256 u32 ndesc = 1; /* count the header */ in qib_count_sge() local
268 ndesc = 0; in qib_count_sge()
271 ndesc++; in qib_count_sge()
291 return ndesc; in qib_count_sge()
1162 u32 ndesc; in qib_verbs_send_dma() local
1198 ndesc = qib_count_sge(ss, len); in qib_verbs_send_dma()
1199 if (ndesc >= ppd->sdma_descq_cnt) in qib_verbs_send_dma()
1200 ndesc = 0; in qib_verbs_send_dma()
1202 ndesc = 1; in qib_verbs_send_dma()
1203 if (ndesc) { in qib_verbs_send_dma()
[all …]
Dqib_user_sdma.c812 int *maxpkts, int *ndesc) in qib_user_sdma_queue_pkts() argument
1018 *ndesc += pkt->naddr; in qib_user_sdma_queue_pkts()
1404 int ndesc = 0; in qib_user_sdma_writev() local
1407 iov, dim, &list, &mxp, &ndesc); in qib_user_sdma_writev()
1420 if (qib_sdma_descq_freecnt(ppd) < ndesc) { in qib_user_sdma_writev()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_verbs.c254 u32 ndesc = 1; /* count the header */ in ipath_count_sge() local
266 ndesc = 0; in ipath_count_sge()
269 ndesc++; in ipath_count_sge()
289 return ndesc; in ipath_count_sge()
1120 u32 ndesc; in ipath_verbs_send_dma() local
1171 ndesc = ipath_count_sge(ss, len); in ipath_verbs_send_dma()
1172 if (ndesc >= dd->ipath_sdma_descq_cnt) in ipath_verbs_send_dma()
1173 ndesc = 0; in ipath_verbs_send_dma()
1175 ndesc = 1; in ipath_verbs_send_dma()
1176 if (ndesc) { in ipath_verbs_send_dma()
[all …]
/linux-4.4.14/drivers/infiniband/ulp/srp/
Dib_srp.h305 unsigned int ndesc; member
Dib_srp.c1272 state->ndesc++; in srp_map_desc()
1626 if (state.ndesc == 1) { in srp_map_data()
1637 if (unlikely(target->cmd_sg_cnt < state.ndesc && in srp_map_data()
1644 count = min(state.ndesc, target->cmd_sg_cnt); in srp_map_data()
1645 table_len = state.ndesc * sizeof (struct srp_direct_buf); in srp_map_data()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1167 unsigned int flits, ndesc; in t4vf_eth_xmit() local
1217 ndesc = flits_to_desc(flits); in t4vf_eth_xmit()
1218 credits = txq_avail(&txq->q) - ndesc; in t4vf_eth_xmit()
1368 ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); in t4vf_eth_xmit()
1439 last_desc = tq->pidx + ndesc - 1; in t4vf_eth_xmit()
1450 txq_advance(&txq->q, ndesc); in t4vf_eth_xmit()
1452 ring_tx_db(adapter, &txq->q, ndesc); in t4vf_eth_xmit()
/linux-4.4.14/drivers/nvme/host/
Dscsi.c2381 u16 ndesc, list_len; in nvme_trans_unmap() local
2395 ndesc = be16_to_cpu(plist->unmap_blk_desc_data_len) >> 4; in nvme_trans_unmap()
2396 if (!ndesc || ndesc > 256) { in nvme_trans_unmap()
2401 range = kcalloc(ndesc, sizeof(*range), GFP_KERNEL); in nvme_trans_unmap()
2407 for (i = 0; i < ndesc; i++) { in nvme_trans_unmap()
2416 c.dsm.nr = cpu_to_le32(ndesc - 1); in nvme_trans_unmap()
2420 ndesc * sizeof(*range)); in nvme_trans_unmap()
/linux-4.4.14/drivers/media/platform/marvell-ccic/
Dmcam-core.c1207 int ndesc = cam->pix_format.sizeimage/PAGE_SIZE + 1; in mcam_vb_sg_buf_init() local
1210 ndesc * sizeof(struct mcam_dma_desc), in mcam_vb_sg_buf_init()
1241 int ndesc = cam->pix_format.sizeimage/PAGE_SIZE + 1; in mcam_vb_sg_buf_cleanup() local
1243 dma_free_coherent(cam->dev, ndesc * sizeof(struct mcam_dma_desc), in mcam_vb_sg_buf_cleanup()
/linux-4.4.14/drivers/net/ethernet/rdc/
Dr6040.c178 __le32 ndesc; /* 8-B */ member
315 desc->ndesc = cpu_to_le32(mapping); in r6040_init_ring_desc()
320 desc->ndesc = cpu_to_le32(desc_dma); in r6040_init_ring_desc()
/linux-4.4.14/Documentation/usb/
Dusbmon.txt222 unsigned int ndesc; /* 60: Actual number of ISO descriptors */