Home
last modified time | relevance | path

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

12

/linux/drivers/dma/qcom/
A Dhidma.c205 mchan->dmadev = dmadev; in hidma_chan_init()
232 struct hidma_dev *dmadev = mchan->dmadev; in hidma_issue_pending() local
314 struct hidma_dev *dmadev = mchan->dmadev; in hidma_tx_submit() local
345 struct hidma_dev *dmadev = mchan->dmadev; in hidma_alloc_chan_resources() local
839 dmadev->chidx = readl(dmadev->dev_trca + 0x40); in hidma_probe()
841 dmadev->chidx = readl(dmadev->dev_trca + 0x28); in hidma_probe()
852 dmadev->lldev = hidma_ll_init(dmadev->ddev.dev, in hidma_probe()
853 dmadev->nr_descriptors, dmadev->dev_trca, in hidma_probe()
854 dmadev->dev_evca, dmadev->chidx); in hidma_probe()
896 if (dmadev) in hidma_probe()
[all …]
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()
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()
118 struct hidma_dev *dmadev = s->private; in hidma_dma_show() local
124 sz = resource_size(dmadev->trca_resource); in hidma_dma_show()
128 sz = resource_size(dmadev->evca_resource); in hidma_dma_show()
138 debugfs_remove_recursive(dmadev->debugfs); in hidma_debug_uninit()
147 dmadev->debugfs = debugfs_create_dir(dev_name(dmadev->ddev.dev), NULL); in hidma_debug_init()
157 dmadev->debugfs); in hidma_debug_init()
[all …]
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/
A Dstm32-mdma.c1369 chan = &dmadev->chan[id]; in stm32_mdma_irq_handler()
1481 pm_runtime_put(dmadev->ddev.dev); in stm32_mdma_free_chan_resources()
1537 struct stm32_mdma_device *dmadev; in stm32_mdma_probe() local
1572 if (!dmadev) in stm32_mdma_probe()
1584 if (IS_ERR(dmadev->base)) in stm32_mdma_probe()
1585 return PTR_ERR(dmadev->base); in stm32_mdma_probe()
1588 if (IS_ERR(dmadev->clk)) in stm32_mdma_probe()
1609 dd = &dmadev->ddev; in stm32_mdma_probe()
1644 chan = &dmadev->chan[i]; in stm32_mdma_probe()
1651 if (dmadev->irq < 0) { in stm32_mdma_probe()
[all …]
A Dstm32-dma.c1243 pm_runtime_put(dmadev->ddev.dev); in stm32_dma_free_chan_resources()
1320 struct stm32_dma_device *dmadev; in stm32_dma_probe() local
1333 dmadev = devm_kzalloc(&pdev->dev, sizeof(*dmadev), GFP_KERNEL); in stm32_dma_probe()
1334 if (!dmadev) in stm32_dma_probe()
1337 dd = &dmadev->ddev; in stm32_dma_probe()
1341 if (IS_ERR(dmadev->base)) in stm32_dma_probe()
1342 return PTR_ERR(dmadev->base); in stm32_dma_probe()
1345 if (IS_ERR(dmadev->clk)) in stm32_dma_probe()
1396 if (dmadev->mem2mem) { in stm32_dma_probe()
1403 chan = &dmadev->chan[i]; in stm32_dma_probe()
[all …]
A Dsa11x0-dma.c133 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()
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()
847 dmadev->device_tx_status = sa11x0_dma_tx_status; in sa11x0_dma_init_dmadev()
848 dmadev->device_issue_pending = sa11x0_dma_issue_pending; in sa11x0_dma_init_dmadev()
865 vchan_init(&c->vc, dmadev); in sa11x0_dma_init_dmadev()
[all …]
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()
A 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()
A 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()
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()
A Daltera-msgdma.c181 struct dma_device dmadev; member
858 dma_dev = &mdev->dmadev; in msgdma_probe()
934 dma_async_device_unregister(&mdev->dmadev); in msgdma_remove()
A Dmv_xor.h118 struct dma_device dmadev; member
/linux/drivers/infiniband/hw/efa/
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()
362 aq->comp_ctx = devm_kzalloc(aq->dmadev, 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()
740 aq->dmadev = edev->dmadev; in efa_com_admin_init()
787 devm_kfree(edev->dmadev, aq->comp_ctx); in efa_com_admin_init()
922 dma_free_coherent(edev->dmadev, sizeof(*mmio_read->read_resp), in efa_com_mmio_reg_read_destroy()
[all …]
A Defa_com.h60 void *dmadev; member
110 void *dmadev; member
/linux/drivers/net/ethernet/amazon/ena/
A Dena_com.c334 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
340 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
366 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
370 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
423 prev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_cq()
426 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_cq()
428 set_dev_node(ena_dev->dmadev, prev_node); in ena_com_init_io_cq()
949 dma_free_coherent(ena_dev->dmadev, size, in ena_com_io_queue_free()
1644 dev_info(ena_dev->dmadev, in ena_com_validate_version()
1734 dma_alloc_coherent(ena_dev->dmadev, in ena_com_mmio_reg_read_request_init()
[all …]
/linux/drivers/spi/
A Dspi-mem.c39 struct device *dmadev; in spi_controller_dma_map_mem_op_data() local
45 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data()
47 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data()
49 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data()
51 if (!dmadev) in spi_controller_dma_map_mem_op_data()
54 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
85 struct device *dmadev; in spi_controller_dma_unmap_mem_op_data() local
91 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data()
93 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_unmap_mem_op_data()
95 dmadev = ctlr->dev.parent; in spi_controller_dma_unmap_mem_op_data()
[all …]
/linux/drivers/gpu/drm/udl/
A Dudl_main.c318 udl->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in udl_init()
319 if (!udl->dmadev) in udl_init()
350 put_device(udl->dmadev); in udl_init()
360 put_device(udl->dmadev); in udl_drop_usb()
361 udl->dmadev = NULL; in udl_drop_usb()
A 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()
A Dudl_drv.h53 struct device *dmadev; member
/linux/drivers/gpu/drm/tiny/
A Dgm12u320.c86 struct device *dmadev; member
604 if (!gm12u320->dmadev) in gm12u320_gem_prime_import()
607 return drm_gem_prime_import_dev(dev, dma_buf, gm12u320->dmadev); in gm12u320_gem_prime_import()
652 gm12u320->dmadev = usb_intf_get_dma_device(to_usb_interface(dev->dev)); in gm12u320_usb_probe()
653 if (!gm12u320->dmadev) in gm12u320_usb_probe()
703 put_device(gm12u320->dmadev); in gm12u320_usb_probe()
712 put_device(gm12u320->dmadev); in gm12u320_usb_disconnect()
713 gm12u320->dmadev = NULL; in gm12u320_usb_disconnect()
/linux/drivers/gpu/drm/gud/
A Dgud_drv.c319 if (!gdrm->dmadev) in gud_gem_prime_import()
322 return drm_gem_prime_import_dev(drm, dma_buf, gdrm->dmadev); in gud_gem_prime_import()
620 gdrm->dmadev = usb_intf_get_dma_device(intf); in gud_probe()
621 if (!gdrm->dmadev) in gud_probe()
626 put_device(gdrm->dmadev); in gud_probe()
647 put_device(gdrm->dmadev); in gud_disconnect()
648 gdrm->dmadev = NULL; in gud_disconnect()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
A 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()
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()
1293 if (dma_mapping_error(di->dmadev, pa)) { in dma_txenq()
[all …]
/linux/drivers/net/ethernet/
A Dkorina.c374 struct device *dmadev; member
452 if (dma_mapping_error(lp->dmadev, ca)) in korina_send_packet()
642 ca = dma_map_single(lp->dmadev, skb_new->data, KORINA_RBSIZE, in korina_rx()
644 if (dma_mapping_error(lp->dmadev, ca)) { in korina_rx()
650 dma_unmap_single(lp->dmadev, lp->rx_skb_dma[lp->rx_next_done], in korina_rx()
819 dma_unmap_single(lp->dmadev, in korina_tx()
1013 ca = dma_map_single(lp->dmadev, skb->data, KORINA_RBSIZE, in korina_alloc_ring()
1015 if (dma_mapping_error(lp->dmadev, ca)) in korina_alloc_ring()
1043 dma_unmap_single(lp->dmadev, lp->rx_skb_dma[i], in korina_free_ring()
1053 dma_unmap_single(lp->dmadev, lp->tx_skb_dma[i], in korina_free_ring()
[all …]
/linux/drivers/usb/core/
A Dusb.c814 struct device *dmadev; in usb_intf_get_dma_device() local
819 dmadev = get_device(udev->bus->sysdev); in usb_intf_get_dma_device()
820 if (!dmadev || !dmadev->dma_mask) { in usb_intf_get_dma_device()
821 put_device(dmadev); in usb_intf_get_dma_device()
825 return dmadev; in usb_intf_get_dma_device()
/linux/drivers/media/usb/pwc/
A 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()

Completed in 112 milliseconds

12