Lines Matching refs:amdgpu_crtc
122 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_active_displays() local
129 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_active_displays()
130 if (amdgpu_crtc->enabled) { in amdgpu_dpm_get_active_displays()
131 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
143 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vblank_time() local
149 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vblank_time()
150 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
152 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
153 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
154 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
155 (amdgpu_crtc->v_border * 2)); in amdgpu_dpm_get_vblank_time()
157 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time()
170 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vrefresh() local
175 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vrefresh()
176 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vrefresh()
177 vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); in amdgpu_dpm_get_vrefresh()