Lines Matching refs:crtc
1296 struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); in dce4_program_fmt()
1347 static bool dce4_is_in_vblank(struct radeon_device *rdev, int crtc) in dce4_is_in_vblank() argument
1349 if (RREG32(EVERGREEN_CRTC_STATUS + crtc_offsets[crtc]) & EVERGREEN_CRTC_V_BLANK) in dce4_is_in_vblank()
1355 static bool dce4_is_counter_moving(struct radeon_device *rdev, int crtc) in dce4_is_counter_moving() argument
1359 pos1 = RREG32(EVERGREEN_CRTC_STATUS_POSITION + crtc_offsets[crtc]); in dce4_is_counter_moving()
1360 pos2 = RREG32(EVERGREEN_CRTC_STATUS_POSITION + crtc_offsets[crtc]); in dce4_is_counter_moving()
1376 void dce4_wait_for_vblank(struct radeon_device *rdev, int crtc) in dce4_wait_for_vblank() argument
1380 if (crtc >= rdev->num_crtc) in dce4_wait_for_vblank()
1383 if (!(RREG32(EVERGREEN_CRTC_CONTROL + crtc_offsets[crtc]) & EVERGREEN_CRTC_MASTER_EN)) in dce4_wait_for_vblank()
1389 while (dce4_is_in_vblank(rdev, crtc)) { in dce4_wait_for_vblank()
1391 if (!dce4_is_counter_moving(rdev, crtc)) in dce4_wait_for_vblank()
1396 while (!dce4_is_in_vblank(rdev, crtc)) { in dce4_wait_for_vblank()
1398 if (!dce4_is_counter_moving(rdev, crtc)) in dce4_wait_for_vblank()
1676 struct drm_crtc *crtc; in evergreen_pm_prepare() local
1681 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in evergreen_pm_prepare()
1682 radeon_crtc = to_radeon_crtc(crtc); in evergreen_pm_prepare()
1701 struct drm_crtc *crtc; in evergreen_pm_finish() local
1706 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in evergreen_pm_finish()
1707 radeon_crtc = to_radeon_crtc(crtc); in evergreen_pm_finish()
4452 u32 evergreen_get_vblank_counter(struct radeon_device *rdev, int crtc) in evergreen_get_vblank_counter() argument
4454 if (crtc >= rdev->num_crtc) in evergreen_get_vblank_counter()
4457 return RREG32(CRTC_STATUS_FRAME_COUNT + crtc_offsets[crtc]); in evergreen_get_vblank_counter()