Lines Matching refs:dsi_config
182 struct mdfld_dsi_config *dsi_config = in mdfld_dsi_configure_down() local
184 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_configure_down()
203 struct mdfld_dsi_config *dsi_config = in mdfld_dsi_configure_up() local
205 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_configure_up()
233 static void mdfld_dsi_tpo_ic_init(struct mdfld_dsi_config *dsi_config, u32 pipe) in mdfld_dsi_tpo_ic_init() argument
235 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_tpo_ic_init()
236 u32 dcsChannelNumber = dsi_config->channel_num; in mdfld_dsi_tpo_ic_init()
470 void mdfld_dsi_dpi_controller_init(struct mdfld_dsi_config *dsi_config, in mdfld_dsi_dpi_controller_init() argument
473 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_dpi_controller_init()
474 int lane_count = dsi_config->lane_count; in mdfld_dsi_dpi_controller_init()
476 struct drm_display_mode *mode = dsi_config->mode; in mdfld_dsi_dpi_controller_init()
490 val |= dsi_config->channel_num << DSI_DPI_VIRT_CHANNEL_OFFSET; in mdfld_dsi_dpi_controller_init()
492 switch (dsi_config->bpp) { in mdfld_dsi_dpi_controller_init()
504 dsi_config->bpp); in mdfld_dsi_dpi_controller_init()
509 (mode->vtotal * mode->htotal * dsi_config->bpp / in mdfld_dsi_dpi_controller_init()
527 dsi_config->lane_count, dsi_config->bpp); in mdfld_dsi_dpi_controller_init()
550 val = dsi_config->video_mode | DSI_DPI_COMPLETE_LAST_LINE; in mdfld_dsi_dpi_controller_init()
642 struct mdfld_dsi_config *dsi_config = in mdfld_dsi_dpi_set_power() local
645 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_dpi_set_power()
664 mdfld_dsi_tpo_ic_init(dsi_config, pipe); in mdfld_dsi_dpi_set_power()
695 struct mdfld_dsi_config *dsi_config = in mdfld_dsi_dpi_mode_fixup() local
697 struct drm_display_mode *fixed_mode = dsi_config->fixed_mode; in mdfld_dsi_dpi_mode_fixup()
727 static void mipi_set_properties(struct mdfld_dsi_config *dsi_config, int pipe) in mipi_set_properties() argument
729 struct drm_device *dev = dsi_config->dev; in mipi_set_properties()
745 static void mdfld_mipi_set_video_timing(struct mdfld_dsi_config *dsi_config, in mdfld_mipi_set_video_timing() argument
748 struct drm_device *dev = dsi_config->dev; in mdfld_mipi_set_video_timing()
750 struct drm_display_mode *mode = dsi_config->mode; in mdfld_mipi_set_video_timing()
753 dsi_config->lane_count, in mdfld_mipi_set_video_timing()
754 dsi_config->bpp); in mdfld_mipi_set_video_timing()
774 static void mdfld_mipi_config(struct mdfld_dsi_config *dsi_config, int pipe) in mdfld_mipi_config() argument
776 struct drm_device *dev = dsi_config->dev; in mdfld_mipi_config()
777 int lane_count = dsi_config->lane_count; in mdfld_mipi_config()
793 mdfld_mipi_set_video_timing(dsi_config, pipe); in mdfld_mipi_config()
796 static void mdfld_set_pipe_timing(struct mdfld_dsi_config *dsi_config, int pipe) in mdfld_set_pipe_timing() argument
798 struct drm_device *dev = dsi_config->dev; in mdfld_set_pipe_timing()
799 struct drm_display_mode *mode = dsi_config->mode; in mdfld_set_pipe_timing()
823 struct mdfld_dsi_config *dsi_config = in mdfld_dsi_dpi_mode_set() local
825 struct drm_device *dev = dsi_config->dev; in mdfld_dsi_dpi_mode_set()
875 mipi_set_properties(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
876 mdfld_mipi_config(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
877 mdfld_set_pipe_timing(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
900 mdfld_dsi_dpi_controller_init(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
926 mdfld_dsi_tpo_ic_init(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
928 mdfld_dsi_brightness_init(dsi_config, pipe); in mdfld_dsi_dpi_mode_set()
944 struct mdfld_dsi_config *dsi_config; in mdfld_dsi_dpi_init() local
954 dsi_config = mdfld_dsi_get_config(dsi_connector); in mdfld_dsi_dpi_init()
967 p_funcs->drv_ic_init(dsi_config, pipe); in mdfld_dsi_dpi_init()
970 ret = mdfld_dsi_get_power_mode(dsi_config, &data, false); in mdfld_dsi_dpi_init()
993 dsi_config = mdfld_dsi_get_config(dsi_connector); in mdfld_dsi_dpi_init()