Lines Matching refs:native_mode
365 radeon_encoder->native_mode = *preferred_mode; in radeon_get_native_mode()
367 radeon_encoder->native_mode.clock = 0; in radeon_get_native_mode()
431 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_fp_native_mode() local
433 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
434 native_mode->vdisplay != 0 && in radeon_fp_native_mode()
435 native_mode->clock != 0) { in radeon_fp_native_mode()
436 mode = drm_mode_duplicate(dev, native_mode); in radeon_fp_native_mode()
443 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
444 native_mode->vdisplay != 0) { in radeon_fp_native_mode()
452 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode()
466 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_add_common_modes() local
498 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes()
499 common_modes[i].h > native_mode->vdisplay || in radeon_add_common_modes()
500 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes()
501 common_modes[i].h == native_mode->vdisplay)) in radeon_add_common_modes()
698 (radeon_encoder->native_mode.clock == 0)) in radeon_connector_set_property()
740 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_fixup_lvds_native_mode() local
746 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode()
747 mode->vdisplay != native_mode->vdisplay) in radeon_fixup_lvds_native_mode()
748 drm_mode_copy(native_mode, mode); in radeon_fixup_lvds_native_mode()
753 if (!native_mode->clock) { in radeon_fixup_lvds_native_mode()
755 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode()
756 mode->vdisplay == native_mode->vdisplay) { in radeon_fixup_lvds_native_mode()
757 drm_mode_copy(native_mode, mode); in radeon_fixup_lvds_native_mode()
758 drm_mode_set_crtcinfo(native_mode, CRTC_INTERLACE_HALVE_V); in radeon_fixup_lvds_native_mode()
765 if (!native_mode->clock) { in radeon_fixup_lvds_native_mode()
818 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_lvds_mode_valid() local
823 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid()
824 (mode->vdisplay > native_mode->vdisplay)) in radeon_lvds_mode_valid()
829 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid()
830 (mode->vdisplay != native_mode->vdisplay)) in radeon_lvds_mode_valid()
858 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_lvds_detect() local
861 if (native_mode->hdisplay >= 320 && native_mode->vdisplay >= 240) in radeon_lvds_detect()
1652 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_dp_detect() local
1655 if (native_mode->hdisplay >= 320 && native_mode->vdisplay >= 240) in radeon_dp_detect()
1744 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_dp_mode_valid() local
1749 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_dp_mode_valid()
1750 (mode->vdisplay > native_mode->vdisplay)) in radeon_dp_mode_valid()
1755 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_dp_mode_valid()
1756 (mode->vdisplay != native_mode->vdisplay)) in radeon_dp_mode_valid()