Lines Matching refs:mode

58 	struct drm_display_mode *mode, *largest = NULL;
61 list_for_each_entry(mode, &connector->probed_modes, head) {
62 if (helper->mode_valid(connector, mode) != MODE_OK ||
63 (mode->flags & DRM_MODE_FLAG_INTERLACE))
66 /* Use preferred mode if there is one.. */
67 if (mode->type & DRM_MODE_TYPE_PREFERRED) {
68 NV_DEBUG(drm, "native mode from preferred\n");
69 return drm_mode_duplicate(dev, mode);
75 if (mode->hdisplay < high_w)
78 if (mode->hdisplay == high_w && mode->vdisplay < high_h)
81 if (mode->hdisplay == high_w && mode->vdisplay == high_h &&
82 drm_mode_vrefresh(mode) < high_v)
85 high_w = mode->hdisplay;
86 high_h = mode->vdisplay;
87 high_v = drm_mode_vrefresh(mode);
88 largest = mode;
91 NV_DEBUG(drm, "native mode from largest: %dx%d@%d\n",
106 *val = asyc->scaler.mode;
108 *val = asyc->scaler.underscan.mode;
114 *val = asyc->dither.mode;
145 * to the native mode regardless of this setting.
168 if (asyc->scaler.mode != val) {
169 asyc->scaler.mode = val;
174 if (asyc->scaler.underscan.mode != val) {
175 asyc->scaler.underscan.mode = val;
192 if (asyc->dither.mode != val) {
193 asyc->dither.mode = val;
198 if (asyc->dither.mode != val) {
264 asyc->dither.mode = DITHERING_MODE_AUTO;
266 asyc->scaler.mode = DRM_MODE_SCALE_NONE;
267 asyc->scaler.underscan.mode = UNDERSCAN_OFF;
275 asyc->scaler.mode = DRM_MODE_SCALE_FULLSCREEN;
326 /* Scaling mode property. */
337 armc->scaler.mode);
350 armc->dither.mode);
712 * the nouveau decides an entry in the VBIOS FP mode table is
725 * native mode and exit.
806 nv_connector->scaling_mode = asyc->scaler.mode;
807 nv_connector->dithering_mode = asyc->dither.mode;
811 &connector->encoder->crtc->mode,
851 struct moderec *mode = &scaler_modes[0];
857 while (mode->hdisplay) {
858 if (mode->hdisplay <= native->hdisplay &&
859 mode->vdisplay <= native->vdisplay &&
860 (mode->hdisplay != native->hdisplay ||
861 mode->vdisplay != native->vdisplay)) {
862 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay,
872 mode++;
885 struct drm_display_mode *mode = nv_connector->native_mode;
920 duallink = mode->clock >= bios->fp.duallink_transition_clk;
969 /* destroy the native mode, the attached monitor could have changed.
982 struct drm_display_mode mode;
984 nouveau_bios_fp_mode(dev, &mode);
985 nv_connector->native_mode = drm_mode_duplicate(dev, &mode);
994 /* Find the native mode if this is a digital panel, if we didn't
995 * find any modes through DDC previously add the native mode to
1001 struct drm_display_mode *mode;
1003 mode = drm_mode_duplicate(dev, nv_connector->native_mode);
1004 drm_mode_probed_add(connector, mode);
1009 * "native" mode as some VBIOS tables require us to use the
1075 struct drm_display_mode *mode)
1080 unsigned int min_clock = 25000, max_clock = min_clock, clock = mode->clock;
1085 (mode->hdisplay > nv_connector->native_mode->hdisplay ||
1086 mode->vdisplay > nv_connector->native_mode->vdisplay))
1101 return get_slave_funcs(encoder)->mode_valid(encoder, mode);
1103 return nv50_dp_mode_valid(nv_encoder, mode, NULL);
1109 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) == DRM_MODE_FLAG_3D_FRAME_PACKING)
1444 /* Default scaling mode */