Lines Matching refs:idma_mask
284 #define idma_mask(ch) (idma_is_valid(ch) ? (1UL << (ch & 0x1F)) : 0) macro
285 #define idma_is_set(reg, dma) (__raw_readl(reg(dma)) & idma_mask(dma))
699 __raw_writel(reg & ~idma_mask(in_dma), IPU_CHA_DB_MODE_SEL(in_dma)); in ipu_uninit_channel()
701 __raw_writel(reg & ~idma_mask(out_dma), IPU_CHA_DB_MODE_SEL(out_dma)); in ipu_uninit_channel()
1048 reg |= idma_mask(dma_chan); in ipu_init_channel_buffer()
1050 reg &= ~idma_mask(dma_chan); in ipu_init_channel_buffer()
1054 __raw_writel(idma_mask(dma_chan), IPU_CHA_CUR_BUF(dma_chan)); in ipu_init_channel_buffer()
1084 __raw_writel(reg | idma_mask(in_dma), IDMAC_CHA_EN(in_dma)); in ipu_enable_channel()
1088 __raw_writel(reg | idma_mask(out_dma), IDMAC_CHA_EN(out_dma)); in ipu_enable_channel()
1122 __raw_writel(idma_mask(dma_ch), in ipu_clear_buffer_ready()
1127 __raw_writel(idma_mask(dma_ch), in ipu_clear_buffer_ready()
1175 __raw_writel(reg & ~idma_mask(in_dma), IDMAC_CHA_EN(in_dma)); in ipu_disable_channel()
1176 __raw_writel(idma_mask(in_dma), IPU_CHA_CUR_BUF(in_dma)); in ipu_disable_channel()
1180 __raw_writel(reg & ~idma_mask(out_dma), IDMAC_CHA_EN(out_dma)); in ipu_disable_channel()
1181 __raw_writel(idma_mask(out_dma), IPU_CHA_CUR_BUF(out_dma)); in ipu_disable_channel()