Home
last modified time | relevance | path

Searched refs:dmadev (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/dma/qcom/
Dhidma.c77 static inline struct hidma_dev *to_hidma_dev(struct dma_device *dmadev) in to_hidma_dev() argument
79 return container_of(dmadev, struct hidma_dev, ddev); in to_hidma_dev()
99 static void hidma_free(struct hidma_dev *dmadev) in hidma_free() argument
101 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free()
176 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback() local
195 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback()
196 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback()
200 static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) in hidma_chan_init() argument
205 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init()
209 ddev = &dmadev->ddev; in hidma_chan_init()
[all …]
Dhidma_dbg.c88 struct hidma_dev *dmadev = mchan->dmadev; in hidma_chan_show() local
90 pm_runtime_get_sync(dmadev->ddev.dev); in hidma_chan_show()
95 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
99 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
103 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
105 hidma_ll_devstats(s, mchan->dmadev->lldev); in hidma_chan_show()
106 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_chan_show()
107 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_chan_show()
118 struct hidma_dev *dmadev = s->private; in hidma_dma_show() local
121 seq_printf(s, "nr_descriptors=%d\n", dmadev->nr_descriptors); in hidma_dma_show()
[all …]
Dhidma.h96 struct hidma_dev *dmadev; member
158 void hidma_debug_init(struct hidma_dev *dmadev);
159 void hidma_debug_uninit(struct hidma_dev *dmadev);
/kernel/linux/linux-5.10/drivers/dma/
Dstm32-mdma.c310 static u32 stm32_mdma_read(struct stm32_mdma_device *dmadev, u32 reg) in stm32_mdma_read() argument
312 return readl_relaxed(dmadev->base + reg); in stm32_mdma_read()
315 static void stm32_mdma_write(struct stm32_mdma_device *dmadev, u32 reg, u32 val) in stm32_mdma_write() argument
317 writel_relaxed(val, dmadev->base + reg); in stm32_mdma_write()
320 static void stm32_mdma_set_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_set_bits() argument
323 void __iomem *addr = dmadev->base + reg; in stm32_mdma_set_bits()
328 static void stm32_mdma_clr_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_clr_bits() argument
331 void __iomem *addr = dmadev->base + reg; in stm32_mdma_clr_bits()
428 struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); in stm32_mdma_disable_chan() local
436 stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); in stm32_mdma_disable_chan()
[all …]
Dstm32-dma.c240 static u32 stm32_dma_read(struct stm32_dma_device *dmadev, u32 reg) in stm32_dma_read() argument
242 return readl_relaxed(dmadev->base + reg); in stm32_dma_read()
245 static void stm32_dma_write(struct stm32_dma_device *dmadev, u32 reg, u32 val) in stm32_dma_write() argument
247 writel_relaxed(val, dmadev->base + reg); in stm32_dma_write()
391 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_status() local
403 dma_isr = stm32_dma_read(dmadev, STM32_DMA_HISR); in stm32_dma_irq_status()
405 dma_isr = stm32_dma_read(dmadev, STM32_DMA_LISR); in stm32_dma_irq_status()
414 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_clear() local
428 stm32_dma_write(dmadev, STM32_DMA_HIFCR, dma_ifcr); in stm32_dma_irq_clear()
430 stm32_dma_write(dmadev, STM32_DMA_LIFCR, dma_ifcr); in stm32_dma_irq_clear()
[all …]
Dsa11x0-dma.c131 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument
133 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
835 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument
840 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev()
841 dmadev->dev = dev; in sa11x0_dma_init_dmadev()
842 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev()
843 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev()
844 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev()
845 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev()
846 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev()
[all …]
Dvirt-dma.c123 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev) in vchan_init() argument
136 vc->chan.device = dmadev; in vchan_init()
137 list_add_tail(&vc->chan.device_node, &dmadev->channels); in vchan_init()
Dmv_xor_v2.c163 struct dma_device dmadev; member
312 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_tx_submit()
387 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_memcpy()
443 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_xor()
563 dev_dbg(xor_dev->dmadev.dev, "%s %d\n", __func__, __LINE__); in mv_xor_v2_tasklet()
834 dma_dev = &xor_dev->dmadev; in mv_xor_v2_probe()
889 dma_async_device_unregister(&xor_dev->dmadev); in mv_xor_v2_remove()
Ds3c24xx-dma.c1089 struct dma_device *dmadev, unsigned int channels, bool slave) in s3c24xx_dma_init_virtual_channels() argument
1094 INIT_LIST_HEAD(&dmadev->channels); in s3c24xx_dma_init_virtual_channels()
1102 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); in s3c24xx_dma_init_virtual_channels()
1120 dev_dbg(dmadev->dev, in s3c24xx_dma_init_virtual_channels()
1125 vchan_init(&chan->vc, dmadev); in s3c24xx_dma_init_virtual_channels()
1127 dev_info(dmadev->dev, "initialized %d virtual %s channels\n", in s3c24xx_dma_init_virtual_channels()
1132 static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) in s3c24xx_dma_free_virtual_channels() argument
1138 next, &dmadev->channels, vc.chan.device_node) { in s3c24xx_dma_free_virtual_channels()
Daltera-msgdma.c180 struct dma_device dmadev; member
844 dma_dev = &mdev->dmadev; in msgdma_probe()
911 dma_async_device_unregister(&mdev->dmadev); in msgdma_remove()
Dmv_xor.h118 struct dma_device dmadev; member
Dvirt-dma.h45 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
Dmv_xor.c46 ((chan)->dmadev.dev)
1012 struct device *dev = mv_chan->dmadev.dev; in mv_xor_channel_remove()
1014 dma_async_device_unregister(&mv_chan->dmadev); in mv_xor_channel_remove()
1023 list_for_each_entry_safe(chan, _chan, &mv_chan->dmadev.channels, in mv_xor_channel_remove()
1053 dma_dev = &mv_chan->dmadev; in mv_xor_channel_add()
Dfsl-edma-common.h247 void fsl_edma_cleanup_vchan(struct dma_device *dmadev);
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa_com.c131 dma_alloc_coherent(aq->dmadev, size, &sq->dma_addr, GFP_KERNEL); in efa_com_admin_init_sq()
168 dma_alloc_coherent(aq->dmadev, size, &cq->dma_addr, GFP_KERNEL); in efa_com_admin_init_cq()
208 aenq->entries = dma_alloc_coherent(edev->dmadev, size, &aenq->dma_addr, in efa_com_admin_init_aenq()
359 aq->comp_ctx = devm_kzalloc(aq->dmadev, size, GFP_KERNEL); in efa_com_init_comp_ctxt()
360 aq->comp_ctx_pool = devm_kzalloc(aq->dmadev, pool_size, GFP_KERNEL); in efa_com_init_comp_ctxt()
362 devm_kfree(aq->dmadev, aq->comp_ctx_pool); in efa_com_init_comp_ctxt()
363 devm_kfree(aq->dmadev, aq->comp_ctx); in efa_com_init_comp_ctxt()
668 devm_kfree(edev->dmadev, aq->comp_ctx_pool); in efa_com_admin_destroy()
669 devm_kfree(edev->dmadev, aq->comp_ctx); in efa_com_admin_destroy()
672 dma_free_coherent(edev->dmadev, size, sq->entries, sq->dma_addr); in efa_com_admin_destroy()
[all …]
Defa_com.h60 void *dmadev; member
107 void *dmadev; member
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mem.c38 struct device *dmadev; in spi_controller_dma_map_mem_op_data() local
44 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data()
46 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data()
48 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data()
50 if (!dmadev) in spi_controller_dma_map_mem_op_data()
53 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
84 struct device *dmadev; in spi_controller_dma_unmap_mem_op_data() local
90 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data()
92 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_unmap_mem_op_data()
94 dmadev = ctlr->dev.parent; in spi_controller_dma_unmap_mem_op_data()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/
Dena_com.c134 aenq->entries = dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_admin_init_aenq()
325 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
326 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
328 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
331 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
334 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
356 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
357 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
359 devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
360 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/udl/
Dudl_main.c317 udl->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in udl_init()
318 if (!udl->dmadev) in udl_init()
349 put_device(udl->dmadev); in udl_init()
359 put_device(udl->dmadev); in udl_drop_usb()
360 udl->dmadev = NULL; in udl_drop_usb()
Dudl_drv.c45 if (!udl->dmadev) in udl_driver_gem_prime_import()
48 return drm_gem_prime_import_dev(dev, dma_buf, udl->dmadev); in udl_driver_gem_prime_import()
Dudl_drv.h53 struct device *dmadev; member
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/
Dgm12u320.c86 struct device *dmadev; member
612 if (!gm12u320->dmadev) in gm12u320_gem_prime_import()
615 return drm_gem_prime_import_dev(dev, dma_buf, gm12u320->dmadev); in gm12u320_gem_prime_import()
660 gm12u320->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in gm12u320_usb_probe()
661 if (!gm12u320->dmadev) in gm12u320_usb_probe()
712 put_device(gm12u320->dmadev); in gm12u320_usb_probe()
721 put_device(gm12u320->dmadev); in gm12u320_usb_disconnect()
722 gm12u320->dmadev = NULL; in gm12u320_usb_disconnect()
/kernel/linux/linux-5.10/drivers/usb/core/
Dusb.c768 struct device *dmadev; in usb_intf_get_dma_device() local
773 dmadev = get_device(udev->bus->sysdev); in usb_intf_get_dma_device()
774 if (!dmadev || !dmadev->dma_mask) { in usb_intf_get_dma_device()
775 put_device(dmadev); in usb_intf_get_dma_device()
779 return dmadev; in usb_intf_get_dma_device()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c213 struct device *dmadev; member
451 return dma_alloc_coherent(di->dmadev, size, pap, GFP_ATOMIC); in dma_alloc_consistent()
486 dma_free_coherent(di->dmadev, size, va, *descpa); in dma_ringalloc()
590 di->dmadev = core->dma_dev; in dma_attach()
755 dma_free_coherent(di->dmadev, di->txdalloc, in dma_detach()
759 dma_free_coherent(di->dmadev, di->rxdalloc, in dma_detach()
897 dma_unmap_single(di->dmadev, pa, di->rxbufsize, DMA_FROM_DEVICE); in dma64_getnextrxp()
1080 pa = dma_map_single(di->dmadev, p->data, di->rxbufsize, in dma_rxfill()
1082 if (dma_mapping_error(di->dmadev, pa)) { in dma_rxfill()
1291 pa = dma_map_single(di->dmadev, data, len, DMA_TO_DEVICE); in dma_txenq()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/pwc/
Dpwc-if.c161 struct device *dmadev = dev->bus->sysdev; in pwc_alloc_urb_buffer() local
167 *dma_handle = dma_map_single(dmadev, buffer, size, DMA_FROM_DEVICE); in pwc_alloc_urb_buffer()
168 if (dma_mapping_error(dmadev, *dma_handle)) { in pwc_alloc_urb_buffer()
181 struct device *dmadev = dev->bus->sysdev; in pwc_free_urb_buffer() local
183 dma_unmap_single(dmadev, dma_handle, size, DMA_FROM_DEVICE); in pwc_free_urb_buffer()
288 struct device *dmadev = urb->dev->bus->sysdev; in pwc_isoc_handler() local
335 dma_sync_single_for_cpu(dmadev, in pwc_isoc_handler()
386 dma_sync_single_for_device(dmadev, in pwc_isoc_handler()

12