Lines Matching refs:position
205 int position, vtotal; in __intel_get_crtc_scanline() local
220 position = intel_de_read_fw(dev_priv, PIPEDSL(pipe)) & PIPEDSL_LINE_MASK; in __intel_get_crtc_scanline()
234 if (HAS_DDI(dev_priv) && !position) { in __intel_get_crtc_scanline()
240 if (temp != position) { in __intel_get_crtc_scanline()
241 position = temp; in __intel_get_crtc_scanline()
251 return (position + crtc->scanline_offset) % vtotal; in __intel_get_crtc_scanline()
264 int position; in i915_get_crtc_scanoutpos() local
306 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
314 if (position >= vbl_start && scanlines < position) in i915_get_crtc_scanoutpos()
315 position = min(crtc->vmax_vblank_start + scanlines, vtotal - 1); in i915_get_crtc_scanoutpos()
320 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
327 …position = (intel_de_read_fw(dev_priv, PIPEFRAMEPIXEL(pipe)) & PIPE_PIXEL_MASK) >> PIPE_PIXEL_SHIF… in i915_get_crtc_scanoutpos()
343 position = min(position, vtotal - 1); in i915_get_crtc_scanoutpos()
354 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
371 if (position >= vbl_start) in i915_get_crtc_scanoutpos()
372 position -= vbl_end; in i915_get_crtc_scanoutpos()
374 position += vtotal - vbl_end; in i915_get_crtc_scanoutpos()
377 *vpos = position; in i915_get_crtc_scanoutpos()
380 *vpos = position / htotal; in i915_get_crtc_scanoutpos()
381 *hpos = position - (*vpos * htotal); in i915_get_crtc_scanoutpos()
399 int position; in intel_get_crtc_scanline() local
402 position = __intel_get_crtc_scanline(crtc); in intel_get_crtc_scanline()
405 return position; in intel_get_crtc_scanline()