• Home
  • Raw
  • Download

Lines Matching refs:ddev

101 	const struct txx9dmac_dev *ddev)  in __txx9dmac_regs()  argument
103 return ddev->regs; in __txx9dmac_regs()
107 const struct txx9dmac_dev *ddev) in __txx9dmac_regs32() argument
109 return ddev->regs; in __txx9dmac_regs32()
112 #define dma64_readl(ddev, name) \ argument
113 __raw_readl(&(__txx9dmac_regs(ddev)->name))
114 #define dma64_writel(ddev, name, val) \ argument
115 __raw_writel((val), &(__txx9dmac_regs(ddev)->name))
117 #define dma32_readl(ddev, name) \ argument
118 __raw_readl(&(__txx9dmac_regs32(ddev)->name))
119 #define dma32_writel(ddev, name, val) \ argument
120 __raw_writel((val), &(__txx9dmac_regs32(ddev)->name))
122 #define dma_readl(ddev, name) \ argument
123 (__is_dmac64(ddev) ? \
124 dma64_readl(ddev, name) : dma32_readl(ddev, name))
125 #define dma_writel(ddev, name, val) \ argument
126 (__is_dmac64(ddev) ? \
127 dma64_writel(ddev, name, val) : dma32_writel(ddev, name, val))
192 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_desc_alloc() local
204 ddev->descsize, DMA_TO_DEVICE); in txx9dmac_desc_alloc()
244 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_sync_desc_for_cpu() local
249 child->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
252 desc->txd.phys, ddev->descsize, in txx9dmac_sync_desc_for_cpu()
426 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_dequeue() local
436 prev->txd.phys, ddev->descsize, in txx9dmac_dequeue()
647 struct txx9dmac_dev *ddev = from_tasklet(ddev, t, tasklet); in txx9dmac_tasklet() local
651 mcr = dma_readl(ddev, MCR); in txx9dmac_tasklet()
652 dev_vdbg(ddev->chan[0]->dma.dev, "tasklet: mcr=%x\n", mcr); in txx9dmac_tasklet()
655 dc = ddev->chan[i]; in txx9dmac_tasklet()
666 irq = ddev->irq; in txx9dmac_tasklet()
673 struct txx9dmac_dev *ddev = dev_id; in txx9dmac_interrupt() local
675 dev_vdbg(ddev->chan[0]->dma.dev, "interrupt: status=%#x\n", in txx9dmac_interrupt()
676 dma_readl(ddev, MCR)); in txx9dmac_interrupt()
678 tasklet_schedule(&ddev->tasklet); in txx9dmac_interrupt()
713 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_prep_dma_memcpy() local
736 if (__is_dmac64(ddev)) { in txx9dmac_prep_dma_memcpy()
754 if (__is_dmac64(ddev)) { in txx9dmac_prep_dma_memcpy()
758 txx9dmac_desc_set_nosimple(ddev, desc, 8, 8, in txx9dmac_prep_dma_memcpy()
764 txx9dmac_desc_set_nosimple(ddev, desc, 4, 4, in txx9dmac_prep_dma_memcpy()
780 prev->txd.phys, ddev->descsize, in txx9dmac_prep_dma_memcpy()
789 txx9dmac_desc_set_INTENT(ddev, prev); in txx9dmac_prep_dma_memcpy()
793 prev->txd.phys, ddev->descsize, in txx9dmac_prep_dma_memcpy()
808 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_prep_slave_sg() local
840 if (__is_dmac64(ddev)) { in txx9dmac_prep_slave_sg()
866 txx9dmac_desc_set_nosimple(ddev, desc, sai, dai, in txx9dmac_prep_slave_sg()
875 ddev->descsize, in txx9dmac_prep_slave_sg()
884 txx9dmac_desc_set_INTENT(ddev, prev); in txx9dmac_prep_slave_sg()
888 prev->txd.phys, ddev->descsize, in txx9dmac_prep_slave_sg()
942 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_chain_dynamic() local
951 prev->txd.phys, ddev->descsize, in txx9dmac_chain_dynamic()
1046 struct txx9dmac_dev *ddev = dc->ddev; in txx9dmac_free_chan_resources() local
1066 ddev->descsize, DMA_TO_DEVICE); in txx9dmac_free_chan_resources()
1075 static void txx9dmac_off(struct txx9dmac_dev *ddev) in txx9dmac_off() argument
1077 dma_writel(ddev, MCR, 0); in txx9dmac_off()
1111 dc->ddev = platform_get_drvdata(dmac_dev); in txx9dmac_chan_probe()
1112 if (dc->ddev->irq < 0) { in txx9dmac_chan_probe()
1124 dc->ddev->chan[ch] = dc; in txx9dmac_chan_probe()
1130 dc->ch_regs = &__txx9dmac_regs(dc->ddev)->CHAN[ch]; in txx9dmac_chan_probe()
1132 dc->ch_regs = &__txx9dmac_regs32(dc->ddev)->CHAN[ch]; in txx9dmac_chan_probe()
1164 dc->ddev->chan[pdev->id % TXX9_DMA_MAX_NR_CHANNELS] = NULL; in txx9dmac_chan_remove()
1172 struct txx9dmac_dev *ddev; in txx9dmac_probe() local
1180 ddev = devm_kzalloc(&pdev->dev, sizeof(*ddev), GFP_KERNEL); in txx9dmac_probe()
1181 if (!ddev) in txx9dmac_probe()
1188 ddev->regs = devm_ioremap(&pdev->dev, io->start, resource_size(io)); in txx9dmac_probe()
1189 if (!ddev->regs) in txx9dmac_probe()
1191 ddev->have_64bit_regs = pdata->have_64bit_regs; in txx9dmac_probe()
1192 if (__is_dmac64(ddev)) in txx9dmac_probe()
1193 ddev->descsize = sizeof(struct txx9dmac_hwdesc); in txx9dmac_probe()
1195 ddev->descsize = sizeof(struct txx9dmac_hwdesc32); in txx9dmac_probe()
1198 txx9dmac_off(ddev); in txx9dmac_probe()
1200 ddev->irq = platform_get_irq(pdev, 0); in txx9dmac_probe()
1201 if (ddev->irq >= 0) { in txx9dmac_probe()
1202 tasklet_setup(&ddev->tasklet, txx9dmac_tasklet); in txx9dmac_probe()
1203 err = devm_request_irq(&pdev->dev, ddev->irq, in txx9dmac_probe()
1204 txx9dmac_interrupt, 0, dev_name(&pdev->dev), ddev); in txx9dmac_probe()
1212 dma_writel(ddev, MCR, mcr); in txx9dmac_probe()
1214 platform_set_drvdata(pdev, ddev); in txx9dmac_probe()
1220 struct txx9dmac_dev *ddev = platform_get_drvdata(pdev); in txx9dmac_remove() local
1222 txx9dmac_off(ddev); in txx9dmac_remove()
1223 if (ddev->irq >= 0) { in txx9dmac_remove()
1224 devm_free_irq(&pdev->dev, ddev->irq, ddev); in txx9dmac_remove()
1225 tasklet_kill(&ddev->tasklet); in txx9dmac_remove()
1232 struct txx9dmac_dev *ddev = platform_get_drvdata(pdev); in txx9dmac_shutdown() local
1234 txx9dmac_off(ddev); in txx9dmac_shutdown()
1239 struct txx9dmac_dev *ddev = dev_get_drvdata(dev); in txx9dmac_suspend_noirq() local
1241 txx9dmac_off(ddev); in txx9dmac_suspend_noirq()
1247 struct txx9dmac_dev *ddev = dev_get_drvdata(dev); in txx9dmac_resume_noirq() local
1254 dma_writel(ddev, MCR, mcr); in txx9dmac_resume_noirq()