Home
last modified time | relevance | path

Searched refs:dma_desc (Results 1 – 25 of 62) sorted by relevance

123

/linux/drivers/dma/
H A Dtegra20-apb-dma.c154 struct tegra_dma_desc *dma_desc; member
267 struct tegra_dma_desc *dma_desc; in tegra_dma_desc_get() local
273 list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { in tegra_dma_desc_get()
274 if (async_tx_test_ack(&dma_desc->txd) && !dma_desc->cb_count) { in tegra_dma_desc_get()
275 list_del(&dma_desc->node); in tegra_dma_desc_get()
277 dma_desc->txd.flags = 0; in tegra_dma_desc_get()
278 return dma_desc; in tegra_dma_desc_get()
285 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in tegra_dma_desc_get()
286 if (!dma_desc) in tegra_dma_desc_get()
289 dma_async_tx_descriptor_init(&dma_desc->txd, &tdc->dma_chan); in tegra_dma_desc_get()
[all …]
H A Dtegra186-gpc-dma.c239 struct tegra_dma_desc *dma_desc; member
473 struct tegra_dma_desc *dma_desc = tdc->dma_desc; in tegra_dma_configure_next_sg() local
478 dma_desc->sg_idx++; in tegra_dma_configure_next_sg()
481 if (dma_desc->sg_idx == dma_desc->sg_count) in tegra_dma_configure_next_sg()
482 dma_desc->sg_idx = 0; in tegra_dma_configure_next_sg()
493 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs; in tegra_dma_configure_next_sg()
507 struct tegra_dma_desc *dma_desc = tdc->dma_desc; in tegra_dma_start() local
511 if (!dma_desc) { in tegra_dma_start()
516 dma_desc = vd_to_tegra_dma_desc(vdesc); in tegra_dma_start()
518 dma_desc->tdc = tdc; in tegra_dma_start()
[all …]
H A Dtimb_dma.c145 static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, in td_fill_desc() argument
161 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc()
163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc()
164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc()
165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc()
166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc()
168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc()
169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc()
171 dma_desc[1] = 0x00; in td_fill_desc()
172 dma_desc[0] = 0x21 | (last ? 0x02 : 0); /* tran, valid */ in td_fill_desc()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_descs.c12 struct dma_desc *p, void __iomem *ioaddr) in dwxgmac2_get_tx_status()
26 struct dma_desc *p) in dwxgmac2_get_rx_status()
42 static int dwxgmac2_get_tx_len(struct dma_desc *p) in dwxgmac2_get_tx_len()
47 static int dwxgmac2_get_tx_owner(struct dma_desc *p) in dwxgmac2_get_tx_owner()
52 static void dwxgmac2_set_tx_owner(struct dma_desc *p) in dwxgmac2_set_tx_owner()
57 static void dwxgmac2_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in dwxgmac2_set_rx_owner()
67 static int dwxgmac2_get_tx_ls(struct dma_desc *p) in dwxgmac2_get_tx_ls()
72 static int dwxgmac2_get_rx_frame_len(struct dma_desc *p, int rx_coe) in dwxgmac2_get_rx_frame_len()
77 static void dwxgmac2_enable_tx_timestamp(struct dma_desc *p) in dwxgmac2_enable_tx_timestamp()
82 static int dwxgmac2_get_tx_timestamp_status(struct dma_desc *p) in dwxgmac2_get_tx_timestamp_status()
[all …]
H A Dnorm_desc.c16 struct dma_desc *p, void __iomem *ioaddr) in ndesc_get_tx_status()
60 static int ndesc_get_tx_len(struct dma_desc *p) in ndesc_get_tx_len()
70 struct dma_desc *p) in ndesc_get_rx_status()
118 static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode, in ndesc_init_rx_desc()
137 static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end) in ndesc_init_tx_desc()
146 static int ndesc_get_tx_owner(struct dma_desc *p) in ndesc_get_tx_owner()
151 static void ndesc_set_tx_owner(struct dma_desc *p) in ndesc_set_tx_owner()
156 static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in ndesc_set_rx_owner()
161 static int ndesc_get_tx_ls(struct dma_desc *p) in ndesc_get_tx_ls()
166 static void ndesc_release_tx_desc(struct dma_desc *p, int mode) in ndesc_release_tx_desc()
[all …]
H A Ddescs_com.h22 static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end, in ehn_desc_rx_set_on_ring()
34 static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end) in enh_desc_end_tx_desc_on_ring()
42 static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_ring()
54 static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end, int bfsize) in ndesc_rx_set_on_ring()
68 static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end) in ndesc_end_tx_desc_on_ring()
76 static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in norm_set_tx_desc_len_on_ring()
91 static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p) in ehn_desc_rx_set_on_chain()
96 static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p) in enh_desc_end_tx_desc_on_chain()
101 static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_chain()
107 static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end) in ndesc_rx_set_on_chain()
[all …]
H A Ddwmac4_descs.c17 struct dma_desc *p, in dwmac4_wrback_get_tx_status()
74 struct dma_desc *p) in dwmac4_wrback_get_rx_status()
172 static int dwmac4_rd_get_tx_len(struct dma_desc *p) in dwmac4_rd_get_tx_len()
177 static int dwmac4_get_tx_owner(struct dma_desc *p) in dwmac4_get_tx_owner()
182 static void dwmac4_set_tx_owner(struct dma_desc *p) in dwmac4_set_tx_owner()
187 static void dwmac4_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in dwmac4_set_rx_owner()
197 static int dwmac4_get_tx_ls(struct dma_desc *p) in dwmac4_get_tx_ls()
203 static u16 dwmac4_wrback_get_rx_vlan_tci(struct dma_desc *p) in dwmac4_wrback_get_rx_vlan_tci()
208 static bool dwmac4_wrback_get_rx_vlan_valid(struct dma_desc *p) in dwmac4_wrback_get_rx_vlan_valid()
214 static int dwmac4_wrback_get_rx_frame_len(struct dma_desc *p, int rx_coe) in dwmac4_wrback_get_rx_frame_len()
[all …]
H A Denh_desc.c16 struct dma_desc *p, void __iomem *ioaddr) in enh_desc_get_tx_status()
79 static int enh_desc_get_tx_len(struct dma_desc *p) in enh_desc_get_tx_len()
182 struct dma_desc *p) in enh_desc_get_rx_status()
252 static void enh_desc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, in enh_desc_init_rx_desc()
271 static void enh_desc_init_tx_desc(struct dma_desc *p, int mode, int end) in enh_desc_init_tx_desc()
280 static int enh_desc_get_tx_owner(struct dma_desc *p) in enh_desc_get_tx_owner()
285 static void enh_desc_set_tx_owner(struct dma_desc *p) in enh_desc_set_tx_owner()
290 static void enh_desc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in enh_desc_set_rx_owner()
295 static int enh_desc_get_tx_ls(struct dma_desc *p) in enh_desc_get_tx_ls()
300 static void enh_desc_release_tx_desc(struct dma_desc *p, int mode) in enh_desc_release_tx_desc()
[all …]
H A Dchain_mode.c25 struct dma_desc *desc; in jumbo_frm()
118 struct dma_desc *p = (struct dma_desc *)des; in init_dma_chain()
120 dma_phy += sizeof(struct dma_desc); in init_dma_chain()
128 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p) in refill_desc3()
140 sizeof(struct dma_desc))); in refill_desc3()
143 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p) in clean_desc3()
157 * sizeof(struct dma_desc))); in clean_desc3()
H A Dhwif.h34 struct dma_desc;
41 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode,
44 void (*init_tx_desc)(struct dma_desc *p, int mode, int end);
46 void (*prepare_tx_desc)(struct dma_desc *p, int is_fs, int len,
49 void (*prepare_tso_tx_desc)(struct dma_desc *p, int is_fs, int len1,
53 void (*set_tx_owner)(struct dma_desc *p);
54 int (*get_tx_owner)(struct dma_desc *p);
56 void (*release_tx_desc)(struct dma_desc *p, int mode);
59 void (*set_tx_ic)(struct dma_desc *p);
61 int (*get_tx_ls)(struct dma_desc *p);
[all …]
H A Dring_mode.c24 struct dma_desc *desc; in jumbo_frm()
27 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
57 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
104 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p) in refill_desc3()
114 static void init_desc3(struct dma_desc *p) in init_desc3()
119 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p) in clean_desc3()
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;
H A Ddescs.h158 struct dma_desc { struct
167 struct dma_desc basic; /* Basic descriptors */ argument
180 struct dma_desc basic;
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c48 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_params() local
51 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in bcm63xx_pcm_hw_params()
52 if (!dma_desc) in bcm63xx_pcm_hw_params()
55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
63 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_free() local
66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
67 kfree(dma_desc); in bcm63xx_pcm_hw_free()
144 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_prepare() local
151 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_prepare()
152 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream); in bcm63xx_pcm_prepare()
[all …]
/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-hw.c29 static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) in xlgmac_tx_complete() argument
31 return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_tx_complete()
708 struct xlgmac_dma_desc *dma_desc; in xlgmac_dev_xmit() local
759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
769 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
770 dma_desc->desc2, in xlgmac_dev_xmit()
776 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
777 dma_desc->desc3, in xlgmac_dev_xmit()
783 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
784 dma_desc->desc3, in xlgmac_dev_xmit()
[all …]
H A Ddwc-xlgmac-common.c289 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_tx_desc() local
293 dma_desc = desc_data->dma_desc; in xlgmac_dump_tx_desc()
296 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_tx_desc()
300 le32_to_cpu(dma_desc->desc0), in xlgmac_dump_tx_desc()
301 le32_to_cpu(dma_desc->desc1), in xlgmac_dump_tx_desc()
302 le32_to_cpu(dma_desc->desc2), in xlgmac_dump_tx_desc()
303 le32_to_cpu(dma_desc->desc3)); in xlgmac_dump_tx_desc()
314 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_rx_desc() local
317 dma_desc = desc_data->dma_desc; in xlgmac_dump_rx_desc()
320 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_rx_desc()
[all …]
H A Ddwc-xlgmac-desc.c425 struct xlgmac_dma_desc *dma_desc; in xlgmac_tx_desc_init() local
437 dma_desc = ring->dma_desc_head; in xlgmac_tx_desc_init()
443 desc_data->dma_desc = dma_desc; in xlgmac_tx_desc_init()
446 dma_desc++; in xlgmac_tx_desc_init()
462 struct xlgmac_dma_desc *dma_desc; in xlgmac_rx_desc_init() local
474 dma_desc = ring->dma_desc_head; in xlgmac_rx_desc_init()
480 desc_data->dma_desc = dma_desc; in xlgmac_rx_desc_init()
486 dma_desc++; in xlgmac_rx_desc_init()
/linux/drivers/usb/dwc2/
H A Dhcd_ddma.c516 struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; in dwc2_fill_host_isoc_dma_desc() local
519 memset(dma_desc, 0, sizeof(*dma_desc)); in dwc2_fill_host_isoc_dma_desc()
527 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc()
532 dma_desc->status |= HOST_DMA_A; in dwc2_fill_host_isoc_dma_desc()
540 dma_desc->status |= HOST_DMA_IOC; in dwc2_fill_host_isoc_dma_desc()
664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc() local
684 dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK; in dwc2_fill_host_dma_desc()
689 dma_desc->status |= HOST_DMA_SUP; in dwc2_fill_host_dma_desc()
691 dma_desc->buf = (u32)chan->xfer_dma; in dwc2_fill_host_dma_desc()
[all …]
/linux/drivers/soc/tegra/fuse/
H A Dfuse-tegra20.c45 struct dma_async_tx_descriptor *dma_desc; in tegra20_fuse_read() local
62 dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan, in tegra20_fuse_read()
66 if (!dma_desc) in tegra20_fuse_read()
69 dma_desc->callback = apb_dma_complete; in tegra20_fuse_read()
70 dma_desc->callback_param = fuse; in tegra20_fuse_read()
74 dmaengine_submit(dma_desc); in tegra20_fuse_read()
/linux/drivers/comedi/drivers/
H A Dgsc_hpdi.c125 struct plx_dma_desc *dma_desc; member
154 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
169 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
428 devpriv->dma_desc[i].pci_start_addr = in gsc_hpdi_setup_dma_descriptors()
430 devpriv->dma_desc[i].local_start_addr = cpu_to_le32(FIFO_REG); in gsc_hpdi_setup_dma_descriptors()
431 devpriv->dma_desc[i].transfer_size = cpu_to_le32(len); in gsc_hpdi_setup_dma_descriptors()
432 devpriv->dma_desc[i].next = cpu_to_le32((phys_addr + in gsc_hpdi_setup_dma_descriptors()
433 (i + 1) * sizeof(devpriv->dma_desc[0])) | next_bits); in gsc_hpdi_setup_dma_descriptors()
446 devpriv->dma_desc[i - 1].next = cpu_to_le32(phys_addr | next_bits); in gsc_hpdi_setup_dma_descriptors()
496 if (devpriv->dma_desc) in gsc_hpdi_free_dma()
[all …]
/linux/drivers/media/platform/rockchip/rga/
H A Drga-buf.c86 rbuf->dma_desc = dma_alloc_coherent(rga->dev, in rga_buf_init()
87 rbuf->n_desc * sizeof(*rbuf->dma_desc), in rga_buf_init()
89 if (!rbuf->dma_desc) in rga_buf_init()
126 n_desc = fill_descriptors(&rbuf->dma_desc[curr_desc], in rga_buf_prepare()
165 dma_free_coherent(rga->dev, rbuf->n_desc * sizeof(*rbuf->dma_desc), in rga_buf_cleanup()
166 rbuf->dma_desc, rbuf->dma_desc_pa); in rga_buf_cleanup()
/linux/drivers/usb/musb/
H A Dmusb_cppi41.c149 struct dma_async_tx_descriptor *dma_desc; in cppi41_trans_done() local
162 dma_desc = dmaengine_prep_slave_single(dc, in cppi41_trans_done()
167 if (WARN_ON(!dma_desc)) in cppi41_trans_done()
170 dma_desc->callback_result = cppi41_dma_callback; in cppi41_trans_done()
171 dma_desc->callback_param = &cppi41_channel->channel; in cppi41_trans_done()
172 cppi41_channel->cookie = dma_desc->tx_submit(dma_desc); in cppi41_trans_done()
418 struct dma_async_tx_descriptor *dma_desc; in cppi41_configure_channel() local
465 dma_desc = dmaengine_prep_slave_single(dc, dma_addr, len, direction, in cppi41_configure_channel()
467 if (!dma_desc) in cppi41_configure_channel()
470 dma_desc->callback_result = cppi41_dma_callback; in cppi41_configure_channel()
[all …]
H A Dux500_dma.c77 struct dma_async_tx_descriptor *dma_desc; in ux500_configure_channel() local
114 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel()
116 if (!dma_desc) in ux500_configure_channel()
119 dma_desc->callback = ux500_dma_callback; in ux500_configure_channel()
120 dma_desc->callback_param = channel; in ux500_configure_channel()
121 ux500_channel->cookie = dma_desc->tx_submit(dma_desc); in ux500_configure_channel()
/linux/arch/mips/include/asm/mach-rc32434/
H A Ddma.h23 struct dma_desc { struct
30 #define DMA_DESC_SIZ sizeof(struct dma_desc) argument
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_app.c1770 drv_buf_iter->dma_desc[0].size, in mpi3mr_bsg_build_sgl()
1771 drv_buf_iter->dma_desc[0].dma_addr); in mpi3mr_bsg_build_sgl()
1813 drv_buf_iter->dma_desc[i].size, in mpi3mr_bsg_build_sgl()
1814 drv_buf_iter->dma_desc[i].dma_addr); in mpi3mr_bsg_build_sgl()
1931 sgl_dma = cpu_to_le64(drv_buf_iter->dma_desc[i].dma_addr); in mpi3mr_build_nvme_sgl()
1943 nvme_sgl->length = cpu_to_le32(drv_buf_iter->dma_desc[i].size); in mpi3mr_build_nvme_sgl()
2035 dma_addr = drv_buf_iter->dma_desc[count].dma_addr; in mpi3mr_build_nvme_prp()
2044 dma_addr = drv_buf_iter->dma_desc[0].dma_addr; in mpi3mr_build_nvme_prp()
2045 desc_len = drv_buf_iter->dma_desc[0].size; in mpi3mr_build_nvme_prp()
2206 drv_buf_iter->dma_desc[desc_count].dma_addr; in mpi3mr_build_nvme_prp()
[all …]

123