Lines Matching refs:dma_dev
169 dev_warn(shdev->shdma_dev.dma_dev.dev, "Can't initialize DMAOR.\n"); in sh_dmae_rst()
173 dev_warn(shdev->shdma_dev.dma_dev.dev, in sh_dmae_rst()
528 struct platform_device *pdev = to_platform_device(sdev->dma_dev.dev); in sh_dmae_chan_probe()
533 sh_chan = devm_kzalloc(sdev->dma_dev.dev, sizeof(struct sh_dmae_chan), in sh_dmae_chan_probe()
555 dev_err(sdev->dma_dev.dev, in sh_dmae_chan_probe()
695 struct dma_device *dma_dev; in sh_dmae_probe() local
735 dma_dev = &shdev->shdma_dev.dma_dev; in sh_dmae_probe()
746 dma_dev->src_addr_widths = widths; in sh_dmae_probe()
747 dma_dev->dst_addr_widths = widths; in sh_dmae_probe()
748 dma_dev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); in sh_dmae_probe()
749 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in sh_dmae_probe()
752 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in sh_dmae_probe()
754 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in sh_dmae_probe()
757 dma_dev->copy_align = LOG2_DEFAULT_XFER_SIZE; in sh_dmae_probe()
875 err = dma_async_device_register(&shdev->shdma_dev.dma_dev); in sh_dmae_probe()
908 struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; in sh_dmae_remove() local
910 dma_async_device_unregister(dma_dev); in sh_dmae_remove()