Lines Matching defs:mode
96 * Enumerate them here to check whether the mode is supported.
243 static struct lt9611uxc_mode *lt9611uxc_find_mode(const struct drm_display_mode *mode)
248 if (lt9611uxc_modes[i].hdisplay == mode->hdisplay &&
249 lt9611uxc_modes[i].vdisplay == mode->vdisplay &&
250 lt9611uxc_modes[i].vrefresh == drm_mode_vrefresh(mode)) {
316 struct drm_display_mode *mode)
318 struct lt9611uxc_mode *lt9611uxc_mode = lt9611uxc_find_mode(mode);
379 const struct drm_display_mode *mode)
383 lt9611uxc_mode = lt9611uxc_find_mode(mode);
389 const struct drm_display_mode *mode)
394 h_total = mode->htotal;
395 v_total = mode->vtotal;
397 hactive = mode->hdisplay;
398 hsync_len = mode->hsync_end - mode->hsync_start;
399 hfront_porch = mode->hsync_start - mode->hdisplay;
401 vactive = mode->vdisplay;
402 vsync_len = mode->vsync_end - mode->vsync_start;
403 vfront_porch = mode->vsync_start - mode->vdisplay;
430 const struct drm_display_mode *mode,
436 lt9611uxc_video_setup(lt9611uxc, mode);