Lines Matching refs:mode

69 	if (asyh->set.mode   ) head->func->mode    (head, asyh);
97 u32 mode = 0x00;
99 if (asyc->dither.mode) {
100 if (asyc->dither.mode == DITHERING_MODE_AUTO) {
102 mode = DITHERING_MODE_DYNAMIC2X2;
104 mode = asyc->dither.mode;
109 mode |= DITHERING_DEPTH_8BPC;
111 mode |= asyc->dither.depth;
115 asyh->dither.enable = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, ENABLE);
116 asyh->dither.bits = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, BITS);
117 asyh->dither.mode = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, MODE);
128 struct drm_display_mode *umode = &asyh->state.mode;
129 int mode = asyc->scaler.mode;
139 if (mode == DRM_MODE_SCALE_NONE)
142 /* Non-EDID LVDS/eDP mode. */
143 mode = DRM_MODE_SCALE_FULLSCREEN;
146 /* For the user-specified mode, we must ignore doublescan and
154 /* For the output mode, we can just use the stock helper. */
160 * ratio the same as the backend mode unless overridden by the
163 if ((asyc->scaler.underscan.mode == UNDERSCAN_ON ||
164 (asyc->scaler.underscan.mode == UNDERSCAN_AUTO &&
184 switch (mode) {
286 struct drm_display_mode *mode = &asyh->state.adjusted_mode;
287 struct nv50_head_mode *m = &asyh->mode;
290 drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V | CRTC_STEREO_DOUBLE);
299 m->h.active = mode->crtc_htotal;
300 m->h.synce = mode->crtc_hsync_end - mode->crtc_hsync_start - 1;
301 m->h.blanke = mode->crtc_hblank_end - mode->crtc_hsync_start - 1;
302 m->h.blanks = m->h.blanke + mode->crtc_hdisplay;
304 m->v.active = mode->crtc_vtotal;
305 m->v.synce = mode->crtc_vsync_end - mode->crtc_vsync_start - 1;
306 m->v.blanke = mode->crtc_vblank_end - mode->crtc_vsync_start - 1;
307 m->v.blanks = m->v.blanke + mode->crtc_vdisplay;
310 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active;
312 blankus /= mode->crtc_clock;
315 if (mode->flags & DRM_MODE_FLAG_INTERLACE) {
317 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay;
325 m->clock = mode->crtc_clock;
327 asyh->or.nhsync = !!(mode->flags & DRM_MODE_FLAG_NHSYNC);
328 asyh->or.nvsync = !!(mode->flags & DRM_MODE_FLAG_NVSYNC);
330 asyh->set.mode = true;
479 asyh->mode = armh->mode;