Lines Matching refs:mtk_dpi_mask

157 static void mtk_dpi_mask(struct mtk_dpi *dpi, u32 offset, u32 val, u32 mask)  in mtk_dpi_mask()  function
167 mtk_dpi_mask(dpi, DPI_RET, reset ? RST : 0, RST); in mtk_dpi_sw_reset()
172 mtk_dpi_mask(dpi, DPI_EN, EN, EN); in mtk_dpi_enable()
177 mtk_dpi_mask(dpi, DPI_EN, 0, EN); in mtk_dpi_disable()
183 mtk_dpi_mask(dpi, DPI_TGEN_HWIDTH, sync->sync_width << HPW, in mtk_dpi_config_hsync()
185 mtk_dpi_mask(dpi, DPI_TGEN_HPORCH, sync->back_porch << HBP, in mtk_dpi_config_hsync()
187 mtk_dpi_mask(dpi, DPI_TGEN_HPORCH, sync->front_porch << HFP, in mtk_dpi_config_hsync()
195 mtk_dpi_mask(dpi, width_addr, in mtk_dpi_config_vsync()
198 mtk_dpi_mask(dpi, width_addr, in mtk_dpi_config_vsync()
201 mtk_dpi_mask(dpi, porch_addr, in mtk_dpi_config_vsync()
204 mtk_dpi_mask(dpi, porch_addr, in mtk_dpi_config_vsync()
253 mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, pol, mask); in mtk_dpi_config_pol()
258 mtk_dpi_mask(dpi, DPI_CON, en_3d ? TDFP_EN : 0, TDFP_EN); in mtk_dpi_config_3d()
263 mtk_dpi_mask(dpi, DPI_CON, inter ? INTL_EN : 0, INTL_EN); in mtk_dpi_config_interface()
268 mtk_dpi_mask(dpi, DPI_SIZE, width << HSIZE, in mtk_dpi_config_fb_size()
270 mtk_dpi_mask(dpi, DPI_SIZE, height << VSIZE, in mtk_dpi_config_fb_size()
291 mtk_dpi_mask(dpi, DPI_Y_LIMIT, limit.y_bottom << Y_LIMINT_BOT, in mtk_dpi_config_channel_limit()
293 mtk_dpi_mask(dpi, DPI_Y_LIMIT, limit.y_top << Y_LIMINT_TOP, in mtk_dpi_config_channel_limit()
295 mtk_dpi_mask(dpi, DPI_C_LIMIT, limit.c_bottom << C_LIMIT_BOT, in mtk_dpi_config_channel_limit()
297 mtk_dpi_mask(dpi, DPI_C_LIMIT, limit.c_top << C_LIMIT_TOP, in mtk_dpi_config_channel_limit()
323 mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, val << OUT_BIT, in mtk_dpi_config_bit_num()
353 mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, val << YC_MAP, YC_MAP_MASK); in mtk_dpi_config_yc_map()
385 mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, in mtk_dpi_config_channel_swap()
392 mtk_dpi_mask(dpi, DPI_CON, enable ? dpi->conf->yuv422_en_bit : 0, in mtk_dpi_config_yuv422_enable()
398 mtk_dpi_mask(dpi, DPI_CON, enable ? dpi->conf->csc_enable_bit : 0, in mtk_dpi_config_csc_enable()
404 mtk_dpi_mask(dpi, DPI_CON, enable ? IN_RB_SWAP : 0, IN_RB_SWAP); in mtk_dpi_config_swap_input()
409 mtk_dpi_mask(dpi, dpi->conf->reg_h_fre_con, H_FRE_2N, H_FRE_2N); in mtk_dpi_config_2n_h_fre()
415 mtk_dpi_mask(dpi, dpi->conf->reg_h_fre_con, 0, EDGE_SEL_EN); in mtk_dpi_config_disable_edge()
431 mtk_dpi_mask(dpi, DPI_MATRIX_SET, dpi->mode.hdisplay <= 720 ? in mtk_dpi_config_color_format()
446 mtk_dpi_mask(dpi, DPI_DDR_SETTING, DDR_EN | DDR_4PHASE, in mtk_dpi_dual_edge()
448 mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, in mtk_dpi_dual_edge()
452 mtk_dpi_mask(dpi, DPI_DDR_SETTING, DDR_EN | DDR_4PHASE, 0); in mtk_dpi_dual_edge()
612 mtk_dpi_mask(dpi, DPI_CON, DPINTF_INPUT_2P_EN, in mtk_dpi_set_display_mode()