Lines Matching refs:amdgpu_crtc
123 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_active_displays() local
130 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_active_displays()
131 if (amdgpu_crtc->enabled) { in amdgpu_dpm_get_active_displays()
132 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
144 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vblank_time() local
150 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vblank_time()
151 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
153 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
154 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
155 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
156 (amdgpu_crtc->v_border * 2)); in amdgpu_dpm_get_vblank_time()
158 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time()
171 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vrefresh() local
176 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vrefresh()
177 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vrefresh()
178 vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); in amdgpu_dpm_get_vrefresh()