Lines Matching defs:mode

46 	const struct drm_display_mode *mode;
98 dev_dbg(d->dev, "CMD mode no TE\n");
101 dev_dbg(d->dev, "CMD mode TE miss\n");
103 dev_err(d->dev, "CMD mode SD1 underrun\n");
105 dev_err(d->dev, "CMD mode SD2 underrun\n");
107 dev_err(d->dev, "CMD mode unwanted RD\n");
124 dev_dbg(d->dev, "VID mode VSG running\n");
126 dev_err(d->dev, "VID mode missing data\n");
128 dev_err(d->dev, "VID mode missing HSYNC\n");
130 dev_err(d->dev, "VID mode missing VSYNC\n");
132 dev_err(d->dev, "VID mode less bytes than expected between two HSYNC\n");
134 dev_err(d->dev, "VID mode less lines than expected between two VSYNC\n");
138 dev_err(d->dev, "VID mode read/write error\n");
140 dev_err(d->dev, "VID mode received packets differ from expected size\n");
142 dev_err(d->dev, "VID mode VSG in recovery mode\n");
154 * currently we just support video or command mode depending
155 * on the type of display. Video mode defaults to using the
161 * single frame on-demand updates with DRM for command mode
184 dev_info(d->dev, "mode flags: %08lx\n", mdsi->mode_flags);
429 const struct drm_display_mode *mode)
448 /* RGB header and pixel mode */
471 dev_err(d->dev, "unknown pixel mode\n");
478 * During vertical blanking: go to LP mode
487 * During EOL: go to LP mode. If this is not set, the EOL area will be
491 /* Recovery mode 1 */
497 val = mode->vdisplay << DSI_VID_VSIZE_VACT_LENGTH_SHIFT;
499 val |= (mode->vsync_start - mode->vdisplay)
502 val |= (mode->vsync_end - mode->vsync_start)
505 val |= (mode->vtotal - mode->vsync_end)
521 hfp = (mode->hsync_start - mode->hdisplay) * cpp - 6 - 2;
528 hbp = (mode->htotal - mode->hsync_end) * cpp - 4 - 6;
534 hsa = (mode->hsync_end - mode->hsync_start) * cpp - 4 - 4 - 6;
542 hbp = (mode->htotal - mode->hsync_start) * cpp - 4 - 4 - 6;
543 /* HSA is not present in this mode and set to 0 */
570 val = mode->hdisplay * cpp;
580 pclk = DIV_ROUND_UP_ULL(1000000000000, (mode->clock * 1000));
599 bpl = pclk * mode->htotal; /* (1) picoseconds per line */
610 bpl, drm_mode_vrefresh(mode), d->mdsi->hs_rate);
625 blkline_pck = bpl - (mode->hsync_end - mode->hsync_start) - 6;
669 * of the different burst mode settings.
674 * Packet size at EOL for burst mode, this is only used
681 blkeol_pck = bpl - (mode->htotal * cpp) - 6;
686 bpl, drm_mode_vrefresh(mode));
718 * FIXME: should this also be set up also for non-burst mode
755 /* No integration mode */
787 * needed, enable switch into ULPM (ultra-low power mode) on
839 /* Command mode, clear IF1 ID */
842 * If we enable low-power mode here,
919 /* Set up the video mode from the DRM mode */
920 mcde_dsi_setup_video_mode(d, d->mode);
922 /* Put IF1 into video mode */
927 /* Disable command mode on IF1 */
938 /* Enable video mode */
943 /* Command mode, clear IF1 ID */
946 * If we enable low-power mode here
959 const struct drm_display_mode *mode,
969 d->mode = mode;
971 dev_info(d->dev, "set DSI master to %dx%d %u Hz %s mode\n",
972 mode->hdisplay, mode->vdisplay, mode->clock * 1000,
983 * Wait until we get out of command mode
993 "could not get out of command mode\n");
1004 /* Wait until we get out og video mode */
1012 "could not get out of video mode\n");
1028 /* Stop video mode */
1034 /* Stop command mode */