Lines Matching refs:mdsi

45 	struct mipi_dsi_device *mdsi;  member
67 bool mcde_dsi_irq(struct mipi_dsi_device *mdsi) in mcde_dsi_irq() argument
73 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_irq()
150 d->mcde->mdsi = d->mdsi; in mcde_dsi_attach_to_mcde()
164 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) in mcde_dsi_attach_to_mcde()
171 struct mipi_dsi_device *mdsi) in mcde_dsi_host_attach() argument
175 if (mdsi->lanes < 1 || mdsi->lanes > 2) { in mcde_dsi_host_attach()
180 dev_info(d->dev, "attached DSI device with %d lanes\n", mdsi->lanes); in mcde_dsi_host_attach()
182 dev_info(d->dev, "format %08x, %dbpp\n", mdsi->format, in mcde_dsi_host_attach()
183 mipi_dsi_pixel_format_to_bpp(mdsi->format)); in mcde_dsi_host_attach()
184 dev_info(d->dev, "mode flags: %08lx\n", mdsi->mode_flags); in mcde_dsi_host_attach()
186 d->mdsi = mdsi; in mcde_dsi_host_attach()
194 struct mipi_dsi_device *mdsi) in mcde_dsi_host_detach() argument
198 d->mdsi = NULL; in mcde_dsi_host_detach()
200 d->mcde->mdsi = NULL; in mcde_dsi_host_detach()
390 void mcde_dsi_te_request(struct mipi_dsi_device *mdsi) in mcde_dsi_te_request() argument
395 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_te_request()
432 u8 cpp = mipi_dsi_pixel_format_to_bpp(d->mdsi->format) / 8; in mcde_dsi_setup_video_mode()
442 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) in mcde_dsi_setup_video_mode()
444 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) { in mcde_dsi_setup_video_mode()
449 switch (d->mdsi->format) { in mcde_dsi_setup_video_mode()
522 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) { in mcde_dsi_setup_video_mode()
602 bpl *= (d->mdsi->hs_rate / 8); in mcde_dsi_setup_video_mode()
607 bpl *= d->mdsi->lanes; in mcde_dsi_setup_video_mode()
610 bpl, drm_mode_vrefresh(mode), d->mdsi->hs_rate); in mcde_dsi_setup_video_mode()
616 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) { in mcde_dsi_setup_video_mode()
652 if (d->mdsi->lanes == 2 && (hsa & 0x01) && (hfp & 0x01) in mcde_dsi_setup_video_mode()
653 && (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST)) in mcde_dsi_setup_video_mode()
655 line_duration = DIV_ROUND_CLOSEST(line_duration, d->mdsi->lanes); in mcde_dsi_setup_video_mode()
671 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) { in mcde_dsi_setup_video_mode()
722 d->mdsi->lanes); in mcde_dsi_setup_video_mode()
763 if (!(d->mdsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET)) in mcde_dsi_start()
791 if (d->mdsi->lanes == 2) in mcde_dsi_start()
793 if (!(d->mdsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS)) in mcde_dsi_start()
817 if (d->mdsi->lanes == 2) in mcde_dsi_start()
826 if (d->mdsi->lanes == 2) in mcde_dsi_start()
845 if (d->mdsi->mode_flags & MIPI_DSI_MODE_LPM) in mcde_dsi_start()
867 if (d->mdsi->lp_rate) in mcde_dsi_enable()
868 lp_freq = d->mdsi->lp_rate; in mcde_dsi_enable()
871 if (d->mdsi->hs_rate) in mcde_dsi_enable()
872 hs_freq = d->mdsi->hs_rate; in mcde_dsi_enable()
918 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) { in mcde_dsi_enable()
949 if (d->mdsi->mode_flags & MIPI_DSI_MODE_LPM) in mcde_dsi_enable()
964 if (!d->mdsi) { in mcde_dsi_bridge_mode_set()
973 (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) ? "VIDEO" : "CMD" in mcde_dsi_bridge_mode_set()
1027 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) { in mcde_dsi_disable()
1087 if (d->mdsi) in mcde_dsi_bind()