Lines Matching refs:amdgpu_crtc
127 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_active_displays() local
134 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_active_displays()
135 if (amdgpu_crtc->enabled) { in amdgpu_dpm_get_active_displays()
136 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
148 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vblank_time() local
154 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vblank_time()
155 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
157 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
158 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
159 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
160 (amdgpu_crtc->v_border * 2)); in amdgpu_dpm_get_vblank_time()
162 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time()
175 struct amdgpu_crtc *amdgpu_crtc; in amdgpu_dpm_get_vrefresh() local
180 amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_dpm_get_vrefresh()
181 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vrefresh()
182 vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); in amdgpu_dpm_get_vrefresh()