Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
93 static void hidma_free(struct hidma_dev *dmadev) in hidma_free() argument
95 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free()
170 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback() local
189 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback()
190 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback()
194 static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) in hidma_chan_init() argument
199 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init()
203 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);
/linux-6.6.21/drivers/dma/
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()
407 struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); in stm32_mdma_disable_chan() local
415 stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); in stm32_mdma_disable_chan()
[all …]
Dstm32-dma.c257 static u32 stm32_dma_read(struct stm32_dma_device *dmadev, u32 reg) in stm32_dma_read() argument
259 return readl_relaxed(dmadev->base + reg); in stm32_dma_read()
262 static void stm32_dma_write(struct stm32_dma_device *dmadev, u32 reg, u32 val) in stm32_dma_write() argument
264 writel_relaxed(val, dmadev->base + reg); in stm32_dma_write()
419 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_status() local
427 dma_isr = stm32_dma_read(dmadev, STM32_DMA_ISR(chan->id)); in stm32_dma_irq_status()
435 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_clear() local
445 stm32_dma_write(dmadev, STM32_DMA_IFCR(chan->id), dma_ifcr); in stm32_dma_irq_clear()
450 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_disable_chan() local
455 dma_scr = stm32_dma_read(dmadev, reg); in stm32_dma_disable_chan()
[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()
811 dma_dev = &xor_dev->dmadev; in mv_xor_v2_probe()
862 dma_async_device_unregister(&xor_dev->dmadev); in mv_xor_v2_remove()
Daltera-msgdma.c181 struct dma_device dmadev; member
858 dma_dev = &mdev->dmadev; in msgdma_probe()
932 dma_async_device_unregister(&mdev->dmadev); in msgdma_remove()
Dmv_xor.h118 struct dma_device dmadev; member
/linux-6.6.21/drivers/infiniband/hw/efa/
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()
669 devm_kfree(edev->dmadev, aq->comp_ctx_pool); in efa_com_admin_destroy()
670 devm_kfree(edev->dmadev, aq->comp_ctx); in efa_com_admin_destroy()
673 dma_free_coherent(edev->dmadev, size, sq->entries, sq->dma_addr); in efa_com_admin_destroy()
[all …]
Defa_com.h60 void *dmadev; member
110 void *dmadev; member
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
Dena_com.c139 aenq->entries = dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_admin_init_aenq()
336 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
337 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
339 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
342 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
345 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
368 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
369 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
371 devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
372 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
[all …]
/linux-6.6.21/drivers/spi/
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-6.6.21/drivers/net/ethernet/engleder/
Dtsnep_main.c267 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_ring_cleanup() local
274 dma_free_coherent(dmadev, PAGE_SIZE, tx->page[i], in tsnep_tx_ring_cleanup()
284 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_ring_create() local
292 dma_alloc_coherent(dmadev, PAGE_SIZE, &tx->page_dma[i], in tsnep_tx_ring_create()
438 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_map() local
450 dma = dma_map_single(dmadev, skb->data, len, in tsnep_tx_map()
456 dma = skb_frag_dma_map(dmadev, in tsnep_tx_map()
462 if (dma_mapping_error(dmadev, dma)) in tsnep_tx_map()
478 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_unmap() local
488 dma_unmap_single(dmadev, in tsnep_tx_unmap()
[all …]
Dtsnep_xdp.c40 retval = xsk_pool_dma_map(pool, adapter->dmadev, in tsnep_xdp_enable_pool()
/linux-6.6.21/drivers/gpu/drm/udl/
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()
Dudl_drv.c61 if (!udl->dmadev) in udl_driver_gem_prime_import()
64 return drm_gem_prime_import_dev(dev, dma_buf, udl->dmadev); in udl_driver_gem_prime_import()
Dudl_drv.h66 struct device *dmadev; member
/linux-6.6.21/drivers/gpu/drm/tiny/
Dgm12u320.c89 struct device *dmadev; member
608 if (!gm12u320->dmadev) in gm12u320_gem_prime_import()
611 return drm_gem_prime_import_dev(dev, dma_buf, gm12u320->dmadev); in gm12u320_gem_prime_import()
656 gm12u320->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in gm12u320_usb_probe()
657 if (!gm12u320->dmadev) in gm12u320_usb_probe()
707 put_device(gm12u320->dmadev); in gm12u320_usb_probe()
716 put_device(gm12u320->dmadev); in gm12u320_usb_disconnect()
717 gm12u320->dmadev = NULL; in gm12u320_usb_disconnect()
/linux-6.6.21/drivers/gpu/drm/gud/
Dgud_drv.c320 if (!gdrm->dmadev) in gud_gem_prime_import()
323 return drm_gem_prime_import_dev(drm, dma_buf, gdrm->dmadev); in gud_gem_prime_import()
611 gdrm->dmadev = usb_intf_get_dma_device(intf); in gud_probe()
612 if (!gdrm->dmadev) in gud_probe()
619 put_device(gdrm->dmadev); in gud_probe()
640 put_device(gdrm->dmadev); in gud_disconnect()
641 gdrm->dmadev = NULL; in gud_disconnect()
/linux-6.6.21/drivers/usb/core/
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-6.6.21/drivers/net/ethernet/
Dkorina.c374 struct device *dmadev; member
452 ca = dma_map_single(lp->dmadev, skb->data, length, DMA_TO_DEVICE); in korina_send_packet()
453 if (dma_mapping_error(lp->dmadev, ca)) in korina_send_packet()
643 ca = dma_map_single(lp->dmadev, skb_new->data, KORINA_RBSIZE, in korina_rx()
645 if (dma_mapping_error(lp->dmadev, ca)) { in korina_rx()
651 dma_unmap_single(lp->dmadev, lp->rx_skb_dma[lp->rx_next_done], in korina_rx()
820 dma_unmap_single(lp->dmadev, in korina_tx()
1014 ca = dma_map_single(lp->dmadev, skb->data, KORINA_RBSIZE, in korina_alloc_ring()
1016 if (dma_mapping_error(lp->dmadev, ca)) in korina_alloc_ring()
1044 dma_unmap_single(lp->dmadev, lp->rx_skb_dma[i], in korina_free_ring()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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