Lines Matching refs:mdsi

44 	struct mipi_dsi_device *mdsi;
66 bool mcde_dsi_irq(struct mipi_dsi_device *mdsi)
72 d = host_to_mcde_dsi(mdsi->host);
149 d->mcde->mdsi = d->mdsi;
163 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO)
170 struct mipi_dsi_device *mdsi)
174 if (mdsi->lanes < 1 || mdsi->lanes > 2) {
179 dev_info(d->dev, "attached DSI device with %d lanes\n", mdsi->lanes);
181 dev_info(d->dev, "format %08x, %dbpp\n", mdsi->format,
182 mipi_dsi_pixel_format_to_bpp(mdsi->format));
183 dev_info(d->dev, "mode flags: %08lx\n", mdsi->mode_flags);
185 d->mdsi = mdsi;
193 struct mipi_dsi_device *mdsi)
197 d->mdsi = NULL;
199 d->mcde->mdsi = NULL;
389 void mcde_dsi_te_request(struct mipi_dsi_device *mdsi)
394 d = host_to_mcde_dsi(mdsi->host);
431 u8 cpp = mipi_dsi_pixel_format_to_bpp(d->mdsi->format) / 8;
441 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST)
443 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) {
448 switch (d->mdsi->format) {
521 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) {
601 bpl *= (d->mdsi->hs_rate / 8);
606 bpl *= d->mdsi->lanes;
609 bpl, drm_mode_vrefresh(mode), d->mdsi->hs_rate);
615 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) {
651 if (d->mdsi->lanes == 2 && (hsa & 0x01) && (hfp & 0x01)
652 && (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST))
654 line_duration = DIV_ROUND_CLOSEST(line_duration, d->mdsi->lanes);
670 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) {
721 d->mdsi->lanes);
762 if (!(d->mdsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET))
790 if (d->mdsi->lanes == 2)
792 if (!(d->mdsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS))
816 if (d->mdsi->lanes == 2)
825 if (d->mdsi->lanes == 2)
844 if (d->mdsi->mode_flags & MIPI_DSI_MODE_LPM)
866 if (d->mdsi->lp_rate)
867 lp_freq = d->mdsi->lp_rate;
870 if (d->mdsi->hs_rate)
871 hs_freq = d->mdsi->hs_rate;
917 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) {
948 if (d->mdsi->mode_flags & MIPI_DSI_MODE_LPM)
963 if (!d->mdsi) {
972 (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) ? "VIDEO" : "CMD"
1026 if (d->mdsi->mode_flags & MIPI_DSI_MODE_VIDEO) {
1087 if (d->mdsi)