Lines Matching defs:mode

96 		 * In oneshot mode we do not send continuous updates
163 const struct drm_display_mode *mode = &cstate->mode;
177 * There's no pitch register, the mode's hdisplay
180 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) {
341 const struct drm_display_mode *mode,
404 val = mode->hdisplay << MCDE_OVLXCONF_PPL_SHIFT;
405 val |= mode->vdisplay << MCDE_OVLXCONF_LPF_SHIFT;
492 const struct drm_display_mode *mode)
551 * for BTA TE mode. Test to use TE if you have a panel
552 * that uses this mode.
571 dev_err(mcde->dev, "unknown flow mode %d\n",
579 val = (mode->hdisplay - 1) << MCDE_CHNLXCONF_PPL_SHIFT;
580 val |= (mode->vdisplay - 1) << MCDE_CHNLXCONF_LPF_SHIFT;
611 stripwidth = 0xF000 / (mode->vdisplay * 4);
615 (mode->hdisplay - 1 - stripwidth) << MCDE_SYNCHCONF_HWREQVCNT_SHIFT |
617 (mode->hdisplay - 1 - stripwidth) << MCDE_SYNCHCONF_SWINTVCNT_SHIFT;
658 * mode, and the manual says they are dedicated but identical.
838 * CMD mode with autotrig.
961 * DSI command mode line packets should be split into an even number of
973 static void mcde_setup_dpi(struct mcde *mcde, const struct drm_display_mode *mode,
982 hsw = mode->hsync_end - mode->hsync_start;
983 hfp = mode->hsync_start - mode->hdisplay;
984 hbp = mode->htotal - mode->hsync_end;
985 vsw = mode->vsync_end - mode->vsync_start;
986 vfp = mode->vsync_start - mode->vdisplay;
987 vbp = mode->vtotal - mode->vsync_end;
1029 /* This hammers us into LCD mode */
1059 if (mode->flags & DRM_MODE_FLAG_NHSYNC)
1061 if (mode->flags & DRM_MODE_FLAG_NVSYNC)
1070 static void mcde_setup_dsi(struct mcde *mcde, const struct drm_display_mode *mode,
1074 u32 formatter_ppl = mode->hdisplay; /* pixels per line */
1075 u32 formatter_lpf = mode->vdisplay; /* lines per frame */
1083 dev_info(mcde->dev, "output in %s mode, format %dbpp\n",
1112 * 128 for LCD 32bpp video mode
1113 * 48 for LCD 32bpp command mode
1114 * 128 for LCD 16bpp video mode
1115 * 64 for LCD 16bpp command mode
1119 fifo_wtrmrk = mode->hdisplay;
1126 pkt_div = mcde_dsi_get_pkt_div(mode->hdisplay, 640);
1132 /* NOTE: pkt_div is 1 for video mode */
1141 mode->hdisplay * mode->vdisplay * cpp);
1142 /* NOTE: pkt_div is 1 for video mode */
1159 const struct drm_display_mode *mode = &cstate->mode;
1177 mode->hdisplay, mode->vdisplay, &format);
1186 mcde_setup_dpi(mcde, mode, &fifo_wtrmrk);
1188 mcde_setup_dsi(mcde, mode, cpp, &fifo_wtrmrk,
1191 mcde->stride = mode->hdisplay * cpp;
1208 * Configure overlay 0 according to format and mode and take input
1213 MCDE_CHANNEL_0, mode, format, cpp);
1219 mcde_configure_channel(mcde, MCDE_CHANNEL_0, MCDE_FIFO_A, mode);
1229 lcd_freq = clk_round_rate(mcde->fifoa_clk, mode->clock * 1000);
1262 if (mode->flags & DRM_MODE_FLAG_NVSYNC)
1280 * If we're using oneshot mode we don't start the flow
1340 /* Request a TE ACK only in TE+BTA mode */
1348 * If oneshot mode is enabled, the flow will be disabled
1431 * oneshot mode, then we need to kick the flow right here.