Lines Matching refs:crtc

63 static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc)  in avivo_is_in_vblank()  argument
65 if (RREG32(AVIVO_D1CRTC_STATUS + crtc_offsets[crtc]) & AVIVO_D1CRTC_V_BLANK) in avivo_is_in_vblank()
71 static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc) in avivo_is_counter_moving() argument
75 pos1 = RREG32(AVIVO_D1CRTC_STATUS_POSITION + crtc_offsets[crtc]); in avivo_is_counter_moving()
76 pos2 = RREG32(AVIVO_D1CRTC_STATUS_POSITION + crtc_offsets[crtc]); in avivo_is_counter_moving()
92 void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc) in avivo_wait_for_vblank() argument
96 if (crtc >= rdev->num_crtc) in avivo_wait_for_vblank()
99 if (!(RREG32(AVIVO_D1CRTC_CONTROL + crtc_offsets[crtc]) & AVIVO_CRTC_EN)) in avivo_wait_for_vblank()
105 while (avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank()
107 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank()
112 while (!avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank()
114 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank()
326 struct drm_crtc *crtc; in rs600_pm_prepare() local
331 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in rs600_pm_prepare()
332 radeon_crtc = to_radeon_crtc(crtc); in rs600_pm_prepare()
344 struct drm_crtc *crtc; in rs600_pm_finish() local
349 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in rs600_pm_finish()
350 radeon_crtc = to_radeon_crtc(crtc); in rs600_pm_finish()
852 u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc) in rs600_get_vblank_counter() argument
854 if (crtc == 0) in rs600_get_vblank_counter()