Lines Matching refs:crtc

1297 	struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc);
1348 static bool dce4_is_in_vblank(struct radeon_device *rdev, int crtc)
1350 if (RREG32(EVERGREEN_CRTC_STATUS + crtc_offsets[crtc]) & EVERGREEN_CRTC_V_BLANK)
1356 static bool dce4_is_counter_moving(struct radeon_device *rdev, int crtc)
1360 pos1 = RREG32(EVERGREEN_CRTC_STATUS_POSITION + crtc_offsets[crtc]);
1361 pos2 = RREG32(EVERGREEN_CRTC_STATUS_POSITION + crtc_offsets[crtc]);
1373 * @crtc: crtc to wait for vblank on
1375 * Wait for vblank on the requested crtc (evergreen+).
1377 void dce4_wait_for_vblank(struct radeon_device *rdev, int crtc)
1381 if (crtc >= rdev->num_crtc)
1384 if (!(RREG32(EVERGREEN_CRTC_CONTROL + crtc_offsets[crtc]) & EVERGREEN_CRTC_MASTER_EN))
1390 while (dce4_is_in_vblank(rdev, crtc)) {
1392 if (!dce4_is_counter_moving(rdev, crtc))
1397 while (!dce4_is_in_vblank(rdev, crtc)) {
1399 if (!dce4_is_counter_moving(rdev, crtc))
1409 * @crtc_id: crtc to cleanup pageflip on
1410 * @crtc_base: new address of the crtc (GPU MC address)
1441 * @crtc_id: crtc to check
1677 struct drm_crtc *crtc;
1682 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) {
1683 radeon_crtc = to_radeon_crtc(crtc);
1702 struct drm_crtc *crtc;
1707 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) {
1708 radeon_crtc = to_radeon_crtc(crtc);
1842 * 2 - whole lb (7680 * 2), other crtc must be disabled
1847 * 6 - whole lb (7680 * 2), other crtc must be disabled
2554 * Assumption is that EVERGREEN_CRTC_MASTER_EN enable for requested crtc
2555 * We go from crtc to connector and it is not relible since it
2556 * should be an opposite direction .If crtc is enable then
2557 * find the dig_fe which selects this crtc and insure that it enable.
2577 /* loop through all running dig_fe to find selected crtc */
2621 * Dig ignores crtc timing
2766 /* update crtc base addresses */
4449 u32 evergreen_get_vblank_counter(struct radeon_device *rdev, int crtc)
4451 if (crtc >= rdev->num_crtc)
4454 return RREG32(CRTC_STATUS_FRAME_COUNT + crtc_offsets[crtc]);