Lines Matching defs:mode
51 const struct drm_display_mode *mode)
62 bw = mode->clock * 1000ULL; /* In Hz */
63 bw = bw * mode->hdisplay * mode->vdisplay * cpp;
64 bw = div_u64(bw, mode->htotal * mode->vtotal);
72 mode->hdisplay, mode->vdisplay,
73 mode->clock * 1000, cpp, bw);
78 mode->hdisplay, mode->vdisplay,
79 mode->clock * 1000, cpp, bw);
88 const struct drm_display_mode *mode = &cstate->mode;
92 if (mode->hdisplay % 16)
102 /* There's no pitch register -- the mode's hdisplay
105 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0])
126 const struct drm_display_mode *mode = &cstate->mode;
137 ret = clk_set_rate(priv->clk, mode->clock * 1000);
141 mode->clock * 1000, ret);
146 ppl = (mode->hdisplay / 16) - 1;
147 hsw = mode->hsync_end - mode->hsync_start - 1;
148 hfp = mode->hsync_start - mode->hdisplay - 1;
149 hbp = mode->htotal - mode->hsync_end - 1;
151 lpp = mode->vdisplay - 1;
152 vsw = mode->vsync_end - mode->vsync_start - 1;
153 vfp = mode->vsync_start - mode->vdisplay;
154 vbp = mode->vtotal - mode->vsync_end;
156 cpl = mode->hdisplay - 1;
177 if (mode->flags & DRM_MODE_FLAG_NHSYNC)
180 if (mode->flags & DRM_MODE_FLAG_NVSYNC)
236 * Detect grayscale bus format. We do not support a grayscale mode