Searched refs:dma_desc (Results 1 - 25 of 60) sorted by relevance

123

/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddescs_com.h22 static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end,
34 static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end)
42 static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len)
54 static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end, int bfsize)
68 static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end)
76 static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len)
91 static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p)
96 static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p)
101 static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len)
107 static inline void ndesc_rx_set_on_chain(struct dma_desc *
[all...]
H A Dnorm_desc.c16 struct dma_desc *p, void __iomem *ioaddr)
60 static int ndesc_get_tx_len(struct dma_desc *p)
70 struct dma_desc *p)
118 static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode,
137 static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end)
146 static int ndesc_get_tx_owner(struct dma_desc *p)
151 static void ndesc_set_tx_owner(struct dma_desc *p)
156 static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
161 static int ndesc_get_tx_ls(struct dma_desc *p)
166 static void ndesc_release_tx_desc(struct dma_desc *
[all...]
H A Ddwxgmac2_descs.c12 struct dma_desc *p, void __iomem *ioaddr)
26 struct dma_desc *p)
42 static int dwxgmac2_get_tx_len(struct dma_desc *p)
47 static int dwxgmac2_get_tx_owner(struct dma_desc *p)
52 static void dwxgmac2_set_tx_owner(struct dma_desc *p)
57 static void dwxgmac2_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
65 static int dwxgmac2_get_tx_ls(struct dma_desc *p)
70 static int dwxgmac2_get_rx_frame_len(struct dma_desc *p, int rx_coe)
75 static void dwxgmac2_enable_tx_timestamp(struct dma_desc *p)
80 static int dwxgmac2_get_tx_timestamp_status(struct dma_desc *
[all...]
H A Ddwmac4_descs.c17 struct dma_desc *p,
74 struct dma_desc *p)
172 static int dwmac4_rd_get_tx_len(struct dma_desc *p)
177 static int dwmac4_get_tx_owner(struct dma_desc *p)
182 static void dwmac4_set_tx_owner(struct dma_desc *p)
187 static void dwmac4_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
195 static int dwmac4_get_tx_ls(struct dma_desc *p)
201 static u16 dwmac4_wrback_get_rx_vlan_tci(struct dma_desc *p)
206 static bool dwmac4_wrback_get_rx_vlan_valid(struct dma_desc *p)
212 static int dwmac4_wrback_get_rx_frame_len(struct dma_desc *
[all...]
H A Dchain_mode.c25 struct dma_desc *desc;
118 struct dma_desc *p = (struct dma_desc *)des;
120 dma_phy += sizeof(struct dma_desc);
128 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p)
140 sizeof(struct dma_desc)));
143 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p)
157 * sizeof(struct dma_desc)));
H A Denh_desc.c16 struct dma_desc *p, void __iomem *ioaddr)
79 static int enh_desc_get_tx_len(struct dma_desc *p)
182 struct dma_desc *p)
252 static void enh_desc_init_rx_desc(struct dma_desc *p, int disable_rx_ic,
271 static void enh_desc_init_tx_desc(struct dma_desc *p, int mode, int end)
280 static int enh_desc_get_tx_owner(struct dma_desc *p)
285 static void enh_desc_set_tx_owner(struct dma_desc *p)
290 static void enh_desc_set_rx_owner(struct dma_desc *p, int disable_rx_ic)
295 static int enh_desc_get_tx_ls(struct dma_desc *p)
300 static void enh_desc_release_tx_desc(struct dma_desc *
[all...]
H A Dring_mode.c24 struct dma_desc *desc;
27 desc = (struct dma_desc *)(tx_q->dma_etx + entry);
57 desc = (struct dma_desc *)(tx_q->dma_etx + entry);
104 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p)
114 static void init_desc3(struct dma_desc *p)
119 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p)
H A Dhwif.h31 struct dma_desc;
38 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode,
41 void (*init_tx_desc)(struct dma_desc *p, int mode, int end);
43 void (*prepare_tx_desc)(struct dma_desc *p, int is_fs, int len,
46 void (*prepare_tso_tx_desc)(struct dma_desc *p, int is_fs, int len1,
50 void (*set_tx_owner)(struct dma_desc *p);
51 int (*get_tx_owner)(struct dma_desc *p);
53 void (*release_tx_desc)(struct dma_desc *p, int mode);
56 void (*set_tx_ic)(struct dma_desc *p);
58 int (*get_tx_ls)(struct dma_desc *
[all...]
H A Ddescs.h158 struct dma_desc { struct
167 struct dma_desc basic; /* Basic descriptors */
180 struct dma_desc basic;
H A Dstmmac.h70 struct dma_desc *dma_tx;
101 struct dma_desc *desc;
102 struct dma_desc *ndesc;
107 struct dma_desc *tx_desc;
113 struct dma_desc *desc;
125 struct dma_desc *dma_rx ____cacheline_aligned_in_smp;
/linux-master/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c48 struct i2s_dma_desc *dma_desc; local
51 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT);
52 if (!dma_desc)
55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc);
63 struct i2s_dma_desc *dma_desc; local
66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
67 kfree(dma_desc);
144 struct i2s_dma_desc *dma_desc; local
151 dma_desc
240 struct i2s_dma_desc *dma_desc; local
[all...]
/linux-master/drivers/dma/
H A Dtegra186-gpc-dma.c239 struct tegra_dma_desc *dma_desc; member in struct:tegra_dma_channel
473 struct tegra_dma_desc *dma_desc = tdc->dma_desc; local
478 dma_desc->sg_idx++;
481 if (dma_desc->sg_idx == dma_desc->sg_count)
482 dma_desc->sg_idx = 0;
493 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs;
507 struct tegra_dma_desc *dma_desc local
593 struct tegra_dma_desc *dma_desc = tdc->dma_desc; local
730 struct tegra_dma_desc *dma_desc = tdc->dma_desc; local
759 struct tegra_dma_desc *dma_desc; local
862 struct tegra_dma_desc *dma_desc; local
928 struct tegra_dma_desc *dma_desc; local
1002 struct tegra_dma_desc *dma_desc; local
1121 struct tegra_dma_desc *dma_desc; local
[all...]
H A Dtegra20-apb-dma.c154 struct tegra_dma_desc *dma_desc; member in struct:tegra_dma_sg_req
267 struct tegra_dma_desc *dma_desc; local
273 list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) {
274 if (async_tx_test_ack(&dma_desc->txd) && !dma_desc->cb_count) {
275 list_del(&dma_desc->node);
277 dma_desc->txd.flags = 0;
278 return dma_desc;
285 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAI
296 tegra_dma_desc_put(struct tegra_dma_channel *tdc, struct tegra_dma_desc *dma_desc) argument
522 struct tegra_dma_desc *dma_desc; local
573 struct tegra_dma_desc *dma_desc; local
607 struct tegra_dma_desc *dma_desc; local
639 struct tegra_dma_desc *dma_desc; local
688 struct tegra_dma_desc *dma_desc = txd_to_tegra_dma_desc(txd); local
739 struct tegra_dma_desc *dma_desc; local
891 struct tegra_dma_desc *dma_desc; local
1046 struct tegra_dma_desc *dma_desc; local
1171 struct tegra_dma_desc *dma_desc; local
1309 struct tegra_dma_desc *dma_desc; local
[all...]
H A Dtimb_dma.c145 static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, argument
161 dma_desc, (unsigned long long)sg_dma_address(sg));
163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff;
164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff;
165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff;
166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff;
168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff;
169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff;
171 dma_desc[1] = 0x00;
172 dma_desc[
[all...]
/linux-master/arch/mips/include/asm/mach-rc32434/
H A Ddma.h23 struct dma_desc { struct
30 #define DMA_DESC_SIZ sizeof(struct dma_desc)
/linux-master/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-hw.c29 static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) argument
31 return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3,
708 struct xlgmac_dma_desc *dma_desc; local
759 dma_desc = desc_data->dma_desc;
769 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE(
770 dma_desc->desc2,
776 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE(
777 dma_desc->desc3,
783 dma_desc
1010 xlgmac_get_rx_tstamp(struct xlgmac_pkt_info *pkt_info, struct xlgmac_dma_desc *dma_desc) argument
1039 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; local
1086 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; local
1172 xlgmac_is_context_desc(struct xlgmac_dma_desc *dma_desc) argument
1180 xlgmac_is_last_desc(struct xlgmac_dma_desc *dma_desc) argument
2644 struct xlgmac_dma_desc *dma_desc; local
[all...]
H A Ddwc-xlgmac-common.c291 struct xlgmac_dma_desc *dma_desc; local
295 dma_desc = desc_data->dma_desc;
297 netdev_dbg(pdata->netdev, "TX: dma_desc=%p, dma_desc_addr=%pad\n",
298 desc_data->dma_desc, &desc_data->dma_desc_addr);
302 le32_to_cpu(dma_desc->desc0),
303 le32_to_cpu(dma_desc->desc1),
304 le32_to_cpu(dma_desc->desc2),
305 le32_to_cpu(dma_desc->desc3));
316 struct xlgmac_dma_desc *dma_desc; local
[all...]
H A Ddwc-xlgmac-desc.c425 struct xlgmac_dma_desc *dma_desc; local
437 dma_desc = ring->dma_desc_head;
443 desc_data->dma_desc = dma_desc;
446 dma_desc++;
462 struct xlgmac_dma_desc *dma_desc; local
474 dma_desc = ring->dma_desc_head;
480 desc_data->dma_desc = dma_desc;
486 dma_desc
[all...]
/linux-master/drivers/usb/dwc2/
H A Dhcd_ddma.c516 struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; local
519 memset(dma_desc, 0, sizeof(*dma_desc));
527 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset);
528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT &
532 dma_desc->status |= HOST_DMA_A;
540 dma_desc->status |= HOST_DMA_IOC;
664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; local
684 dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK;
689 dma_desc
867 struct dwc2_dma_desc *dma_desc; local
1044 dwc2_update_non_isoc_urb_state_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_dma_desc *dma_desc, enum dwc2_halt_status halt_status, u32 n_bytes, int *xfer_done) argument
1135 struct dwc2_dma_desc *dma_desc; local
[all...]
/linux-master/drivers/soc/tegra/fuse/
H A Dfuse-tegra20.c45 struct dma_async_tx_descriptor *dma_desc; local
62 dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan,
66 if (!dma_desc)
69 dma_desc->callback = apb_dma_complete;
70 dma_desc->callback_param = fuse;
74 dmaengine_submit(dma_desc);
/linux-master/drivers/media/platform/rockchip/rga/
H A Drga-buf.c86 rbuf->dma_desc = dma_alloc_coherent(rga->dev,
87 rbuf->n_desc * sizeof(*rbuf->dma_desc),
89 if (!rbuf->dma_desc)
126 n_desc = fill_descriptors(&rbuf->dma_desc[curr_desc],
165 dma_free_coherent(rga->dev, rbuf->n_desc * sizeof(*rbuf->dma_desc),
166 rbuf->dma_desc, rbuf->dma_desc_pa);
/linux-master/drivers/comedi/drivers/
H A Dgsc_hpdi.c125 struct plx_dma_desc *dma_desc; member in struct:hpdi_private
154 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr);
169 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr);
428 devpriv->dma_desc[i].pci_start_addr =
430 devpriv->dma_desc[i].local_start_addr = cpu_to_le32(FIFO_REG);
431 devpriv->dma_desc[i].transfer_size = cpu_to_le32(len);
432 devpriv->dma_desc[i].next = cpu_to_le32((phys_addr +
433 (i + 1) * sizeof(devpriv->dma_desc[0])) | next_bits);
446 devpriv->dma_desc[i - 1].next = cpu_to_le32(phys_addr | next_bits);
496 if (devpriv->dma_desc)
[all...]
/linux-master/drivers/scsi/mpi3mr/
H A Dmpi3mr_app.c682 drv_buf_iter->dma_desc[0].size,
683 drv_buf_iter->dma_desc[0].dma_addr);
725 drv_buf_iter->dma_desc[i].size,
726 drv_buf_iter->dma_desc[i].dma_addr);
843 sgl_dma = cpu_to_le64(drv_buf_iter->dma_desc[i].dma_addr);
855 nvme_sgl->length = cpu_to_le32(drv_buf_iter->dma_desc[i].size);
947 dma_addr = drv_buf_iter->dma_desc[count].dma_addr;
956 dma_addr = drv_buf_iter->dma_desc[0].dma_addr;
957 desc_len = drv_buf_iter->dma_desc[0].size;
1118 drv_buf_iter->dma_desc[desc_coun
[all...]
/linux-master/drivers/usb/musb/
H A Dux500_dma.c77 struct dma_async_tx_descriptor *dma_desc; local
114 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction,
116 if (!dma_desc)
119 dma_desc->callback = ux500_dma_callback;
120 dma_desc->callback_param = channel;
121 ux500_channel->cookie = dma_desc->tx_submit(dma_desc);
H A Dmusb_cppi41.c149 struct dma_async_tx_descriptor *dma_desc; local
162 dma_desc = dmaengine_prep_slave_single(dc,
167 if (WARN_ON(!dma_desc))
170 dma_desc->callback_result = cppi41_dma_callback;
171 dma_desc->callback_param = &cppi41_channel->channel;
172 cppi41_channel->cookie = dma_desc->tx_submit(dma_desc);
418 struct dma_async_tx_descriptor *dma_desc; local
465 dma_desc = dmaengine_prep_slave_single(dc, dma_addr, len, direction,
467 if (!dma_desc)
[all...]

Completed in 265 milliseconds

123