Lines Matching defs:mode
93 crtc->mode.hdisplay,
94 crtc->mode.vdisplay, 0, 0);
147 struct drm_display_mode *mode,
164 struct drm_display_mode *mode = NULL;
180 DRM_DEBUG("add mode: %dx%d\n", width, height);
181 mode = drm_cvt_mode(connector->dev, width, height, 60,
183 if (!mode)
185 mode->type |= DRM_MODE_TYPE_PREFERRED;
186 drm_mode_probed_add(connector, mode);
194 struct drm_display_mode *mode)
203 if (!(mode->type & DRM_MODE_TYPE_PREFERRED))
205 if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF)
207 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 &&
208 mode->vdisplay <= height && mode->vdisplay >= height - 16)
211 DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay);