Lines Matching refs:mtk_dsi
196 struct mtk_dsi { struct
226 static inline struct mtk_dsi *bridge_to_dsi(struct drm_bridge *b) in bridge_to_dsi() argument
228 return container_of(b, struct mtk_dsi, bridge); in bridge_to_dsi()
231 static inline struct mtk_dsi *host_to_dsi(struct mipi_dsi_host *h) in host_to_dsi()
233 return container_of(h, struct mtk_dsi, host); in host_to_dsi()
236 static void mtk_dsi_mask(struct mtk_dsi *dsi, u32 offset, u32 mask, u32 data) in mtk_dsi_mask()
243 static void mtk_dsi_phy_timconfig(struct mtk_dsi *dsi) in mtk_dsi_phy_timconfig()
291 static void mtk_dsi_enable(struct mtk_dsi *dsi) in mtk_dsi_enable()
296 static void mtk_dsi_disable(struct mtk_dsi *dsi) in mtk_dsi_disable()
301 static void mtk_dsi_reset_engine(struct mtk_dsi *dsi) in mtk_dsi_reset_engine()
307 static void mtk_dsi_reset_dphy(struct mtk_dsi *dsi) in mtk_dsi_reset_dphy()
313 static void mtk_dsi_clk_ulp_mode_enter(struct mtk_dsi *dsi) in mtk_dsi_clk_ulp_mode_enter()
319 static void mtk_dsi_clk_ulp_mode_leave(struct mtk_dsi *dsi) in mtk_dsi_clk_ulp_mode_leave()
326 static void mtk_dsi_lane0_ulp_mode_enter(struct mtk_dsi *dsi) in mtk_dsi_lane0_ulp_mode_enter()
332 static void mtk_dsi_lane0_ulp_mode_leave(struct mtk_dsi *dsi) in mtk_dsi_lane0_ulp_mode_leave()
339 static bool mtk_dsi_clk_hs_state(struct mtk_dsi *dsi) in mtk_dsi_clk_hs_state()
344 static void mtk_dsi_clk_hs_mode(struct mtk_dsi *dsi, bool enter) in mtk_dsi_clk_hs_mode()
352 static void mtk_dsi_set_mode(struct mtk_dsi *dsi) in mtk_dsi_set_mode()
368 static void mtk_dsi_set_vm_cmd(struct mtk_dsi *dsi) in mtk_dsi_set_vm_cmd()
374 static void mtk_dsi_rxtx_control(struct mtk_dsi *dsi) in mtk_dsi_rxtx_control()
394 static void mtk_dsi_ps_control(struct mtk_dsi *dsi, bool config_vact) in mtk_dsi_ps_control()
433 static void mtk_dsi_config_vdo_timing_per_frame_lp(struct mtk_dsi *dsi) in mtk_dsi_config_vdo_timing_per_frame_lp()
501 static void mtk_dsi_config_vdo_timing_per_line_lp(struct mtk_dsi *dsi) in mtk_dsi_config_vdo_timing_per_line_lp()
565 static void mtk_dsi_config_vdo_timing(struct mtk_dsi *dsi) in mtk_dsi_config_vdo_timing()
587 static void mtk_dsi_start(struct mtk_dsi *dsi) in mtk_dsi_start()
593 static void mtk_dsi_stop(struct mtk_dsi *dsi) in mtk_dsi_stop()
598 static void mtk_dsi_set_cmd_mode(struct mtk_dsi *dsi) in mtk_dsi_set_cmd_mode()
603 static void mtk_dsi_set_interrupt_enable(struct mtk_dsi *dsi) in mtk_dsi_set_interrupt_enable()
610 static void mtk_dsi_irq_data_set(struct mtk_dsi *dsi, u32 irq_bit) in mtk_dsi_irq_data_set()
615 static void mtk_dsi_irq_data_clear(struct mtk_dsi *dsi, u32 irq_bit) in mtk_dsi_irq_data_clear()
620 static s32 mtk_dsi_wait_for_irq_done(struct mtk_dsi *dsi, u32 irq_flag, in mtk_dsi_wait_for_irq_done()
641 struct mtk_dsi *dsi = dev_id; in mtk_dsi_irq()
661 static s32 mtk_dsi_switch_to_cmd_mode(struct mtk_dsi *dsi, u8 irq_flag, u32 t) in mtk_dsi_switch_to_cmd_mode()
674 static int mtk_dsi_poweron(struct mtk_dsi *dsi) in mtk_dsi_poweron()
737 static void mtk_dsi_poweroff(struct mtk_dsi *dsi) in mtk_dsi_poweroff()
771 static void mtk_dsi_lane_ready(struct mtk_dsi *dsi) in mtk_dsi_lane_ready()
786 static void mtk_output_dsi_enable(struct mtk_dsi *dsi) in mtk_output_dsi_enable()
800 static void mtk_output_dsi_disable(struct mtk_dsi *dsi) in mtk_output_dsi_disable()
811 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_attach()
822 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_mode_set()
830 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_atomic_disable()
838 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_atomic_enable()
849 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_atomic_pre_enable()
860 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_atomic_post_disable()
870 struct mtk_dsi *dsi = bridge_to_dsi(bridge); in mtk_dsi_bridge_mode_valid()
898 struct mtk_dsi *dsi = dev_get_drvdata(dev); in mtk_dsi_ddp_start()
905 struct mtk_dsi *dsi = dev_get_drvdata(dev); in mtk_dsi_ddp_stop()
910 static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi) in mtk_dsi_encoder_init()
948 struct mtk_dsi *dsi = dev_get_drvdata(dev); in mtk_dsi_encoder_index()
959 struct mtk_dsi *dsi = dev_get_drvdata(dev); in mtk_dsi_bind()
971 struct mtk_dsi *dsi = dev_get_drvdata(dev); in mtk_dsi_unbind()
984 struct mtk_dsi *dsi = host_to_dsi(host); in mtk_dsi_host_attach()
1010 struct mtk_dsi *dsi = host_to_dsi(host); in mtk_dsi_host_detach()
1017 static void mtk_dsi_wait_for_idle(struct mtk_dsi *dsi) in mtk_dsi_wait_for_idle()
1055 static void mtk_dsi_cmdq(struct mtk_dsi *dsi, const struct mipi_dsi_msg *msg) in mtk_dsi_cmdq()
1092 static ssize_t mtk_dsi_host_send_cmd(struct mtk_dsi *dsi, in mtk_dsi_host_send_cmd()
1109 struct mtk_dsi *dsi = host_to_dsi(host); in mtk_dsi_host_transfer()
1184 struct mtk_dsi *dsi; in mtk_dsi_probe()
1250 struct mtk_dsi *dsi = platform_get_drvdata(pdev); in mtk_dsi_remove()