Lines Matching refs:crtc
62 static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc)
64 if (RREG32(AVIVO_D1CRTC_STATUS + crtc_offsets[crtc]) & AVIVO_D1CRTC_V_BLANK)
70 static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc)
74 pos1 = RREG32(AVIVO_D1CRTC_STATUS_POSITION + crtc_offsets[crtc]);
75 pos2 = RREG32(AVIVO_D1CRTC_STATUS_POSITION + crtc_offsets[crtc]);
87 * @crtc: crtc to wait for vblank on
89 * Wait for vblank on the requested crtc (r5xx-r7xx).
91 void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc)
95 if (crtc >= rdev->num_crtc)
98 if (!(RREG32(AVIVO_D1CRTC_CONTROL + crtc_offsets[crtc]) & AVIVO_CRTC_EN))
104 while (avivo_is_in_vblank(rdev, crtc)) {
106 if (!avivo_is_counter_moving(rdev, crtc))
111 while (!avivo_is_in_vblank(rdev, crtc)) {
113 if (!avivo_is_counter_moving(rdev, crtc))
325 struct drm_crtc *crtc;
330 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) {
331 radeon_crtc = to_radeon_crtc(crtc);
343 struct drm_crtc *crtc;
348 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) {
349 radeon_crtc = to_radeon_crtc(crtc);
851 u32 rs600_get_vblank_counter(struct radeon_device *rdev, int crtc)
853 if (crtc == 0)