Lines Matching refs:mode
113 void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode) in nv04_dfp_update_fp_control() argument
120 if (mode == DRM_MODE_DPMS_ON) { in nv04_dfp_update_fp_control()
183 const struct drm_display_mode *mode, in nv04_dfp_mode_fixup() argument
191 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup()
192 mode->vdisplay > nv_connector->native_mode->vdisplay) { in nv04_dfp_mode_fixup()
193 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup()
196 nv_encoder->mode = *nv_connector->native_mode; in nv04_dfp_mode_fixup()
280 struct drm_display_mode *mode, in nv04_dfp_mode_set() argument
291 struct drm_display_mode *output_mode = &nv_encoder->mode; in nv04_dfp_mode_set()
456 run_tmds_table(dev, dcbe, head, nv_encoder->mode.clock); in nv04_dfp_commit()
458 call_lvds_script(dev, dcbe, head, LVDS_RESET, nv_encoder->mode.clock); in nv04_dfp_commit()
475 slave_encoder, &nv_encoder->mode, &nv_encoder->mode); in nv04_dfp_commit()
484 static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode) in nv04_dfp_update_backlight() argument
495 if (mode == DRM_MODE_DPMS_ON) { in nv04_dfp_update_backlight()
506 static inline bool is_powersaving_dpms(int mode) in is_powersaving_dpms() argument
508 return mode != DRM_MODE_DPMS_ON && mode != NV_DPMS_CLEARED; in is_powersaving_dpms()
511 static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode) in nv04_lvds_dpms() argument
519 if (nv_encoder->last_dpms == mode) in nv04_lvds_dpms()
521 nv_encoder->last_dpms = mode; in nv04_lvds_dpms()
524 mode, nv_encoder->dcb->index); in nv04_lvds_dpms()
526 if (was_powersaving && is_powersaving_dpms(mode)) in nv04_lvds_dpms()
536 if (mode == DRM_MODE_DPMS_ON) { in nv04_lvds_dpms()
538 LVDS_PANEL_ON, nv_encoder->mode.clock); in nv04_lvds_dpms()
547 nv04_dfp_update_backlight(encoder, mode); in nv04_lvds_dpms()
548 nv04_dfp_update_fp_control(encoder, mode); in nv04_lvds_dpms()
550 if (mode == DRM_MODE_DPMS_ON) in nv04_lvds_dpms()
559 static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode) in nv04_tmds_dpms() argument
564 if (nv_encoder->last_dpms == mode) in nv04_tmds_dpms()
566 nv_encoder->last_dpms = mode; in nv04_tmds_dpms()
569 mode, nv_encoder->dcb->index); in nv04_tmds_dpms()
571 nv04_dfp_update_backlight(encoder, mode); in nv04_tmds_dpms()
572 nv04_dfp_update_fp_control(encoder, mode); in nv04_tmds_dpms()