Lines Matching refs:prg_chan
189 static int ipu_prg_get_pre(struct ipu_prg *prg, int prg_chan) in ipu_prg_get_pre() argument
194 if (prg_chan == 0) { in ipu_prg_get_pre()
198 prg->chan[prg_chan].used_pre = 0; in ipu_prg_get_pre()
208 prg->chan[prg_chan].used_pre = i; in ipu_prg_get_pre()
212 mux = (prg->id << 1) | (prg_chan - 1); in ipu_prg_get_pre()
230 dev_err(prg->dev, "could not get PRE for PRG chan %d", prg_chan); in ipu_prg_get_pre()
234 static void ipu_prg_put_pre(struct ipu_prg *prg, int prg_chan) in ipu_prg_put_pre() argument
236 struct ipu_prg_channel *chan = &prg->chan[prg_chan]; in ipu_prg_put_pre()
244 int prg_chan = ipu_prg_ipu_to_prg_chan(ipu_chan->num); in ipu_prg_channel_disable() local
249 if (prg_chan < 0) in ipu_prg_channel_disable()
252 chan = &prg->chan[prg_chan]; in ipu_prg_channel_disable()
259 val |= IPU_PRG_CTL_BYPASS(prg_chan); in ipu_prg_channel_disable()
267 ipu_prg_put_pre(prg, prg_chan); in ipu_prg_channel_disable()
278 int prg_chan = ipu_prg_ipu_to_prg_chan(ipu_chan->num); in ipu_prg_channel_configure() local
284 if (prg_chan < 0) in ipu_prg_channel_configure()
285 return prg_chan; in ipu_prg_channel_configure()
287 chan = &prg->chan[prg_chan]; in ipu_prg_channel_configure()
294 ret = ipu_prg_get_pre(prg, prg_chan); in ipu_prg_channel_configure()
305 writel(val, prg->regs + IPU_PRG_STRIDE(prg_chan)); in ipu_prg_channel_configure()
311 writel(val, prg->regs + IPU_PRG_HEIGHT(prg_chan)); in ipu_prg_channel_configure()
315 writel(val, prg->regs + IPU_PRG_BADDR(prg_chan)); in ipu_prg_channel_configure()
320 IPU_PRG_CTL_SOFT_ARID_SHIFT(prg_chan)); in ipu_prg_channel_configure()
321 val |= IPU_PRG_CTL_SOFT_ARID(prg_chan, axi_id); in ipu_prg_channel_configure()
323 val &= ~IPU_PRG_CTL_BYPASS(prg_chan); in ipu_prg_channel_configure()
331 (val & IPU_PRG_STATUS_BUFFER0_READY(prg_chan)) && in ipu_prg_channel_configure()
332 (val & IPU_PRG_STATUS_BUFFER1_READY(prg_chan)), in ipu_prg_channel_configure()
344 int prg_chan = ipu_prg_ipu_to_prg_chan(ipu_chan->num); in ipu_prg_channel_configure_pending() local
348 if (prg_chan < 0) in ipu_prg_channel_configure_pending()
351 chan = &prg->chan[prg_chan]; in ipu_prg_channel_configure_pending()