Lines Matching defs:mode
160 framesize = FIELD_PREP(IMX21LCDC_LSR_XMAX, crtc->mode.hdisplay >> 4) |
161 FIELD_PREP(IMX21LCDC_LSR_YMAX, crtc->mode.vdisplay);
165 lhcr = FIELD_PREP(IMX21LCDC_LHCR_HFPORCH, crtc->mode.hsync_start - crtc->mode.hdisplay - 1) |
166 FIELD_PREP(IMX21LCDC_LHCR_HWIDTH, crtc->mode.hsync_end - crtc->mode.hsync_start - 1) |
167 FIELD_PREP(IMX21LCDC_LHCR_HBPORCH, crtc->mode.htotal - crtc->mode.hsync_end - 3);
171 lvcr = FIELD_PREP(IMX21LCDC_LVCR_VFPORCH, crtc->mode.vsync_start - crtc->mode.vdisplay) |
172 FIELD_PREP(IMX21LCDC_LVCR_VWIDTH, crtc->mode.vsync_end - crtc->mode.vsync_start) |
173 FIELD_PREP(IMX21LCDC_LVCR_VBPORCH, crtc->mode.vtotal - crtc->mode.vsync_end);
197 struct drm_display_mode *mode = &pipe->crtc.mode;
199 const int hsync_pol = (mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : 1;
200 const int vsync_pol = (mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : 1;
207 mode->clock * 1000);
278 const struct drm_display_mode *mode = &crtc_state->mode;
279 const struct drm_display_mode *old_mode = &pipe->crtc.state->mode;
281 if (mode->hdisplay < LCDC_MIN_XRES || mode->hdisplay > LCDC_MAX_XRES ||
282 mode->vdisplay < LCDC_MIN_YRES || mode->vdisplay > LCDC_MAX_YRES ||
283 mode->hdisplay % 0x10) { /* must be multiple of 16 */
284 drm_err(pipe->crtc.dev, "unsupported display mode (%u x %u)\n",
285 mode->hdisplay, mode->vdisplay);
290 old_mode->hdisplay != mode->hdisplay ||
291 old_mode->vdisplay != mode->vdisplay;
427 return dev_err_probe(dev, ret, "Cannot initialize mode configuration structure\n");