Lines Matching defs:mdsi

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