Searched refs:vbl_start (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_irq.c | 558 u32 high1, high2, low, pixel, vbl_start, hsync_start, htotal; in i915_get_vblank_counter() local 566 vbl_start = mode->crtc_vblank_start; in i915_get_vblank_counter() 568 vbl_start = DIV_ROUND_UP(vbl_start, 2); in i915_get_vblank_counter() 571 vbl_start *= htotal; in i915_get_vblank_counter() 574 vbl_start -= htotal - hsync_start; in i915_get_vblank_counter() 599 return (((high1 << 8) | low) + (pixel >= vbl_start)) & 0xffffff; in i915_get_vblank_counter() 646 int vbl_start, vbl_end, hsync_start, htotal, vtotal; in i915_get_crtc_scanoutpos() local 660 vbl_start = mode->crtc_vblank_start; in i915_get_crtc_scanoutpos() 664 vbl_start = DIV_ROUND_UP(vbl_start, 2); in i915_get_crtc_scanoutpos() 697 vbl_start *= htotal; in i915_get_crtc_scanoutpos() [all …]
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_display.c | 1795 int vbl_start, vbl_end, vtotal, ret = 0; in radeon_get_crtc_scanoutpos() local 1902 vbl_start = vbl & 0x1fff; in radeon_get_crtc_scanoutpos() 1907 vbl_start = rdev->mode_info.crtcs[crtc]->base.hwmode.crtc_vdisplay; in radeon_get_crtc_scanoutpos() 1912 if ((*vpos < vbl_start) && (*vpos >= vbl_end)) in radeon_get_crtc_scanoutpos() 1922 if (in_vbl && (*vpos >= vbl_start)) { in radeon_get_crtc_scanoutpos() 1945 vbl_start = rdev->mode_info.crtcs[crtc]->base.hwmode.crtc_vdisplay; in radeon_get_crtc_scanoutpos() 1948 if (vbl_start - *vpos < vtotal / 100) { in radeon_get_crtc_scanoutpos()
|