Lines Matching refs:tmp_reg
347 u32 tmp_reg; in mtk_dsi_rxtx_control() local
351 tmp_reg = 1 << 2; in mtk_dsi_rxtx_control()
354 tmp_reg = 3 << 2; in mtk_dsi_rxtx_control()
357 tmp_reg = 7 << 2; in mtk_dsi_rxtx_control()
360 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
363 tmp_reg = 0xf << 2; in mtk_dsi_rxtx_control()
367 tmp_reg |= (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) << 6; in mtk_dsi_rxtx_control()
368 tmp_reg |= (dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET) >> 3; in mtk_dsi_rxtx_control()
370 writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL); in mtk_dsi_rxtx_control()
376 u32 tmp_reg; in mtk_dsi_ps_control() local
380 tmp_reg = PACKED_PS_24BIT_RGB888; in mtk_dsi_ps_control()
384 tmp_reg = LOOSELY_PS_18BIT_RGB666; in mtk_dsi_ps_control()
388 tmp_reg = PACKED_PS_18BIT_RGB666; in mtk_dsi_ps_control()
392 tmp_reg = PACKED_PS_16BIT_RGB565; in mtk_dsi_ps_control()
396 tmp_reg = PACKED_PS_24BIT_RGB888; in mtk_dsi_ps_control()
401 tmp_reg += dsi->vm.hactive * dsi_tmp_buf_bpp & DSI_PS_WC; in mtk_dsi_ps_control()
402 writel(tmp_reg, dsi->regs + DSI_PSCTRL); in mtk_dsi_ps_control()