Lines Matching defs:mode
52 const struct drm_display_mode *mode)
63 bw = mode->clock * 1000ULL; /* In Hz */
64 bw = bw * mode->hdisplay * mode->vdisplay * cpp;
65 bw = div_u64(bw, mode->htotal * mode->vtotal);
73 mode->hdisplay, mode->vdisplay,
74 mode->clock * 1000, cpp, bw);
79 mode->hdisplay, mode->vdisplay,
80 mode->clock * 1000, cpp, bw);
89 const struct drm_display_mode *mode = &cstate->mode;
93 if (mode->hdisplay % 16)
103 /* There's no pitch register -- the mode's hdisplay
106 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0])
127 const struct drm_display_mode *mode = &cstate->mode;
138 ret = clk_set_rate(priv->clk, mode->clock * 1000);
142 mode->clock * 1000, ret);
147 ppl = (mode->hdisplay / 16) - 1;
148 hsw = mode->hsync_end - mode->hsync_start - 1;
149 hfp = mode->hsync_start - mode->hdisplay - 1;
150 hbp = mode->htotal - mode->hsync_end - 1;
152 lpp = mode->vdisplay - 1;
153 vsw = mode->vsync_end - mode->vsync_start - 1;
154 vfp = mode->vsync_start - mode->vdisplay;
155 vbp = mode->vtotal - mode->vsync_end;
157 cpl = mode->hdisplay - 1;
178 if (mode->flags & DRM_MODE_FLAG_NHSYNC)
181 if (mode->flags & DRM_MODE_FLAG_NVSYNC)
237 * Detect grayscale bus format. We do not support a grayscale mode