Lines Matching refs:dw
88 static void idma32_set_device_name(struct dw_dma *dw, int id) in idma32_set_device_name() argument
90 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); in idma32_set_device_name()
99 static void idma32_fifo_partition(struct dw_dma *dw) in idma32_fifo_partition() argument
112 idma32_writeq(dw, FIFO_PARTITION1, fifo_partition); in idma32_fifo_partition()
113 idma32_writeq(dw, FIFO_PARTITION0, fifo_partition); in idma32_fifo_partition()
116 static void idma32_disable(struct dw_dma *dw) in idma32_disable() argument
118 do_dw_dma_off(dw); in idma32_disable()
119 idma32_fifo_partition(dw); in idma32_disable()
122 static void idma32_enable(struct dw_dma *dw) in idma32_enable() argument
124 idma32_fifo_partition(dw); in idma32_enable()
125 do_dw_dma_on(dw); in idma32_enable()
130 struct dw_dma *dw; in idma32_dma_probe() local
132 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL); in idma32_dma_probe()
133 if (!dw) in idma32_dma_probe()
137 dw->initialize_chan = idma32_initialize_chan; in idma32_dma_probe()
138 dw->suspend_chan = idma32_suspend_chan; in idma32_dma_probe()
139 dw->resume_chan = idma32_resume_chan; in idma32_dma_probe()
140 dw->prepare_ctllo = idma32_prepare_ctllo; in idma32_dma_probe()
141 dw->encode_maxburst = idma32_encode_maxburst; in idma32_dma_probe()
142 dw->bytes2block = idma32_bytes2block; in idma32_dma_probe()
143 dw->block2bytes = idma32_block2bytes; in idma32_dma_probe()
146 dw->set_device_name = idma32_set_device_name; in idma32_dma_probe()
147 dw->disable = idma32_disable; in idma32_dma_probe()
148 dw->enable = idma32_enable; in idma32_dma_probe()
150 chip->dw = dw; in idma32_dma_probe()