Lines Matching refs:di
43 #define DC_DISP_ID_SYNC(di) (di) argument
181 static void ipu_di_data_wave_config(int di, in ipu_di_data_wave_config() argument
188 __raw_writel(reg, DI_DW_GEN(di, wave_gen)); in ipu_di_data_wave_config()
191 static void ipu_di_data_pin_config(int di, int wave_gen, int di_pin, int set, in ipu_di_data_pin_config() argument
196 reg = __raw_readl(DI_DW_GEN(di, wave_gen)); in ipu_di_data_pin_config()
199 __raw_writel(reg, DI_DW_GEN(di, wave_gen)); in ipu_di_data_pin_config()
201 __raw_writel((down << 16) | up, DI_DW_SET(di, wave_gen, set)); in ipu_di_data_pin_config()
204 static void ipu_di_sync_config(int di, int wave_gen, in ipu_di_sync_config() argument
218 printf("DI%d counters out of range.\n", di); in ipu_di_sync_config()
224 __raw_writel(reg, DI_SW_GEN0(di, wave_gen)); in ipu_di_sync_config()
232 __raw_writel(reg, DI_SW_GEN1(di, wave_gen)); in ipu_di_sync_config()
233 reg = __raw_readl(DI_STP_REP(di, wave_gen)); in ipu_di_sync_config()
236 __raw_writel(reg, DI_STP_REP(di, wave_gen)); in ipu_di_sync_config()
532 void ipu_dc_init(int dc_chan, int di, unsigned char interlaced) in ipu_dc_init() argument
542 if (di) { in ipu_dc_init()
562 reg |= DC_DISP_ID_SYNC(di) << DC_WR_CH_CONF_PROG_DISP_ID_OFFSET; in ipu_dc_init()
563 reg |= di << 2; in ipu_dc_init()
611 int di; in ipu_dp_dc_enable() local
632 di = g_dc_di_assignment[dc_chan]; in ipu_dp_dc_enable()
636 if ((di << 2) == (reg & DC_WR_CH_CONF_PROG_DI_ID)) { in ipu_dp_dc_enable()
638 reg |= di ? 0 : DC_WR_CH_CONF_PROG_DI_ID; in ipu_dp_dc_enable()
646 clk_enable(g_pixel_clk[di]); in ipu_dp_dc_enable()