Lines Matching defs:mode

113 void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode)
120 if (mode == DRM_MODE_DPMS_ON) {
183 const struct drm_display_mode *mode,
192 mode->hdisplay > nv_connector->native_mode->hdisplay ||
193 mode->vdisplay > nv_connector->native_mode->vdisplay) {
194 nv_encoder->mode = *adjusted_mode;
197 nv_encoder->mode = *nv_connector->native_mode;
231 * maybe a different spread mode
281 struct drm_display_mode *mode,
292 struct drm_display_mode *output_mode = &nv_encoder->mode;
297 NV_DEBUG(drm, "Output mode on CRTC %d:\n", nv_crtc->index);
336 adjusted_mode->vdisplay == output_mode->vdisplay) /* native mode */
458 run_tmds_table(dev, dcbe, head, nv_encoder->mode.clock);
460 call_lvds_script(dev, dcbe, head, LVDS_RESET, nv_encoder->mode.clock);
477 slave_encoder, &nv_encoder->mode, &nv_encoder->mode);
486 static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
497 if (mode == DRM_MODE_DPMS_ON) {
508 static inline bool is_powersaving_dpms(int mode)
510 return mode != DRM_MODE_DPMS_ON && mode != NV_DPMS_CLEARED;
513 static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode)
521 if (nv_encoder->last_dpms == mode)
523 nv_encoder->last_dpms = mode;
525 NV_DEBUG(drm, "Setting dpms mode %d on lvds encoder (output %d)\n",
526 mode, nv_encoder->dcb->index);
528 if (was_powersaving && is_powersaving_dpms(mode))
538 if (mode == DRM_MODE_DPMS_ON) {
540 LVDS_PANEL_ON, nv_encoder->mode.clock);
549 nv04_dfp_update_backlight(encoder, mode);
550 nv04_dfp_update_fp_control(encoder, mode);
552 if (mode == DRM_MODE_DPMS_ON)
561 static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode)
566 if (nv_encoder->last_dpms == mode)
568 nv_encoder->last_dpms = mode;
570 NV_DEBUG(drm, "Setting dpms mode %d on tmds encoder (output %d)\n",
571 mode, nv_encoder->dcb->index);
573 nv04_dfp_update_backlight(encoder, mode);
574 nv04_dfp_update_fp_control(encoder, mode);