Home
last modified time | relevance | path

Searched refs:vbl_start (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_vblank.c72 u32 pixel, vbl_start, hsync_start, htotal; in i915_get_vblank_counter() local
91 vbl_start = mode->crtc_vblank_start; in i915_get_vblank_counter()
93 vbl_start = DIV_ROUND_UP(vbl_start, 2); in i915_get_vblank_counter()
96 vbl_start *= htotal; in i915_get_vblank_counter()
99 vbl_start -= htotal - hsync_start; in i915_get_vblank_counter()
116 return (frame + (pixel >= vbl_start)) & 0xffffff; in i915_get_vblank_counter()
265 int vbl_start, vbl_end, hsync_start, htotal, vtotal; in i915_get_crtc_scanoutpos() local
281 vbl_start = mode->crtc_vblank_start; in i915_get_crtc_scanoutpos()
285 vbl_start = DIV_ROUND_UP(vbl_start, 2); in i915_get_crtc_scanoutpos()
314 if (position >= vbl_start && scanlines < position) in i915_get_crtc_scanoutpos()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c1496 int vbl_start, vbl_end, vtotal, ret = 0; in amdgpu_display_get_crtc_scanoutpos() local
1524 vbl_start = vbl & 0x1fff; in amdgpu_display_get_crtc_scanoutpos()
1528 vbl_start = mode->crtc_vdisplay; in amdgpu_display_get_crtc_scanoutpos()
1535 *hpos = *vpos - vbl_start; in amdgpu_display_get_crtc_scanoutpos()
1549 vbl_start -= adev->mode_info.crtcs[pipe]->lb_vblank_lead_lines; in amdgpu_display_get_crtc_scanoutpos()
1552 if ((*vpos < vbl_start) && (*vpos >= vbl_end)) in amdgpu_display_get_crtc_scanoutpos()
1562 *vpos -= vbl_start; in amdgpu_display_get_crtc_scanoutpos()
1573 if (in_vbl && (*vpos >= vbl_start)) { in amdgpu_display_get_crtc_scanoutpos()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_display.c1819 int vbl_start, vbl_end, vtotal, ret = 0; in radeon_get_crtc_scanoutpos() local
1926 vbl_start = vbl & 0x1fff; in radeon_get_crtc_scanoutpos()
1931 vbl_start = mode->crtc_vdisplay; in radeon_get_crtc_scanoutpos()
1938 *hpos = *vpos - vbl_start; in radeon_get_crtc_scanoutpos()
1952 vbl_start -= rdev->mode_info.crtcs[pipe]->lb_vblank_lead_lines; in radeon_get_crtc_scanoutpos()
1955 if ((*vpos < vbl_start) && (*vpos >= vbl_end)) in radeon_get_crtc_scanoutpos()
1965 *vpos -= vbl_start; in radeon_get_crtc_scanoutpos()
1976 if (in_vbl && (*vpos >= vbl_start)) { in radeon_get_crtc_scanoutpos()