| /linux/drivers/dma/qcom/ |
| H A D | hidma.c | 75 static inline struct hidma_dev *to_hidma_dev(struct dma_device *dmadev) in to_hidma_dev() argument 77 return container_of(dmadev, struct hidma_dev, ddev); in to_hidma_dev() 91 static void hidma_free(struct hidma_dev *dmadev) in hidma_free() argument 93 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free() 168 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback() local 187 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback() 188 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback() 192 static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) in hidma_chan_init() argument 197 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init() 201 ddev = &dmadev->ddev; in hidma_chan_init() [all …]
|
| H A D | hidma_dbg.c | 88 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 D | hidma.h | 96 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 D | stm32-mdma.c | 289 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 D | stm32-dma.c | 256 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/usb/core/ |
| H A D | usb.c | 850 struct device *dmadev; in usb_intf_get_dma_device() local 855 dmadev = get_device(udev->bus->sysdev); in usb_intf_get_dma_device() 856 if (!dmadev || !dmadev->dma_mask) { in usb_intf_get_dma_device() 857 put_device(dmadev); in usb_intf_get_dma_device() 861 return dmadev; in usb_intf_get_dma_device() 1062 struct device *dmadev; in usb_alloc_noncoherent() local 1069 dmadev = bus_to_hcd(dev->bus)->self.sysdev; in usb_alloc_noncoherent() 1071 sgt = dma_alloc_noncontiguous(dmadev, size, dir, mem_flags, 0); in usb_alloc_noncoherent() 1075 buffer = dma_vmap_noncontiguous(dmadev, size, sgt); in usb_alloc_noncoherent() 1077 dma_free_noncontiguous(dmadev, size, sgt, dir); in usb_alloc_noncoherent() [all …]
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_main.c | 280 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_ring_cleanup() local 287 dma_free_coherent(dmadev, PAGE_SIZE, tx->page[i], in tsnep_tx_ring_cleanup() 297 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_ring_create() local 305 dma_alloc_coherent(dmadev, PAGE_SIZE, &tx->page_dma[i], in tsnep_tx_ring_create() 451 struct device *dmadev, dma_addr_t *dma) in tsnep_tx_map_frag() argument 458 *dma = skb_frag_dma_map(dmadev, frag, 0, len, DMA_TO_DEVICE); in tsnep_tx_map_frag() 459 if (dma_mapping_error(dmadev, *dma)) in tsnep_tx_map_frag() 486 struct device *dmadev = tx->adapter->dmadev; in tsnep_tx_map() local 499 dma = dma_map_single(dmadev, skb->data, len, in tsnep_tx_map() 501 if (dma_mapping_error(dmadev, dma)) in tsnep_tx_map() [all …]
|
| H A D | tsnep_xdp.c | 40 retval = xsk_pool_dma_map(pool, adapter->dmadev, in tsnep_xdp_enable_pool()
|
| /linux/drivers/dma/ |
| H A D | sa11x0-dma.c | 131 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() 833 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument 838 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev() 839 dmadev->dev = dev; in sa11x0_dma_init_dmadev() 840 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev() 841 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev() 842 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev() 843 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev() 844 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev() [all …]
|
| H A D | virt-dma.c | 123 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 D | mv_xor.h | 118 struct dma_device dmadev; member
|
| H A D | mv_xor.c | 46 ((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 D | pxa_dma.c | 141 #define to_pxad_dev(dmadev) \ argument 142 container_of(dmadev, struct pxad_device, slave) 1211 static void pxad_free_channels(struct dma_device *dmadev) in pxad_free_channels() argument 1215 list_for_each_entry_safe(c, cn, &dmadev->channels, in pxad_free_channels()
|
| H A D | amba-pl08x.c | 2362 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 D | k3dma.c | 122 #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave) argument
|
| H A D | fsl-edma-common.h | 510 void fsl_edma_cleanup_vchan(struct dma_device *dmadev);
|
| /linux/drivers/net/ethernet/ |
| H A D | korina.c | 374 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() 1015 ca = dma_map_single(lp->dmadev, skb->data, KORINA_RBSIZE, in korina_alloc_ring() 1017 if (dma_mapping_error(lp->dmadev, ca)) in korina_alloc_ring() 1045 dma_unmap_single(lp->dmadev, lp->rx_skb_dma[i], in korina_free_ring() [all …]
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | dma.c | 213 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, *alloced, va, *descpa); in dma_ringalloc() 589 di->dmadev = core->dma_dev; in dma_attach() 754 dma_free_coherent(di->dmadev, di->txdalloc, in dma_detach() 758 dma_free_coherent(di->dmadev, di->rxdalloc, in dma_detach() 896 dma_unmap_single(di->dmadev, pa, di->rxbufsize, DMA_FROM_DEVICE); in dma64_getnextrxp() 1079 pa = dma_map_single(di->dmadev, p->data, di->rxbufsize, in dma_rxfill() 1081 if (dma_mapping_error(di->dmadev, pa)) { in dma_rxfill() 1290 pa = dma_map_single(di->dmadev, data, len, DMA_TO_DEVICE); in dma_txenq() [all …]
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_com.h | 358 void *dmadev; member
|
| H A D | ena_netdev.c | 3945 ena_dev->dmadev = &pdev->dev; in ena_probe()
|
| /linux/drivers/media/platform/ |
| H A D | m2m-deinterlace.c | 214 struct dma_device *dmadev = chan->device; in deinterlace_issue_dma() local 333 tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags); in deinterlace_issue_dma()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_fp.c | 344 struct device *dmadev = &edev->pdev->dev; in qede_xdp_transmit() local 365 mapping = dma_map_single(dmadev, xdpf->data, xdpf->len, in qede_xdp_transmit() 367 if (unlikely(dma_mapping_error(dmadev, mapping))) in qede_xdp_transmit()
|
| /linux/drivers/dma/ti/ |
| H A D | edma.c | 2556 static void edma_cleanupp_vchan(struct dma_device *dmadev) in edma_cleanupp_vchan() argument 2561 &dmadev->channels, vchan.chan.device_node) { in edma_cleanupp_vchan()
|