Lines Matching refs:dma_chan
263 static inline int ipu_is_dp_graphic_chan(uint32_t dma_chan) in ipu_is_dp_graphic_chan() argument
265 return (dma_chan == 23 || dma_chan == 27); in ipu_is_dp_graphic_chan()
268 static inline int ipu_is_dmfc_chan(uint32_t dma_chan) in ipu_is_dmfc_chan() argument
270 return ((dma_chan >= 23) && (dma_chan <= 29)); in ipu_is_dmfc_chan()
1017 uint32_t dma_chan; in ipu_init_channel_buffer() local
1019 dma_chan = channel_2_dma(channel, type); in ipu_init_channel_buffer()
1020 if (!idma_is_valid(dma_chan)) in ipu_init_channel_buffer()
1032 ipu_ch_param_init(dma_chan, pixel_fmt, width, height, stride, u, v, 0, in ipu_init_channel_buffer()
1035 if (ipu_is_dmfc_chan(dma_chan)) { in ipu_init_channel_buffer()
1036 ipu_dmfc_set_wait4eot(dma_chan, width); in ipu_init_channel_buffer()
1039 if (idma_is_set(IDMAC_CHA_PRI, dma_chan)) in ipu_init_channel_buffer()
1040 ipu_ch_param_set_high_priority(dma_chan); in ipu_init_channel_buffer()
1042 ipu_ch_param_dump(dma_chan); in ipu_init_channel_buffer()
1044 reg = __raw_readl(IPU_CHA_DB_MODE_SEL(dma_chan)); in ipu_init_channel_buffer()
1046 reg |= idma_mask(dma_chan); in ipu_init_channel_buffer()
1048 reg &= ~idma_mask(dma_chan); in ipu_init_channel_buffer()
1049 __raw_writel(reg, IPU_CHA_DB_MODE_SEL(dma_chan)); in ipu_init_channel_buffer()
1052 __raw_writel(idma_mask(dma_chan), IPU_CHA_CUR_BUF(dma_chan)); in ipu_init_channel_buffer()