dmadev 179 drivers/dma/altera-msgdma.c struct dma_device dmadev; dmadev 842 drivers/dma/altera-msgdma.c dma_dev = &mdev->dmadev; dmadev 909 drivers/dma/altera-msgdma.c dma_async_device_unregister(&mdev->dmadev); dmadev 2370 drivers/dma/amba-pl08x.c struct dma_device *dmadev, unsigned int channels, bool slave) dmadev 2375 drivers/dma/amba-pl08x.c INIT_LIST_HEAD(&dmadev->channels); dmadev 2420 drivers/dma/amba-pl08x.c vchan_init(&chan->vc, dmadev); dmadev 2427 drivers/dma/amba-pl08x.c static void pl08x_free_virtual_channels(struct dma_device *dmadev) dmadev 2433 drivers/dma/amba-pl08x.c next, &dmadev->channels, vc.chan.device_node) { dmadev 649 drivers/dma/fsl-edma-common.c void fsl_edma_cleanup_vchan(struct dma_device *dmadev) dmadev 654 drivers/dma/fsl-edma-common.c &dmadev->channels, vchan.chan.device_node) { dmadev 246 drivers/dma/fsl-edma-common.h void fsl_edma_cleanup_vchan(struct dma_device *dmadev); dmadev 1207 drivers/dma/fsl-qdma.c static void fsl_qdma_cleanup_vchan(struct dma_device *dmadev) dmadev 1212 drivers/dma/fsl-qdma.c &dmadev->channels, vchan.chan.device_node) { dmadev 123 drivers/dma/k3dma.c #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave) dmadev 138 drivers/dma/mmp_pdma.c #define to_mmp_pdma_dev(dmadev) \ dmadev 139 drivers/dma/mmp_pdma.c container_of(dmadev, struct mmp_pdma_device, device) dmadev 46 drivers/dma/mv_xor.c ((chan)->dmadev.dev) dmadev 1012 drivers/dma/mv_xor.c struct device *dev = mv_chan->dmadev.dev; dmadev 1014 drivers/dma/mv_xor.c dma_async_device_unregister(&mv_chan->dmadev); dmadev 1023 drivers/dma/mv_xor.c list_for_each_entry_safe(chan, _chan, &mv_chan->dmadev.channels, dmadev 1053 drivers/dma/mv_xor.c dma_dev = &mv_chan->dmadev; dmadev 118 drivers/dma/mv_xor.h struct dma_device dmadev; dmadev 159 drivers/dma/mv_xor_v2.c struct dma_device dmadev; dmadev 308 drivers/dma/mv_xor_v2.c dev_dbg(xor_dev->dmadev.dev, dmadev 383 drivers/dma/mv_xor_v2.c dev_dbg(xor_dev->dmadev.dev, dmadev 439 drivers/dma/mv_xor_v2.c dev_dbg(xor_dev->dmadev.dev, dmadev 558 drivers/dma/mv_xor_v2.c dev_dbg(xor_dev->dmadev.dev, "%s %d\n", __func__, __LINE__); dmadev 828 drivers/dma/mv_xor_v2.c dma_dev = &xor_dev->dmadev; dmadev 883 drivers/dma/mv_xor_v2.c dma_async_device_unregister(&xor_dev->dmadev); dmadev 140 drivers/dma/pxa_dma.c #define to_pxad_dev(dmadev) \ dmadev 141 drivers/dma/pxa_dma.c container_of(dmadev, struct pxad_device, slave) dmadev 1222 drivers/dma/pxa_dma.c static void pxad_free_channels(struct dma_device *dmadev) dmadev 1226 drivers/dma/pxa_dma.c list_for_each_entry_safe(c, cn, &dmadev->channels, dmadev 77 drivers/dma/qcom/hidma.c static inline struct hidma_dev *to_hidma_dev(struct dma_device *dmadev) dmadev 79 drivers/dma/qcom/hidma.c return container_of(dmadev, struct hidma_dev, ddev); dmadev 99 drivers/dma/qcom/hidma.c static void hidma_free(struct hidma_dev *dmadev) dmadev 101 drivers/dma/qcom/hidma.c INIT_LIST_HEAD(&dmadev->ddev.channels); dmadev 176 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = to_hidma_dev(ddev); dmadev 195 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 196 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 200 drivers/dma/qcom/hidma.c static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) dmadev 205 drivers/dma/qcom/hidma.c mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); dmadev 209 drivers/dma/qcom/hidma.c ddev = &dmadev->ddev; dmadev 211 drivers/dma/qcom/hidma.c mchan->dmadev = dmadev; dmadev 223 drivers/dma/qcom/hidma.c dmadev->ddev.chancnt++; dmadev 229 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = (struct hidma_dev *)arg; dmadev 231 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 232 drivers/dma/qcom/hidma.c hidma_ll_start(dmadev->lldev); dmadev 238 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = mchan->dmadev; dmadev 245 drivers/dma/qcom/hidma.c hidma_ll_queue_request(dmadev->lldev, qdesc->tre_ch); dmadev 258 drivers/dma/qcom/hidma.c status = pm_runtime_get(dmadev->ddev.dev); dmadev 260 drivers/dma/qcom/hidma.c tasklet_schedule(&dmadev->task); dmadev 262 drivers/dma/qcom/hidma.c hidma_ll_start(dmadev->lldev); dmadev 320 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = mchan->dmadev; dmadev 325 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 326 drivers/dma/qcom/hidma.c if (!hidma_ll_isenabled(dmadev->lldev)) { dmadev 327 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 328 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 331 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 332 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 351 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = mchan->dmadev; dmadev 362 drivers/dma/qcom/hidma.c for (i = 0; i < dmadev->nr_descriptors; i++) { dmadev 371 drivers/dma/qcom/hidma.c rc = hidma_ll_request(dmadev->lldev, mchan->dma_sig, dmadev 386 drivers/dma/qcom/hidma.c hidma_ll_free(dmadev->lldev, mdesc->tre_ch); dmadev 405 drivers/dma/qcom/hidma.c struct hidma_dev *mdma = mchan->dmadev; dmadev 438 drivers/dma/qcom/hidma.c struct hidma_dev *mdma = mchan->dmadev; dmadev 468 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = to_hidma_dev(mchan->chan.device); dmadev 474 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 487 drivers/dma/qcom/hidma.c rc = hidma_ll_disable(dmadev->lldev); dmadev 489 drivers/dma/qcom/hidma.c dev_err(dmadev->ddev.dev, "channel did not pause\n"); dmadev 505 drivers/dma/qcom/hidma.c rc = hidma_ll_enable(dmadev->lldev); dmadev 507 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 508 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 515 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = to_hidma_dev(mchan->chan.device); dmadev 523 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 524 drivers/dma/qcom/hidma.c rc = hidma_ll_setup(dmadev->lldev); dmadev 525 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 526 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 533 drivers/dma/qcom/hidma.c struct hidma_dev *mdma = mchan->dmadev; dmadev 560 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev; dmadev 563 drivers/dma/qcom/hidma.c dmadev = to_hidma_dev(mchan->chan.device); dmadev 565 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 566 drivers/dma/qcom/hidma.c if (hidma_ll_disable(dmadev->lldev)) dmadev 567 drivers/dma/qcom/hidma.c dev_warn(dmadev->ddev.dev, "channel did not stop\n"); dmadev 569 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 570 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 578 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev; dmadev 582 drivers/dma/qcom/hidma.c dmadev = to_hidma_dev(mchan->chan.device); dmadev 584 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 585 drivers/dma/qcom/hidma.c rc = hidma_ll_enable(dmadev->lldev); dmadev 589 drivers/dma/qcom/hidma.c dev_err(dmadev->ddev.dev, dmadev 591 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 592 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 612 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = to_hidma_dev_from_lldev(lldevp); dmadev 615 drivers/dma/qcom/hidma.c 1 << (chirq - dmadev->msi_virqbase)); dmadev 673 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = dev_get_drvdata(dev); dmadev 676 drivers/dma/qcom/hidma.c writel(msg->address_lo, dmadev->dev_evca + 0x118); dmadev 677 drivers/dma/qcom/hidma.c writel(msg->address_hi, dmadev->dev_evca + 0x11C); dmadev 678 drivers/dma/qcom/hidma.c writel(msg->data, dmadev->dev_evca + 0x120); dmadev 683 drivers/dma/qcom/hidma.c static void hidma_free_msis(struct hidma_dev *dmadev) dmadev 686 drivers/dma/qcom/hidma.c struct device *dev = dmadev->ddev.dev; dmadev 691 drivers/dma/qcom/hidma.c devm_free_irq(dev, desc->irq, &dmadev->lldev); dmadev 697 drivers/dma/qcom/hidma.c static int hidma_request_msi(struct hidma_dev *dmadev, dmadev 712 drivers/dma/qcom/hidma.c dmadev->msi_virqbase = desc->irq; dmadev 717 drivers/dma/qcom/hidma.c &dmadev->lldev); dmadev 730 drivers/dma/qcom/hidma.c &dmadev->lldev); dmadev 734 drivers/dma/qcom/hidma.c hidma_ll_setup_irq(dmadev->lldev, true); dmadev 756 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev; dmadev 794 drivers/dma/qcom/hidma.c dmadev = devm_kzalloc(&pdev->dev, sizeof(*dmadev), GFP_KERNEL); dmadev 795 drivers/dma/qcom/hidma.c if (!dmadev) { dmadev 800 drivers/dma/qcom/hidma.c INIT_LIST_HEAD(&dmadev->ddev.channels); dmadev 801 drivers/dma/qcom/hidma.c spin_lock_init(&dmadev->lock); dmadev 802 drivers/dma/qcom/hidma.c dmadev->ddev.dev = &pdev->dev; dmadev 803 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 805 drivers/dma/qcom/hidma.c dma_cap_set(DMA_MEMCPY, dmadev->ddev.cap_mask); dmadev 806 drivers/dma/qcom/hidma.c dma_cap_set(DMA_MEMSET, dmadev->ddev.cap_mask); dmadev 812 drivers/dma/qcom/hidma.c dmadev->dev_evca = evca; dmadev 813 drivers/dma/qcom/hidma.c dmadev->evca_resource = evca_resource; dmadev 814 drivers/dma/qcom/hidma.c dmadev->dev_trca = trca; dmadev 815 drivers/dma/qcom/hidma.c dmadev->trca_resource = trca_resource; dmadev 816 drivers/dma/qcom/hidma.c dmadev->ddev.device_prep_dma_memcpy = hidma_prep_dma_memcpy; dmadev 817 drivers/dma/qcom/hidma.c dmadev->ddev.device_prep_dma_memset = hidma_prep_dma_memset; dmadev 818 drivers/dma/qcom/hidma.c dmadev->ddev.device_alloc_chan_resources = hidma_alloc_chan_resources; dmadev 819 drivers/dma/qcom/hidma.c dmadev->ddev.device_free_chan_resources = hidma_free_chan_resources; dmadev 820 drivers/dma/qcom/hidma.c dmadev->ddev.device_tx_status = hidma_tx_status; dmadev 821 drivers/dma/qcom/hidma.c dmadev->ddev.device_issue_pending = hidma_issue_pending; dmadev 822 drivers/dma/qcom/hidma.c dmadev->ddev.device_pause = hidma_pause; dmadev 823 drivers/dma/qcom/hidma.c dmadev->ddev.device_resume = hidma_resume; dmadev 824 drivers/dma/qcom/hidma.c dmadev->ddev.device_terminate_all = hidma_terminate_all; dmadev 825 drivers/dma/qcom/hidma.c dmadev->ddev.copy_align = 8; dmadev 833 drivers/dma/qcom/hidma.c &dmadev->nr_descriptors); dmadev 838 drivers/dma/qcom/hidma.c dmadev->nr_descriptors = nr_desc_prm; dmadev 841 drivers/dma/qcom/hidma.c if (!dmadev->nr_descriptors) dmadev 842 drivers/dma/qcom/hidma.c dmadev->nr_descriptors = HIDMA_NR_DEFAULT_DESC; dmadev 845 drivers/dma/qcom/hidma.c dmadev->chidx = readl(dmadev->dev_trca + 0x40); dmadev 847 drivers/dma/qcom/hidma.c dmadev->chidx = readl(dmadev->dev_trca + 0x28); dmadev 858 drivers/dma/qcom/hidma.c dmadev->lldev = hidma_ll_init(dmadev->ddev.dev, dmadev 859 drivers/dma/qcom/hidma.c dmadev->nr_descriptors, dmadev->dev_trca, dmadev 860 drivers/dma/qcom/hidma.c dmadev->dev_evca, dmadev->chidx); dmadev 861 drivers/dma/qcom/hidma.c if (!dmadev->lldev) { dmadev 866 drivers/dma/qcom/hidma.c platform_set_drvdata(pdev, dmadev); dmadev 868 drivers/dma/qcom/hidma.c rc = hidma_request_msi(dmadev, pdev); dmadev 871 drivers/dma/qcom/hidma.c hidma_ll_setup_irq(dmadev->lldev, false); dmadev 873 drivers/dma/qcom/hidma.c 0, "qcom-hidma", dmadev->lldev); dmadev 878 drivers/dma/qcom/hidma.c INIT_LIST_HEAD(&dmadev->ddev.channels); dmadev 879 drivers/dma/qcom/hidma.c rc = hidma_chan_init(dmadev, 0); dmadev 883 drivers/dma/qcom/hidma.c rc = dma_async_device_register(&dmadev->ddev); dmadev 887 drivers/dma/qcom/hidma.c dmadev->irq = chirq; dmadev 888 drivers/dma/qcom/hidma.c tasklet_init(&dmadev->task, hidma_issue_task, (unsigned long)dmadev); dmadev 889 drivers/dma/qcom/hidma.c hidma_debug_init(dmadev); dmadev 890 drivers/dma/qcom/hidma.c hidma_sysfs_init(dmadev); dmadev 892 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 893 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 898 drivers/dma/qcom/hidma.c hidma_free_msis(dmadev); dmadev 900 drivers/dma/qcom/hidma.c hidma_debug_uninit(dmadev); dmadev 901 drivers/dma/qcom/hidma.c hidma_ll_uninit(dmadev->lldev); dmadev 903 drivers/dma/qcom/hidma.c if (dmadev) dmadev 904 drivers/dma/qcom/hidma.c hidma_free(dmadev); dmadev 913 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = platform_get_drvdata(pdev); dmadev 915 drivers/dma/qcom/hidma.c dev_info(dmadev->ddev.dev, "HI-DMA engine shutdown\n"); dmadev 917 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 918 drivers/dma/qcom/hidma.c if (hidma_ll_disable(dmadev->lldev)) dmadev 919 drivers/dma/qcom/hidma.c dev_warn(dmadev->ddev.dev, "channel did not stop\n"); dmadev 920 drivers/dma/qcom/hidma.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 921 drivers/dma/qcom/hidma.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 927 drivers/dma/qcom/hidma.c struct hidma_dev *dmadev = platform_get_drvdata(pdev); dmadev 929 drivers/dma/qcom/hidma.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 930 drivers/dma/qcom/hidma.c dma_async_device_unregister(&dmadev->ddev); dmadev 931 drivers/dma/qcom/hidma.c if (!dmadev->lldev->msi_support) dmadev 932 drivers/dma/qcom/hidma.c devm_free_irq(dmadev->ddev.dev, dmadev->irq, dmadev->lldev); dmadev 934 drivers/dma/qcom/hidma.c hidma_free_msis(dmadev); dmadev 936 drivers/dma/qcom/hidma.c tasklet_kill(&dmadev->task); dmadev 937 drivers/dma/qcom/hidma.c hidma_sysfs_uninit(dmadev); dmadev 938 drivers/dma/qcom/hidma.c hidma_debug_uninit(dmadev); dmadev 939 drivers/dma/qcom/hidma.c hidma_ll_uninit(dmadev->lldev); dmadev 940 drivers/dma/qcom/hidma.c hidma_free(dmadev); dmadev 96 drivers/dma/qcom/hidma.h struct hidma_dev *dmadev; dmadev 158 drivers/dma/qcom/hidma.h void hidma_debug_init(struct hidma_dev *dmadev); dmadev 159 drivers/dma/qcom/hidma.h void hidma_debug_uninit(struct hidma_dev *dmadev); dmadev 88 drivers/dma/qcom/hidma_dbg.c struct hidma_dev *dmadev = mchan->dmadev; dmadev 90 drivers/dma/qcom/hidma_dbg.c pm_runtime_get_sync(dmadev->ddev.dev); dmadev 95 drivers/dma/qcom/hidma_dbg.c hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); dmadev 99 drivers/dma/qcom/hidma_dbg.c hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); dmadev 103 drivers/dma/qcom/hidma_dbg.c hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); dmadev 105 drivers/dma/qcom/hidma_dbg.c hidma_ll_devstats(s, mchan->dmadev->lldev); dmadev 106 drivers/dma/qcom/hidma_dbg.c pm_runtime_mark_last_busy(dmadev->ddev.dev); dmadev 107 drivers/dma/qcom/hidma_dbg.c pm_runtime_put_autosuspend(dmadev->ddev.dev); dmadev 118 drivers/dma/qcom/hidma_dbg.c struct hidma_dev *dmadev = s->private; dmadev 121 drivers/dma/qcom/hidma_dbg.c seq_printf(s, "nr_descriptors=%d\n", dmadev->nr_descriptors); dmadev 122 drivers/dma/qcom/hidma_dbg.c seq_printf(s, "dev_trca=%p\n", &dmadev->dev_trca); dmadev 123 drivers/dma/qcom/hidma_dbg.c seq_printf(s, "dev_trca_phys=%pa\n", &dmadev->trca_resource->start); dmadev 124 drivers/dma/qcom/hidma_dbg.c sz = resource_size(dmadev->trca_resource); dmadev 126 drivers/dma/qcom/hidma_dbg.c seq_printf(s, "dev_evca=%p\n", &dmadev->dev_evca); dmadev 127 drivers/dma/qcom/hidma_dbg.c seq_printf(s, "dev_evca_phys=%pa\n", &dmadev->evca_resource->start); dmadev 128 drivers/dma/qcom/hidma_dbg.c sz = resource_size(dmadev->evca_resource); dmadev 136 drivers/dma/qcom/hidma_dbg.c void hidma_debug_uninit(struct hidma_dev *dmadev) dmadev 138 drivers/dma/qcom/hidma_dbg.c debugfs_remove_recursive(dmadev->debugfs); dmadev 141 drivers/dma/qcom/hidma_dbg.c void hidma_debug_init(struct hidma_dev *dmadev) dmadev 147 drivers/dma/qcom/hidma_dbg.c dmadev->debugfs = debugfs_create_dir(dev_name(dmadev->ddev.dev), NULL); dmadev 150 drivers/dma/qcom/hidma_dbg.c list_for_each(position, &dmadev->ddev.channels) { dmadev 157 drivers/dma/qcom/hidma_dbg.c dmadev->debugfs); dmadev 163 drivers/dma/qcom/hidma_dbg.c debugfs_create_file("stats", S_IRUGO, dmadev->debugfs, dmadev, dmadev 1089 drivers/dma/s3c24xx-dma.c struct dma_device *dmadev, unsigned int channels, bool slave) dmadev 1094 drivers/dma/s3c24xx-dma.c INIT_LIST_HEAD(&dmadev->channels); dmadev 1102 drivers/dma/s3c24xx-dma.c chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); dmadev 1120 drivers/dma/s3c24xx-dma.c dev_dbg(dmadev->dev, dmadev 1125 drivers/dma/s3c24xx-dma.c vchan_init(&chan->vc, dmadev); dmadev 1127 drivers/dma/s3c24xx-dma.c dev_info(dmadev->dev, "initialized %d virtual %s channels\n", dmadev 1132 drivers/dma/s3c24xx-dma.c static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) dmadev 1138 drivers/dma/s3c24xx-dma.c next, &dmadev->channels, vc.chan.device_node) { dmadev 131 drivers/dma/sa11x0-dma.c static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) dmadev 133 drivers/dma/sa11x0-dma.c return container_of(dmadev, struct sa11x0_dma_dev, slave); dmadev 835 drivers/dma/sa11x0-dma.c static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, dmadev 840 drivers/dma/sa11x0-dma.c INIT_LIST_HEAD(&dmadev->channels); dmadev 841 drivers/dma/sa11x0-dma.c dmadev->dev = dev; dmadev 842 drivers/dma/sa11x0-dma.c dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; dmadev 843 drivers/dma/sa11x0-dma.c dmadev->device_config = sa11x0_dma_device_config; dmadev 844 drivers/dma/sa11x0-dma.c dmadev->device_pause = sa11x0_dma_device_pause; dmadev 845 drivers/dma/sa11x0-dma.c dmadev->device_resume = sa11x0_dma_device_resume; dmadev 846 drivers/dma/sa11x0-dma.c dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; dmadev 847 drivers/dma/sa11x0-dma.c dmadev->device_tx_status = sa11x0_dma_tx_status; dmadev 848 drivers/dma/sa11x0-dma.c dmadev->device_issue_pending = sa11x0_dma_issue_pending; dmadev 865 drivers/dma/sa11x0-dma.c vchan_init(&c->vc, dmadev); dmadev 868 drivers/dma/sa11x0-dma.c return dma_async_device_register(dmadev); dmadev 890 drivers/dma/sa11x0-dma.c static void sa11x0_dma_free_channels(struct dma_device *dmadev) dmadev 894 drivers/dma/sa11x0-dma.c list_for_each_entry_safe(c, cn, &dmadev->channels, vc.chan.device_node) { dmadev 236 drivers/dma/stm32-dma.c static u32 stm32_dma_read(struct stm32_dma_device *dmadev, u32 reg) dmadev 238 drivers/dma/stm32-dma.c return readl_relaxed(dmadev->base + reg); dmadev 241 drivers/dma/stm32-dma.c static void stm32_dma_write(struct stm32_dma_device *dmadev, u32 reg, u32 val) dmadev 243 drivers/dma/stm32-dma.c writel_relaxed(val, dmadev->base + reg); dmadev 380 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 392 drivers/dma/stm32-dma.c dma_isr = stm32_dma_read(dmadev, STM32_DMA_HISR); dmadev 394 drivers/dma/stm32-dma.c dma_isr = stm32_dma_read(dmadev, STM32_DMA_LISR); dmadev 403 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 417 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_HIFCR, dma_ifcr); dmadev 419 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_LIFCR, dma_ifcr); dmadev 424 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 429 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id)); dmadev 433 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SCR(id), dma_scr); dmadev 436 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id)); dmadev 455 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 460 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); dmadev 462 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SCR(chan->id), dma_scr); dmadev 463 drivers/dma/stm32-dma.c dma_sfcr = stm32_dma_read(dmadev, STM32_DMA_SFCR(chan->id)); dmadev 465 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SFCR(chan->id), dma_sfcr); dmadev 512 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 513 drivers/dma/stm32-dma.c u32 scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); dmadev 514 drivers/dma/stm32-dma.c u32 ndtr = stm32_dma_read(dmadev, STM32_DMA_SNDTR(chan->id)); dmadev 515 drivers/dma/stm32-dma.c u32 spar = stm32_dma_read(dmadev, STM32_DMA_SPAR(chan->id)); dmadev 516 drivers/dma/stm32-dma.c u32 sm0ar = stm32_dma_read(dmadev, STM32_DMA_SM0AR(chan->id)); dmadev 517 drivers/dma/stm32-dma.c u32 sm1ar = stm32_dma_read(dmadev, STM32_DMA_SM1AR(chan->id)); dmadev 518 drivers/dma/stm32-dma.c u32 sfcr = stm32_dma_read(dmadev, STM32_DMA_SFCR(chan->id)); dmadev 532 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 558 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SCR(chan->id), reg->dma_scr); dmadev 559 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SPAR(chan->id), reg->dma_spar); dmadev 560 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SM0AR(chan->id), reg->dma_sm0ar); dmadev 561 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SFCR(chan->id), reg->dma_sfcr); dmadev 562 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SM1AR(chan->id), reg->dma_sm1ar); dmadev 563 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SNDTR(chan->id), reg->dma_sndtr); dmadev 579 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SCR(chan->id), reg->dma_scr); dmadev 588 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 593 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id)); dmadev 603 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SM0AR(id), dma_sm0ar); dmadev 605 drivers/dma/stm32-dma.c stm32_dma_read(dmadev, STM32_DMA_SM0AR(id))); dmadev 608 drivers/dma/stm32-dma.c stm32_dma_write(dmadev, STM32_DMA_SM1AR(id), dma_sm1ar); dmadev 610 drivers/dma/stm32-dma.c stm32_dma_read(dmadev, STM32_DMA_SM1AR(id))); dmadev 637 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 643 drivers/dma/stm32-dma.c scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); dmadev 644 drivers/dma/stm32-dma.c sfcr = stm32_dma_read(dmadev, STM32_DMA_SFCR(chan->id)); dmadev 1029 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 1031 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); dmadev 1033 drivers/dma/stm32-dma.c ndtr = stm32_dma_read(dmadev, STM32_DMA_SNDTR(chan->id)); dmadev 1052 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 1057 drivers/dma/stm32-dma.c dma_scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id)); dmadev 1065 drivers/dma/stm32-dma.c dma_smar = stm32_dma_read(dmadev, STM32_DMA_SM0AR(id)); dmadev 1069 drivers/dma/stm32-dma.c dma_smar = stm32_dma_read(dmadev, STM32_DMA_SM1AR(id)); dmadev 1172 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 1177 drivers/dma/stm32-dma.c ret = pm_runtime_get_sync(dmadev->ddev.dev); dmadev 1183 drivers/dma/stm32-dma.c pm_runtime_put(dmadev->ddev.dev); dmadev 1191 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); dmadev 1203 drivers/dma/stm32-dma.c pm_runtime_put(dmadev->ddev.dev); dmadev 1230 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = ofdma->of_dma_data; dmadev 1231 drivers/dma/stm32-dma.c struct device *dev = dmadev->ddev.dev; dmadev 1252 drivers/dma/stm32-dma.c chan = &dmadev->chan[cfg.channel_id]; dmadev 1274 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev; dmadev 1286 drivers/dma/stm32-dma.c dmadev = devm_kzalloc(&pdev->dev, sizeof(*dmadev), GFP_KERNEL); dmadev 1287 drivers/dma/stm32-dma.c if (!dmadev) dmadev 1290 drivers/dma/stm32-dma.c dd = &dmadev->ddev; dmadev 1293 drivers/dma/stm32-dma.c dmadev->base = devm_ioremap_resource(&pdev->dev, res); dmadev 1294 drivers/dma/stm32-dma.c if (IS_ERR(dmadev->base)) dmadev 1295 drivers/dma/stm32-dma.c return PTR_ERR(dmadev->base); dmadev 1297 drivers/dma/stm32-dma.c dmadev->clk = devm_clk_get(&pdev->dev, NULL); dmadev 1298 drivers/dma/stm32-dma.c if (IS_ERR(dmadev->clk)) { dmadev 1300 drivers/dma/stm32-dma.c return PTR_ERR(dmadev->clk); dmadev 1303 drivers/dma/stm32-dma.c ret = clk_prepare_enable(dmadev->clk); dmadev 1309 drivers/dma/stm32-dma.c dmadev->mem2mem = of_property_read_bool(pdev->dev.of_node, dmadev 1312 drivers/dma/stm32-dma.c dmadev->rst = devm_reset_control_get(&pdev->dev, NULL); dmadev 1313 drivers/dma/stm32-dma.c if (!IS_ERR(dmadev->rst)) { dmadev 1314 drivers/dma/stm32-dma.c reset_control_assert(dmadev->rst); dmadev 1316 drivers/dma/stm32-dma.c reset_control_deassert(dmadev->rst); dmadev 1343 drivers/dma/stm32-dma.c if (dmadev->mem2mem) { dmadev 1350 drivers/dma/stm32-dma.c chan = &dmadev->chan[i]; dmadev 1361 drivers/dma/stm32-dma.c chan = &dmadev->chan[i]; dmadev 1379 drivers/dma/stm32-dma.c stm32_dma_of_xlate, dmadev); dmadev 1386 drivers/dma/stm32-dma.c platform_set_drvdata(pdev, dmadev); dmadev 1400 drivers/dma/stm32-dma.c clk_disable_unprepare(dmadev->clk); dmadev 1408 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = dev_get_drvdata(dev); dmadev 1410 drivers/dma/stm32-dma.c clk_disable_unprepare(dmadev->clk); dmadev 1417 drivers/dma/stm32-dma.c struct stm32_dma_device *dmadev = dev_get_drvdata(dev); dmadev 1420 drivers/dma/stm32-dma.c ret = clk_prepare_enable(dmadev->clk); dmadev 311 drivers/dma/stm32-mdma.c static u32 stm32_mdma_read(struct stm32_mdma_device *dmadev, u32 reg) dmadev 313 drivers/dma/stm32-mdma.c return readl_relaxed(dmadev->base + reg); dmadev 316 drivers/dma/stm32-mdma.c static void stm32_mdma_write(struct stm32_mdma_device *dmadev, u32 reg, u32 val) dmadev 318 drivers/dma/stm32-mdma.c writel_relaxed(val, dmadev->base + reg); dmadev 321 drivers/dma/stm32-mdma.c static void stm32_mdma_set_bits(struct stm32_mdma_device *dmadev, u32 reg, dmadev 324 drivers/dma/stm32-mdma.c void __iomem *addr = dmadev->base + reg; dmadev 329 drivers/dma/stm32-mdma.c static void stm32_mdma_clr_bits(struct stm32_mdma_device *dmadev, u32 reg, dmadev 332 drivers/dma/stm32-mdma.c void __iomem *addr = dmadev->base + reg; dmadev 429 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 437 drivers/dma/stm32-mdma.c stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); dmadev 439 drivers/dma/stm32-mdma.c ccr = stm32_mdma_read(dmadev, reg); dmadev 441 drivers/dma/stm32-mdma.c stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_EN); dmadev 445 drivers/dma/stm32-mdma.c dmadev->base + STM32_MDMA_CISR(id), cisr, dmadev 458 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 468 drivers/dma/stm32-mdma.c status = stm32_mdma_read(dmadev, STM32_MDMA_CISR(chan->id)); dmadev 472 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, STM32_MDMA_CIFCR(chan->id), status); dmadev 478 drivers/dma/stm32-mdma.c static void stm32_mdma_set_bus(struct stm32_mdma_device *dmadev, u32 *ctbr, dmadev 487 drivers/dma/stm32-mdma.c for (i = 0; i < dmadev->nr_ahb_addr_masks; i++) { dmadev 488 drivers/dma/stm32-mdma.c if (mask == dmadev->ahb_addr_masks[i]) { dmadev 501 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 514 drivers/dma/stm32-mdma.c ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); dmadev 515 drivers/dma/stm32-mdma.c ctcr = stm32_mdma_read(dmadev, STM32_MDMA_CTCR(chan->id)); dmadev 516 drivers/dma/stm32-mdma.c ctbr = stm32_mdma_read(dmadev, STM32_MDMA_CTBR(chan->id)); dmadev 605 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, dmadev 612 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CDAR(chan->id), dst_addr); dmadev 652 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, dmadev 659 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CSAR(chan->id), src_addr); dmadev 731 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 750 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, dmadev 758 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, dmadev 827 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 866 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, dmadev 872 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, dmadev 916 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 942 drivers/dma/stm32-mdma.c ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); dmadev 943 drivers/dma/stm32-mdma.c ctcr = stm32_mdma_read(dmadev, STM32_MDMA_CTCR(chan->id)); dmadev 944 drivers/dma/stm32-mdma.c ctbr = stm32_mdma_read(dmadev, STM32_MDMA_CTBR(chan->id)); dmadev 945 drivers/dma/stm32-mdma.c cbndtr = stm32_mdma_read(dmadev, STM32_MDMA_CBNDTR(chan->id)); dmadev 968 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, src); dmadev 969 drivers/dma/stm32-mdma.c stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, dest); dmadev 1092 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1095 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id))); dmadev 1097 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CTCR(chan->id))); dmadev 1099 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CBNDTR(chan->id))); dmadev 1101 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CSAR(chan->id))); dmadev 1103 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CDAR(chan->id))); dmadev 1105 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CBRUR(chan->id))); dmadev 1107 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CLAR(chan->id))); dmadev 1109 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CTBR(chan->id))); dmadev 1111 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CMAR(chan->id))); dmadev 1113 drivers/dma/stm32-mdma.c stm32_mdma_read(dmadev, STM32_MDMA_CMDR(chan->id))); dmadev 1118 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1134 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CCR(id), chan->desc->ccr); dmadev 1135 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CTCR(id), hwdesc->ctcr); dmadev 1136 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CBNDTR(id), hwdesc->cbndtr); dmadev 1137 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CSAR(id), hwdesc->csar); dmadev 1138 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CDAR(id), hwdesc->cdar); dmadev 1139 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CBRUR(id), hwdesc->cbrur); dmadev 1140 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CLAR(id), hwdesc->clar); dmadev 1141 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CTBR(id), hwdesc->ctbr); dmadev 1142 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CMAR(id), hwdesc->cmar); dmadev 1143 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CMDR(id), hwdesc->cmdr); dmadev 1146 drivers/dma/stm32-mdma.c status = stm32_mdma_read(dmadev, STM32_MDMA_CISR(id)); dmadev 1148 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, STM32_MDMA_CIFCR(id), status); dmadev 1153 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, STM32_MDMA_CCR(id), STM32_MDMA_CCR_EN); dmadev 1158 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CCR_SWRQ); dmadev 1204 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1214 drivers/dma/stm32-mdma.c stm32_mdma_write(dmadev, STM32_MDMA_CCR(chan->id), chan->desc->ccr); dmadev 1217 drivers/dma/stm32-mdma.c status = stm32_mdma_read(dmadev, STM32_MDMA_CISR(chan->id)); dmadev 1219 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, STM32_MDMA_CIFCR(chan->id), status); dmadev 1225 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CCR_EN); dmadev 1229 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CCR_SWRQ); dmadev 1278 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1288 drivers/dma/stm32-mdma.c cbndtr = stm32_mdma_read(dmadev, STM32_MDMA_CBNDTR(chan->id)); dmadev 1345 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = devid; dmadev 1350 drivers/dma/stm32-mdma.c status = readl_relaxed(dmadev->base + STM32_MDMA_GISR0); dmadev 1354 drivers/dma/stm32-mdma.c status = readl_relaxed(dmadev->base + STM32_MDMA_GISR1); dmadev 1356 drivers/dma/stm32-mdma.c dev_dbg(mdma2dev(dmadev), "spurious it\n"); dmadev 1367 drivers/dma/stm32-mdma.c chan = &dmadev->chan[id]; dmadev 1369 drivers/dma/stm32-mdma.c dev_dbg(mdma2dev(dmadev), "MDMA channel not initialized\n"); dmadev 1375 drivers/dma/stm32-mdma.c status = stm32_mdma_read(dmadev, STM32_MDMA_CISR(chan->id)); dmadev 1376 drivers/dma/stm32-mdma.c ien = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); dmadev 1394 drivers/dma/stm32-mdma.c status = readl_relaxed(dmadev->base + STM32_MDMA_CESR(id)); dmadev 1396 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CIFCR_CTEIF); dmadev 1400 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CIFCR_CCTCIF); dmadev 1405 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CIFCR_CBRTIF); dmadev 1409 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CIFCR_CBTIF); dmadev 1419 drivers/dma/stm32-mdma.c stm32_mdma_set_bits(dmadev, reg, STM32_MDMA_CIFCR_CLTCIF); dmadev 1436 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1449 drivers/dma/stm32-mdma.c ret = pm_runtime_get_sync(dmadev->ddev.dev); dmadev 1455 drivers/dma/stm32-mdma.c pm_runtime_put(dmadev->ddev.dev); dmadev 1463 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); dmadev 1475 drivers/dma/stm32-mdma.c pm_runtime_put(dmadev->ddev.dev); dmadev 1484 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = ofdma->of_dma_data; dmadev 1490 drivers/dma/stm32-mdma.c dev_err(mdma2dev(dmadev), "Bad number of args\n"); dmadev 1500 drivers/dma/stm32-mdma.c if (config.request >= dmadev->nr_requests) { dmadev 1501 drivers/dma/stm32-mdma.c dev_err(mdma2dev(dmadev), "Bad request line\n"); dmadev 1506 drivers/dma/stm32-mdma.c dev_err(mdma2dev(dmadev), "Priority level not supported\n"); dmadev 1510 drivers/dma/stm32-mdma.c c = dma_get_any_slave_channel(&dmadev->ddev); dmadev 1512 drivers/dma/stm32-mdma.c dev_err(mdma2dev(dmadev), "No more channels available\n"); dmadev 1531 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev; dmadev 1562 drivers/dma/stm32-mdma.c dmadev = devm_kzalloc(&pdev->dev, sizeof(*dmadev) + sizeof(u32) * count, dmadev 1564 drivers/dma/stm32-mdma.c if (!dmadev) dmadev 1567 drivers/dma/stm32-mdma.c dmadev->nr_channels = nr_channels; dmadev 1568 drivers/dma/stm32-mdma.c dmadev->nr_requests = nr_requests; dmadev 1570 drivers/dma/stm32-mdma.c dmadev->ahb_addr_masks, dmadev 1572 drivers/dma/stm32-mdma.c dmadev->nr_ahb_addr_masks = count; dmadev 1575 drivers/dma/stm32-mdma.c dmadev->base = devm_ioremap_resource(&pdev->dev, res); dmadev 1576 drivers/dma/stm32-mdma.c if (IS_ERR(dmadev->base)) dmadev 1577 drivers/dma/stm32-mdma.c return PTR_ERR(dmadev->base); dmadev 1579 drivers/dma/stm32-mdma.c dmadev->clk = devm_clk_get(&pdev->dev, NULL); dmadev 1580 drivers/dma/stm32-mdma.c if (IS_ERR(dmadev->clk)) { dmadev 1581 drivers/dma/stm32-mdma.c ret = PTR_ERR(dmadev->clk); dmadev 1587 drivers/dma/stm32-mdma.c ret = clk_prepare_enable(dmadev->clk); dmadev 1593 drivers/dma/stm32-mdma.c dmadev->rst = devm_reset_control_get(&pdev->dev, NULL); dmadev 1594 drivers/dma/stm32-mdma.c if (!IS_ERR(dmadev->rst)) { dmadev 1595 drivers/dma/stm32-mdma.c reset_control_assert(dmadev->rst); dmadev 1597 drivers/dma/stm32-mdma.c reset_control_deassert(dmadev->rst); dmadev 1600 drivers/dma/stm32-mdma.c dd = &dmadev->ddev; dmadev 1632 drivers/dma/stm32-mdma.c for (i = 0; i < dmadev->nr_channels; i++) { dmadev 1633 drivers/dma/stm32-mdma.c chan = &dmadev->chan[i]; dmadev 1639 drivers/dma/stm32-mdma.c dmadev->irq = platform_get_irq(pdev, 0); dmadev 1640 drivers/dma/stm32-mdma.c if (dmadev->irq < 0) dmadev 1641 drivers/dma/stm32-mdma.c return dmadev->irq; dmadev 1643 drivers/dma/stm32-mdma.c ret = devm_request_irq(&pdev->dev, dmadev->irq, stm32_mdma_irq_handler, dmadev 1644 drivers/dma/stm32-mdma.c 0, dev_name(&pdev->dev), dmadev); dmadev 1654 drivers/dma/stm32-mdma.c ret = of_dma_controller_register(of_node, stm32_mdma_of_xlate, dmadev); dmadev 1661 drivers/dma/stm32-mdma.c platform_set_drvdata(pdev, dmadev); dmadev 1678 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = dev_get_drvdata(dev); dmadev 1680 drivers/dma/stm32-mdma.c clk_disable_unprepare(dmadev->clk); dmadev 1687 drivers/dma/stm32-mdma.c struct stm32_mdma_device *dmadev = dev_get_drvdata(dev); dmadev 1690 drivers/dma/stm32-mdma.c ret = clk_prepare_enable(dmadev->clk); dmadev 2481 drivers/dma/ti/edma.c static void edma_cleanupp_vchan(struct dma_device *dmadev) dmadev 2486 drivers/dma/ti/edma.c &dmadev->channels, vchan.chan.device_node) { dmadev 128 drivers/dma/virt-dma.c void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev) dmadev 140 drivers/dma/virt-dma.c vc->chan.device = dmadev; dmadev 141 drivers/dma/virt-dma.c list_add_tail(&vc->chan.device_node, &dmadev->channels); dmadev 45 drivers/dma/virt-dma.h void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev); dmadev 131 drivers/dma/zx_dma.c #define to_zx_dma(dmadev) container_of(dmadev, struct zx_dma_dev, slave) dmadev 145 drivers/infiniband/hw/efa/efa_com.c dma_alloc_coherent(aq->dmadev, size, &sq->dma_addr, GFP_KERNEL); dmadev 183 drivers/infiniband/hw/efa/efa_com.c dma_alloc_coherent(aq->dmadev, size, &cq->dma_addr, GFP_KERNEL); dmadev 224 drivers/infiniband/hw/efa/efa_com.c aenq->entries = dma_alloc_coherent(edev->dmadev, size, &aenq->dma_addr, dmadev 377 drivers/infiniband/hw/efa/efa_com.c aq->comp_ctx = devm_kzalloc(aq->dmadev, size, GFP_KERNEL); dmadev 378 drivers/infiniband/hw/efa/efa_com.c aq->comp_ctx_pool = devm_kzalloc(aq->dmadev, pool_size, GFP_KERNEL); dmadev 380 drivers/infiniband/hw/efa/efa_com.c devm_kfree(aq->dmadev, aq->comp_ctx_pool); dmadev 381 drivers/infiniband/hw/efa/efa_com.c devm_kfree(aq->dmadev, aq->comp_ctx); dmadev 683 drivers/infiniband/hw/efa/efa_com.c devm_kfree(edev->dmadev, aq->comp_ctx_pool); dmadev 684 drivers/infiniband/hw/efa/efa_com.c devm_kfree(edev->dmadev, aq->comp_ctx); dmadev 687 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, size, sq->entries, sq->dma_addr); dmadev 690 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, size, cq->entries, cq->dma_addr); dmadev 693 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, size, aenq->entries, aenq->dma_addr); dmadev 754 drivers/infiniband/hw/efa/efa_com.c aq->dmadev = edev->dmadev; dmadev 796 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, aq->depth * sizeof(*aq->cq.entries), dmadev 799 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, aq->depth * sizeof(*aq->sq.entries), dmadev 802 drivers/infiniband/hw/efa/efa_com.c devm_kfree(edev->dmadev, aq->comp_ctx); dmadev 919 drivers/infiniband/hw/efa/efa_com.c dma_alloc_coherent(edev->dmadev, sizeof(*mmio_read->read_resp), dmadev 937 drivers/infiniband/hw/efa/efa_com.c dma_free_coherent(edev->dmadev, sizeof(*mmio_read->read_resp), dmadev 59 drivers/infiniband/hw/efa/efa_com.h void *dmadev; dmadev 106 drivers/infiniband/hw/efa/efa_com.h void *dmadev; dmadev 413 drivers/infiniband/hw/efa/efa_main.c edev->dmadev = &pdev->dev; dmadev 209 drivers/media/platform/m2m-deinterlace.c struct dma_device *dmadev = chan->device; dmadev 328 drivers/media/platform/m2m-deinterlace.c tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags); dmadev 159 drivers/net/ethernet/amazon/ena/ena_com.c aenq->entries = dma_alloc_coherent(dev->dmadev, size, &aenq->dma_addr, dmadev 349 drivers/net/ethernet/amazon/ena/ena_com.c dev_node = dev_to_node(ena_dev->dmadev); dmadev 350 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, ctx->numa_node); dmadev 352 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, size, dmadev 355 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, dev_node); dmadev 358 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, size, dmadev 380 drivers/net/ethernet/amazon/ena/ena_com.c dev_node = dev_to_node(ena_dev->dmadev); dmadev 381 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, ctx->numa_node); dmadev 383 drivers/net/ethernet/amazon/ena/ena_com.c devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); dmadev 384 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, dev_node); dmadev 387 drivers/net/ethernet/amazon/ena/ena_com.c devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); dmadev 434 drivers/net/ethernet/amazon/ena/ena_com.c prev_node = dev_to_node(ena_dev->dmadev); dmadev 435 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, ctx->numa_node); dmadev 437 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, size, dmadev 439 drivers/net/ethernet/amazon/ena/ena_com.c set_dev_node(ena_dev->dmadev, prev_node); dmadev 442 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, size, dmadev 920 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, size, dmadev 930 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, size, dmadev 938 drivers/net/ethernet/amazon/ena/ena_com.c devm_kfree(ena_dev->dmadev, io_sq->bounce_buf_ctrl.base_buffer); dmadev 1086 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), dmadev 1100 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), dmadev 1110 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_ctrl), dmadev 1124 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_ctrl), dmadev 1154 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, tbl_size, dmadev 1161 drivers/net/ethernet/amazon/ena/ena_com.c devm_kzalloc(ena_dev->dmadev, tbl_size, GFP_KERNEL); dmadev 1173 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, dmadev 1188 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, dmadev 1193 drivers/net/ethernet/amazon/ena/ena_com.c devm_kfree(ena_dev->dmadev, rss->host_rss_ind_tbl); dmadev 1640 drivers/net/ethernet/amazon/ena/ena_com.c devm_kfree(ena_dev->dmadev, admin_queue->comp_ctx); dmadev 1644 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, size, sq->entries, dmadev 1650 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, size, cq->entries, dmadev 1656 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, size, aenq->entries, dmadev 1684 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, dmadev 1717 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, sizeof(*mmio_read->read_resp), dmadev 1756 drivers/net/ethernet/amazon/ena/ena_com.c admin_queue->q_dmadev = ena_dev->dmadev; dmadev 2682 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, SZ_4K, dmadev 2700 drivers/net/ethernet/amazon/ena/ena_com.c dma_alloc_coherent(ena_dev->dmadev, debug_area_size, dmadev 2718 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, SZ_4K, host_attr->host_info, dmadev 2729 drivers/net/ethernet/amazon/ena/ena_com.c dma_free_coherent(ena_dev->dmadev, host_attr->debug_area_size, dmadev 326 drivers/net/ethernet/amazon/ena/ena_com.h void *dmadev; dmadev 3480 drivers/net/ethernet/amazon/ena/ena_netdev.c ena_dev->dmadev = &pdev->dev; dmadev 213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c struct device *dmadev; dmadev 451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c return dma_alloc_coherent(di->dmadev, size, pap, GFP_ATOMIC); dmadev 486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c dma_free_coherent(di->dmadev, size, va, *descpa); dmadev 590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c di->dmadev = core->dma_dev; dmadev 755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c dma_free_coherent(di->dmadev, di->txdalloc, dmadev 759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c dma_free_coherent(di->dmadev, di->rxdalloc, dmadev 897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c dma_unmap_single(di->dmadev, pa, di->rxbufsize, DMA_FROM_DEVICE); dmadev 1080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c pa = dma_map_single(di->dmadev, p->data, di->rxbufsize, dmadev 1082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c if (dma_mapping_error(di->dmadev, pa)) { dmadev 1291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c pa = dma_map_single(di->dmadev, data, len, DMA_TO_DEVICE); dmadev 1293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c if (dma_mapping_error(di->dmadev, pa)) { dmadev 1527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c dma_unmap_single(di->dmadev, pa, size, DMA_TO_DEVICE); dmadev 38 drivers/spi/spi-mem.c struct device *dmadev; dmadev 44 drivers/spi/spi-mem.c dmadev = ctlr->dma_tx->device->dev; dmadev 46 drivers/spi/spi-mem.c dmadev = ctlr->dma_rx->device->dev; dmadev 48 drivers/spi/spi-mem.c dmadev = ctlr->dev.parent; dmadev 50 drivers/spi/spi-mem.c if (!dmadev) dmadev 53 drivers/spi/spi-mem.c return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, dmadev 84 drivers/spi/spi-mem.c struct device *dmadev; dmadev 90 drivers/spi/spi-mem.c dmadev = ctlr->dma_tx->device->dev; dmadev 92 drivers/spi/spi-mem.c dmadev = ctlr->dma_rx->device->dev; dmadev 94 drivers/spi/spi-mem.c dmadev = ctlr->dev.parent; dmadev 96 drivers/spi/spi-mem.c spi_unmap_buf(ctlr, dmadev, sgt,