Lines Matching full: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()
304 int position; in i915_get_crtc_scanoutpos() local
347 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
350 * Already exiting vblank? If so, shift our position in i915_get_crtc_scanoutpos()
355 if (position >= vbl_start && scanlines < position) in i915_get_crtc_scanoutpos()
356 position = min(crtc->vmax_vblank_start + scanlines, vtotal - 1); in i915_get_crtc_scanoutpos()
359 * scanout position from Display scan line register. in i915_get_crtc_scanoutpos()
361 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
366 * scanout position. in i915_get_crtc_scanoutpos()
368 …position = (intel_de_read_fw(dev_priv, PIPEFRAMEPIXEL(pipe)) & PIPE_PIXEL_MASK) >> PIPE_PIXEL_SHIF… in i915_get_crtc_scanoutpos()
378 * the reported position from jumping backwards when the pixel in i915_get_crtc_scanoutpos()
380 * clamp the position the length of the shorter field. This in i915_get_crtc_scanoutpos()
381 * matches how the scanline counter based position works since in i915_get_crtc_scanoutpos()
384 position = min(position, vtotal - 1); in i915_get_crtc_scanoutpos()
393 * always add htotal-hsync_start to the current pixel position. in i915_get_crtc_scanoutpos()
395 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
408 * While in vblank, position will be negative in i915_get_crtc_scanoutpos()
410 * vblank, position will be positive counting in i915_get_crtc_scanoutpos()
413 if (position >= vbl_start) in i915_get_crtc_scanoutpos()
414 position -= vbl_end; in i915_get_crtc_scanoutpos()
416 position += vtotal - vbl_end; in i915_get_crtc_scanoutpos()
419 *vpos = position; in i915_get_crtc_scanoutpos()
422 *vpos = position / htotal; in i915_get_crtc_scanoutpos()
423 *hpos = position - (*vpos * htotal); in i915_get_crtc_scanoutpos()
441 int position; in intel_get_crtc_scanline() local
446 position = __intel_get_crtc_scanline(crtc); in intel_get_crtc_scanline()
451 return position; in intel_get_crtc_scanline()