Lines Matching refs:ch
45 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_start() local
55 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP, in cdma_start()
59 host1x_ch_writel(ch, lower_32_bits(start), HOST1X_CHANNEL_DMASTART); in cdma_start()
61 host1x_ch_writel(ch, upper_32_bits(start), HOST1X_CHANNEL_DMASTART_HI); in cdma_start()
63 host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT); in cdma_start()
65 host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMAPUT_HI); in cdma_start()
67 host1x_ch_writel(ch, lower_32_bits(end), HOST1X_CHANNEL_DMAEND); in cdma_start()
69 host1x_ch_writel(ch, upper_32_bits(end), HOST1X_CHANNEL_DMAEND_HI); in cdma_start()
73 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP | in cdma_start()
79 host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMACTRL); in cdma_start()
92 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_timeout_restart() local
100 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP, in cdma_timeout_restart()
107 host1x_ch_writel(ch, lower_32_bits(start), HOST1X_CHANNEL_DMASTART); in cdma_timeout_restart()
109 host1x_ch_writel(ch, upper_32_bits(start), HOST1X_CHANNEL_DMASTART_HI); in cdma_timeout_restart()
111 host1x_ch_writel(ch, lower_32_bits(end), HOST1X_CHANNEL_DMAEND); in cdma_timeout_restart()
113 host1x_ch_writel(ch, upper_32_bits(end), HOST1X_CHANNEL_DMAEND_HI); in cdma_timeout_restart()
117 host1x_ch_writel(ch, getptr, HOST1X_CHANNEL_DMAPUT); in cdma_timeout_restart()
118 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP | in cdma_timeout_restart()
125 host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET), in cdma_timeout_restart()
126 host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT), in cdma_timeout_restart()
130 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP, in cdma_timeout_restart()
132 host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT); in cdma_timeout_restart()
135 host1x_ch_writel(ch, 0, HOST1X_CHANNEL_DMACTRL); in cdma_timeout_restart()
145 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_flush() local
148 host1x_ch_writel(ch, cdma->push_buffer.pos, in cdma_flush()
156 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_stop() local
162 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP, in cdma_stop()
170 static void cdma_hw_cmdproc_stop(struct host1x *host, struct host1x_channel *ch, in cdma_hw_cmdproc_stop() argument
174 host1x_ch_writel(ch, stop ? 0x1 : 0x0, HOST1X_CHANNEL_CMDPROC_STOP); in cdma_hw_cmdproc_stop()
178 cmdproc_stop |= BIT(ch->id); in cdma_hw_cmdproc_stop()
180 cmdproc_stop &= ~BIT(ch->id); in cdma_hw_cmdproc_stop()
185 static void cdma_hw_teardown(struct host1x *host, struct host1x_channel *ch) in cdma_hw_teardown() argument
188 host1x_ch_writel(ch, 0x1, HOST1X_CHANNEL_TEARDOWN); in cdma_hw_teardown()
190 host1x_sync_writel(host, BIT(ch->id), HOST1X_SYNC_CH_TEARDOWN); in cdma_hw_teardown()
201 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_freeze() local
208 dev_dbg(host->dev, "freezing channel (id %d)\n", ch->id); in cdma_freeze()
210 cdma_hw_cmdproc_stop(host, ch, true); in cdma_freeze()
213 __func__, host1x_ch_readl(ch, HOST1X_CHANNEL_DMAGET), in cdma_freeze()
214 host1x_ch_readl(ch, HOST1X_CHANNEL_DMAPUT), in cdma_freeze()
217 host1x_ch_writel(ch, HOST1X_CHANNEL_DMACTRL_DMASTOP, in cdma_freeze()
220 cdma_hw_teardown(host, ch); in cdma_freeze()
229 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_resume() local
233 ch->id, getptr); in cdma_resume()
235 cdma_hw_cmdproc_stop(host1x, ch, false); in cdma_resume()
251 struct host1x_channel *ch; in cdma_timeout_handler() local
256 ch = cdma_to_channel(cdma); in cdma_timeout_handler()
270 cdma_hw_cmdproc_stop(host1x, ch, true); in cdma_timeout_handler()
279 cdma_hw_cmdproc_stop(host1x, ch, false); in cdma_timeout_handler()
291 host1x_cdma_update_sync_queue(cdma, ch->dev); in cdma_timeout_handler()