Lines Matching refs:crtc

37 static void radeon_overscan_setup(struct drm_crtc *crtc,  in radeon_overscan_setup()  argument
40 struct drm_device *dev = crtc->dev; in radeon_overscan_setup()
42 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_overscan_setup()
49 static void radeon_legacy_rmx_mode_set(struct drm_crtc *crtc, in radeon_legacy_rmx_mode_set() argument
52 struct drm_device *dev = crtc->dev; in radeon_legacy_rmx_mode_set()
54 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_legacy_rmx_mode_set()
297 static void radeon_crtc_dpms(struct drm_crtc *crtc, int mode) in radeon_crtc_dpms() argument
299 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_dpms()
300 struct drm_device *dev = crtc->dev; in radeon_crtc_dpms()
338 drm_crtc_vblank_on(crtc); in radeon_crtc_dpms()
339 radeon_crtc_load_lut(crtc); in radeon_crtc_dpms()
345 drm_crtc_vblank_off(crtc); in radeon_crtc_dpms()
360 int radeon_crtc_set_base(struct drm_crtc *crtc, int x, int y, in radeon_crtc_set_base() argument
363 return radeon_crtc_do_set_base(crtc, old_fb, x, y, 0); in radeon_crtc_set_base()
366 int radeon_crtc_set_base_atomic(struct drm_crtc *crtc, in radeon_crtc_set_base_atomic() argument
370 return radeon_crtc_do_set_base(crtc, fb, x, y, 1); in radeon_crtc_set_base_atomic()
373 int radeon_crtc_do_set_base(struct drm_crtc *crtc, in radeon_crtc_do_set_base() argument
377 struct drm_device *dev = crtc->dev; in radeon_crtc_do_set_base()
379 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_do_set_base()
393 if (!atomic && !crtc->primary->fb) { in radeon_crtc_do_set_base()
401 target_fb = crtc->primary->fb; in radeon_crtc_do_set_base()
448 if (!atomic && fb && fb != crtc->primary->fb) { in radeon_crtc_do_set_base()
558 if (!atomic && fb && fb != crtc->primary->fb) { in radeon_crtc_do_set_base()
573 static bool radeon_set_crtc_timing(struct drm_crtc *crtc, struct drm_display_mode *mode) in radeon_set_crtc_timing() argument
575 struct drm_device *dev = crtc->dev; in radeon_set_crtc_timing()
577 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_crtc_timing()
578 const struct drm_framebuffer *fb = crtc->primary->fb; in radeon_set_crtc_timing()
592 if (encoder->crtc == crtc) { in radeon_set_crtc_timing()
733 static void radeon_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) in radeon_set_pll() argument
735 struct drm_device *dev = crtc->dev; in radeon_set_pll()
737 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_pll()
786 if (encoder->crtc == crtc) { in radeon_set_pll()
1026 static bool radeon_crtc_mode_fixup(struct drm_crtc *crtc, in radeon_crtc_mode_fixup() argument
1030 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) in radeon_crtc_mode_fixup()
1035 static int radeon_crtc_mode_set(struct drm_crtc *crtc, in radeon_crtc_mode_set() argument
1040 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_mode_set()
1043 radeon_crtc_set_base(crtc, x, y, old_fb); in radeon_crtc_mode_set()
1044 radeon_set_crtc_timing(crtc, adjusted_mode); in radeon_crtc_mode_set()
1045 radeon_set_pll(crtc, adjusted_mode); in radeon_crtc_mode_set()
1046 radeon_overscan_setup(crtc, adjusted_mode); in radeon_crtc_mode_set()
1048 radeon_legacy_rmx_mode_set(crtc, adjusted_mode); in radeon_crtc_mode_set()
1057 radeon_cursor_reset(crtc); in radeon_crtc_mode_set()
1061 static void radeon_crtc_prepare(struct drm_crtc *crtc) in radeon_crtc_prepare() argument
1063 struct drm_device *dev = crtc->dev; in radeon_crtc_prepare()
1074 static void radeon_crtc_commit(struct drm_crtc *crtc) in radeon_crtc_commit() argument
1076 struct drm_device *dev = crtc->dev; in radeon_crtc_commit()
1088 static void radeon_crtc_disable(struct drm_crtc *crtc) in radeon_crtc_disable() argument
1090 radeon_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); in radeon_crtc_disable()
1091 if (crtc->primary->fb) { in radeon_crtc_disable()
1095 rbo = gem_to_radeon_bo(crtc->primary->fb->obj[0]); in radeon_crtc_disable()