Lines Matching refs:amdgpu_crtc
46 struct amdgpu_crtc *amdgpu_crtc = container_of(timer, struct amdgpu_crtc, vblank_timer); in amdgpu_vkms_vblank_simulate() local
47 struct drm_crtc *crtc = &amdgpu_crtc->base; in amdgpu_vkms_vblank_simulate()
52 ret_overrun = hrtimer_forward_now(&amdgpu_crtc->vblank_timer, in amdgpu_vkms_vblank_simulate()
70 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_enable_vblank() local
75 hrtimer_start(&amdgpu_crtc->vblank_timer, out->period_ns, HRTIMER_MODE_REL); in amdgpu_vkms_enable_vblank()
82 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_disable_vblank() local
84 hrtimer_cancel(&amdgpu_crtc->vblank_timer); in amdgpu_vkms_disable_vblank()
96 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_get_vblank_timestamp() local
103 *vblank_time = READ_ONCE(amdgpu_crtc->vblank_timer.node.expires); in amdgpu_vkms_get_vblank_timestamp()
172 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); in amdgpu_vkms_crtc_init() local
184 amdgpu_crtc->crtc_id = drm_crtc_index(crtc); in amdgpu_vkms_crtc_init()
185 adev->mode_info.crtcs[drm_crtc_index(crtc)] = amdgpu_crtc; in amdgpu_vkms_crtc_init()
187 amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; in amdgpu_vkms_crtc_init()
188 amdgpu_crtc->encoder = NULL; in amdgpu_vkms_crtc_init()
189 amdgpu_crtc->connector = NULL; in amdgpu_vkms_crtc_init()
190 amdgpu_crtc->vsync_timer_enabled = AMDGPU_IRQ_STATE_DISABLE; in amdgpu_vkms_crtc_init()
192 hrtimer_init(&amdgpu_crtc->vblank_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in amdgpu_vkms_crtc_init()
193 amdgpu_crtc->vblank_timer.function = &amdgpu_vkms_vblank_simulate; in amdgpu_vkms_crtc_init()