Lines Matching refs:position
619 int position, vtotal; in __intel_get_crtc_scanline() local
626 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN2; in __intel_get_crtc_scanline()
628 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN3; in __intel_get_crtc_scanline()
634 return (position + crtc->scanline_offset) % vtotal; in __intel_get_crtc_scanline()
645 int position; in i915_get_crtc_scanoutpos() local
688 position = __intel_get_crtc_scanline(intel_crtc); in i915_get_crtc_scanoutpos()
694 …position = (__raw_i915_read32(dev_priv, PIPEFRAMEPIXEL(pipe)) & PIPE_PIXEL_MASK) >> PIPE_PIXEL_SHI… in i915_get_crtc_scanoutpos()
710 if (position >= vtotal) in i915_get_crtc_scanoutpos()
711 position = vtotal - 1; in i915_get_crtc_scanoutpos()
722 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
733 in_vbl = position >= vbl_start && position < vbl_end; in i915_get_crtc_scanoutpos()
741 if (position >= vbl_start) in i915_get_crtc_scanoutpos()
742 position -= vbl_end; in i915_get_crtc_scanoutpos()
744 position += vtotal - vbl_end; in i915_get_crtc_scanoutpos()
747 *vpos = position; in i915_get_crtc_scanoutpos()
750 *vpos = position / htotal; in i915_get_crtc_scanoutpos()
751 *hpos = position - (*vpos * htotal); in i915_get_crtc_scanoutpos()
765 int position; in intel_get_crtc_scanline() local
768 position = __intel_get_crtc_scanline(crtc); in intel_get_crtc_scanline()
771 return position; in intel_get_crtc_scanline()