Lines Matching full:dw
48 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in idma32_initialize_chan_xbar() local
49 void __iomem *misc = __dw_regs(dw); in idma32_initialize_chan_xbar()
217 static void idma32_set_device_name(struct dw_dma *dw, int id) in idma32_set_device_name() argument
219 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); in idma32_set_device_name()
228 static void idma32_fifo_partition(struct dw_dma *dw) in idma32_fifo_partition() argument
241 idma32_writeq(dw, FIFO_PARTITION1, fifo_partition); in idma32_fifo_partition()
242 idma32_writeq(dw, FIFO_PARTITION0, fifo_partition); in idma32_fifo_partition()
245 static void idma32_disable(struct dw_dma *dw) in idma32_disable() argument
247 do_dw_dma_off(dw); in idma32_disable()
248 idma32_fifo_partition(dw); in idma32_disable()
251 static void idma32_enable(struct dw_dma *dw) in idma32_enable() argument
253 idma32_fifo_partition(dw); in idma32_enable()
254 do_dw_dma_on(dw); in idma32_enable()
259 struct dw_dma *dw; in idma32_dma_probe() local
261 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL); in idma32_dma_probe()
262 if (!dw) in idma32_dma_probe()
267 dw->initialize_chan = idma32_initialize_chan_xbar; in idma32_dma_probe()
269 dw->initialize_chan = idma32_initialize_chan_generic; in idma32_dma_probe()
270 dw->suspend_chan = idma32_suspend_chan; in idma32_dma_probe()
271 dw->resume_chan = idma32_resume_chan; in idma32_dma_probe()
272 dw->prepare_ctllo = idma32_prepare_ctllo; in idma32_dma_probe()
273 dw->encode_maxburst = idma32_encode_maxburst; in idma32_dma_probe()
274 dw->bytes2block = idma32_bytes2block; in idma32_dma_probe()
275 dw->block2bytes = idma32_block2bytes; in idma32_dma_probe()
278 dw->set_device_name = idma32_set_device_name; in idma32_dma_probe()
279 dw->disable = idma32_disable; in idma32_dma_probe()
280 dw->enable = idma32_enable; in idma32_dma_probe()
282 chip->dw = dw; in idma32_dma_probe()