Home
last modified time | relevance | path

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

/linux/drivers/dma/qcom/
H A 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 …]
H A 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);
/linux/drivers/dma/stm32/
H A Dstm32-mdma.c289 static u32 stm32_mdma_read(struct stm32_mdma_device *dmadev, u32 reg) in stm32_mdma_read() argument
291 return readl_relaxed(dmadev->base + reg); in stm32_mdma_read()
294 static void stm32_mdma_write(struct stm32_mdma_device *dmadev, u32 reg, u32 val) in stm32_mdma_write() argument
296 writel_relaxed(val, dmadev->base + reg); in stm32_mdma_write()
299 static void stm32_mdma_set_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_set_bits() argument
302 void __iomem *addr = dmadev->base + reg; in stm32_mdma_set_bits()
307 static void stm32_mdma_clr_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_clr_bits() argument
310 void __iomem *addr = dmadev->base + reg; in stm32_mdma_clr_bits()
406 struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); in stm32_mdma_disable_chan() local
414 stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); in stm32_mdma_disable_chan()
[all …]
H A Dstm32-dma.c256 static u32 stm32_dma_read(struct stm32_dma_device *dmadev, u32 reg) in stm32_dma_read() argument
258 return readl_relaxed(dmadev->base + reg); in stm32_dma_read()
261 static void stm32_dma_write(struct stm32_dma_device *dmadev, u32 reg, u32 val) in stm32_dma_write() argument
263 writel_relaxed(val, dmadev->base + reg); in stm32_dma_write()
418 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_status() local
426 dma_isr = stm32_dma_read(dmadev, STM32_DMA_ISR(chan->id)); in stm32_dma_irq_status()
434 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_clear() local
444 stm32_dma_write(dmadev, STM32_DMA_IFCR(chan->id), dma_ifcr); in stm32_dma_irq_clear()
449 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_disable_chan() local
454 dma_scr = stm32_dma_read(dmadev, reg); in stm32_dma_disable_chan()
[all …]
/linux/drivers/infiniband/hw/efa/
H A Defa_com.c134 dma_alloc_coherent(aq->dmadev, size, &sq->dma_addr, GFP_KERNEL); in efa_com_admin_init_sq()
171 dma_alloc_coherent(aq->dmadev, size, &cq->dma_addr, GFP_KERNEL); in efa_com_admin_init_cq()
211 aenq->entries = dma_alloc_coherent(edev->dmadev, size, &aenq->dma_addr, in efa_com_admin_init_aenq()
362 aq->comp_ctx = devm_kzalloc(aq->dmadev, size, GFP_KERNEL); in efa_com_init_comp_ctxt()
363 aq->comp_ctx_pool = devm_kzalloc(aq->dmadev, pool_size, GFP_KERNEL); in efa_com_init_comp_ctxt()
365 devm_kfree(aq->dmadev, aq->comp_ctx_pool); in efa_com_init_comp_ctxt()
366 devm_kfree(aq->dmadev, aq->comp_ctx); in efa_com_init_comp_ctxt()
673 devm_kfree(edev->dmadev, aq->comp_ctx_pool); in efa_com_admin_destroy()
674 devm_kfree(edev->dmadev, aq->comp_ctx); in efa_com_admin_destroy()
677 dma_free_coherent(edev->dmadev, size, sq->entries, sq->dma_addr); in efa_com_admin_destroy()
[all …]
H A Defa_com.h60 void *dmadev; member
110 void *dmadev; member
H A Defa_main.c566 edev->dmadev = &pdev->dev; in efa_probe_device()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_com.c137 aenq->entries = dma_alloc_coherent(ena_dev->dmadev, size, &aenq->dma_addr, GFP_KERNEL); in ena_com_admin_init_aenq()
328 dma_alloc_coherent(ena_dev->dmadev, size, &io_sq->desc_addr.phys_addr, in ena_com_init_io_sq()
332 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
353 io_sq->bounce_buf_ctrl.base_buffer = devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
356 devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
405 dma_alloc_coherent(ena_dev->dmadev, size, &io_cq->cdesc_addr.phys_addr, GFP_KERNEL); in ena_com_init_io_cq()
408 dma_alloc_coherent(ena_dev->dmadev, size, &io_cq->cdesc_addr.phys_addr, in ena_com_init_io_cq()
906 dma_free_coherent(ena_dev->dmadev, size, io_cq->cdesc_addr.virt_addr, in ena_com_io_queue_free()
915 dma_free_coherent(ena_dev->dmadev, size, io_sq->desc_addr.virt_addr, in ena_com_io_queue_free()
922 devm_kfree(ena_dev->dmadev, io_sq->bounce_buf_ctrl.base_buffer); in ena_com_io_queue_free()
[all …]
H A Dena_com.h309 void *dmadev; member
H A Dena_netdev.c3944 ena_dev->dmadev = &pdev->dev; in ena_probe()
/linux/drivers/spi/
H A Dspi-mem.c40 struct device *dmadev; in spi_controller_dma_map_mem_op_data() local
46 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data()
48 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data()
50 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data()
52 if (!dmadev) in spi_controller_dma_map_mem_op_data()
55 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
86 struct device *dmadev; in spi_controller_dma_unmap_mem_op_data() local
92 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data()
94 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_unmap_mem_op_data()
96 dmadev = ctlr->dev.parent; in spi_controller_dma_unmap_mem_op_data()
[all …]
/linux/drivers/gpu/drm/udl/
H A Dudl_main.c314 udl->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in udl_init()
315 if (!udl->dmadev) in udl_init()
346 put_device(udl->dmadev); in udl_init()
356 put_device(udl->dmadev); in udl_drop_usb()
357 udl->dmadev = NULL; in udl_drop_usb()
H A Dudl_drv.h55 struct device *dmadev; member
/linux/drivers/dma/
H A 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()
H A 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()
H A Dmv_xor.h118 struct dma_device dmadev; member
H A Damba-pl08x.c2362 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument
2367 INIT_LIST_HEAD(&dmadev->channels); in pl08x_dma_init_virtual_channels()
2412 vchan_init(&chan->vc, dmadev); in pl08x_dma_init_virtual_channels()
2419 static void pl08x_free_virtual_channels(struct dma_device *dmadev) in pl08x_free_virtual_channels() argument
2425 next, &dmadev->channels, vc.chan.device_node) { in pl08x_free_virtual_channels()
H A Dfsl-edma-common.c858 void fsl_edma_cleanup_vchan(struct dma_device *dmadev) in fsl_edma_cleanup_vchan() argument
863 &dmadev->channels, vchan.chan.device_node) { in fsl_edma_cleanup_vchan()
H A Dfsl-edma-common.h489 void fsl_edma_cleanup_vchan(struct dma_device *dmadev);
/linux/drivers/gpu/drm/tiny/
H A Dgm12u320.c90 struct device *dmadev; member
616 if (!gm12u320->dmadev) in gm12u320_gem_prime_import()
619 return drm_gem_prime_import_dev(dev, dma_buf, gm12u320->dmadev); in gm12u320_gem_prime_import()
665 gm12u320->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in gm12u320_usb_probe()
666 if (!gm12u320->dmadev) in gm12u320_usb_probe()
716 put_device(gm12u320->dmadev); in gm12u320_usb_probe()
725 put_device(gm12u320->dmadev); in gm12u320_usb_disconnect()
726 gm12u320->dmadev = NULL; in gm12u320_usb_disconnect()
/linux/drivers/usb/core/
H A Dusb.c840 struct device *dmadev; in usb_intf_get_dma_device() local
845 dmadev = get_device(udev->bus->sysdev); in usb_intf_get_dma_device()
846 if (!dmadev || !dmadev->dma_mask) { in usb_intf_get_dma_device()
847 put_device(dmadev); in usb_intf_get_dma_device()
851 return dmadev; in usb_intf_get_dma_device()
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_xdp.c40 retval = xsk_pool_dma_map(pool, adapter->dmadev, in tsnep_xdp_enable_pool()
H A Dtsnep.h169 struct device *dmadev; member
/linux/drivers/gpu/drm/gud/
H A Dgud_internal.h19 struct device *dmadev; member
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_fp.c343 struct device *dmadev = &edev->pdev->dev; in qede_xdp_transmit() local
364 mapping = dma_map_single(dmadev, xdpf->data, xdpf->len, in qede_xdp_transmit()
366 if (unlikely(dma_mapping_error(dmadev, mapping))) in qede_xdp_transmit()