Lines Matching refs:position
729 int position, vtotal; in __intel_get_crtc_scanline() local
736 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN2; in __intel_get_crtc_scanline()
738 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN3; in __intel_get_crtc_scanline()
752 if (HAS_DDI(dev) && !position) { in __intel_get_crtc_scanline()
759 if (temp != position) { in __intel_get_crtc_scanline()
760 position = temp; in __intel_get_crtc_scanline()
770 return (position + crtc->scanline_offset) % vtotal; in __intel_get_crtc_scanline()
781 int position; in i915_get_crtc_scanoutpos() local
824 position = __intel_get_crtc_scanline(intel_crtc); in i915_get_crtc_scanoutpos()
830 …position = (__raw_i915_read32(dev_priv, PIPEFRAMEPIXEL(pipe)) & PIPE_PIXEL_MASK) >> PIPE_PIXEL_SHI… in i915_get_crtc_scanoutpos()
846 if (position >= vtotal) in i915_get_crtc_scanoutpos()
847 position = vtotal - 1; in i915_get_crtc_scanoutpos()
858 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
869 in_vbl = position >= vbl_start && position < vbl_end; in i915_get_crtc_scanoutpos()
877 if (position >= vbl_start) in i915_get_crtc_scanoutpos()
878 position -= vbl_end; in i915_get_crtc_scanoutpos()
880 position += vtotal - vbl_end; in i915_get_crtc_scanoutpos()
883 *vpos = position; in i915_get_crtc_scanoutpos()
886 *vpos = position / htotal; in i915_get_crtc_scanoutpos()
887 *hpos = position - (*vpos * htotal); in i915_get_crtc_scanoutpos()
901 int position; in intel_get_crtc_scanline() local
904 position = __intel_get_crtc_scanline(crtc); in intel_get_crtc_scanline()
907 return position; in intel_get_crtc_scanline()