Lines Matching defs:mode
68 if (asyh->set.mode ) head->func->mode (head, asyh);
96 u32 mode = 0x00;
98 if (asyc->dither.mode) {
99 if (asyc->dither.mode == DITHERING_MODE_AUTO) {
101 mode = DITHERING_MODE_DYNAMIC2X2;
103 mode = asyc->dither.mode;
108 mode |= DITHERING_DEPTH_8BPC;
110 mode |= asyc->dither.depth;
114 asyh->dither.enable = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, ENABLE);
115 asyh->dither.bits = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, BITS);
116 asyh->dither.mode = NVVAL_GET(mode, NV507D, HEAD_SET_DITHER_CONTROL, MODE);
127 struct drm_display_mode *umode = &asyh->state.mode;
128 int mode = asyc->scaler.mode;
138 if (mode == DRM_MODE_SCALE_NONE)
141 /* Non-EDID LVDS/eDP mode. */
142 mode = DRM_MODE_SCALE_FULLSCREEN;
145 /* For the user-specified mode, we must ignore doublescan and
153 /* For the output mode, we can just use the stock helper. */
159 * ratio the same as the backend mode unless overridden by the
162 if ((asyc->scaler.underscan.mode == UNDERSCAN_ON ||
163 (asyc->scaler.underscan.mode == UNDERSCAN_AUTO &&
183 switch (mode) {
285 struct drm_display_mode *mode = &asyh->state.adjusted_mode;
286 struct nv50_head_mode *m = &asyh->mode;
289 drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V | CRTC_STEREO_DOUBLE);
298 m->h.active = mode->crtc_htotal;
299 m->h.synce = mode->crtc_hsync_end - mode->crtc_hsync_start - 1;
300 m->h.blanke = mode->crtc_hblank_end - mode->crtc_hsync_start - 1;
301 m->h.blanks = m->h.blanke + mode->crtc_hdisplay;
303 m->v.active = mode->crtc_vtotal;
304 m->v.synce = mode->crtc_vsync_end - mode->crtc_vsync_start - 1;
305 m->v.blanke = mode->crtc_vblank_end - mode->crtc_vsync_start - 1;
306 m->v.blanks = m->v.blanke + mode->crtc_vdisplay;
309 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active;
311 blankus /= mode->crtc_clock;
314 if (mode->flags & DRM_MODE_FLAG_INTERLACE) {
316 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay;
324 m->clock = mode->crtc_clock;
326 asyh->or.nhsync = !!(mode->flags & DRM_MODE_FLAG_NHSYNC);
327 asyh->or.nvsync = !!(mode->flags & DRM_MODE_FLAG_NVSYNC);
329 asyh->set.mode = true;
478 asyh->mode = armh->mode;