Lines Matching refs:dma_dev
164 dev_warn(shdev->shdma_dev.dma_dev.dev, "Can't initialize DMAOR.\n"); in sh_dmae_rst()
168 dev_warn(shdev->shdma_dev.dma_dev.dev, in sh_dmae_rst()
521 struct platform_device *pdev = to_platform_device(sdev->dma_dev.dev); in sh_dmae_chan_probe()
526 sh_chan = devm_kzalloc(sdev->dma_dev.dev, sizeof(struct sh_dmae_chan), in sh_dmae_chan_probe()
548 dev_err(sdev->dma_dev.dev, in sh_dmae_chan_probe()
679 struct dma_device *dma_dev; in sh_dmae_probe() local
718 dma_dev = &shdev->shdma_dev.dma_dev; in sh_dmae_probe()
729 dma_dev->src_addr_widths = widths; in sh_dmae_probe()
730 dma_dev->dst_addr_widths = widths; in sh_dmae_probe()
731 dma_dev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); in sh_dmae_probe()
732 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in sh_dmae_probe()
735 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in sh_dmae_probe()
737 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in sh_dmae_probe()
740 dma_dev->copy_align = LOG2_DEFAULT_XFER_SIZE; in sh_dmae_probe()
857 err = dma_async_device_register(&shdev->shdma_dev.dma_dev); in sh_dmae_probe()
888 struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; in sh_dmae_remove() local
890 dma_async_device_unregister(dma_dev); in sh_dmae_remove()