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()
264 int position; in i915_get_crtc_scanoutpos() local
306 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
309 * Already exiting vblank? If so, shift our position 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()
318 * scanout position from Display scan line register. in i915_get_crtc_scanoutpos()
320 position = __intel_get_crtc_scanline(crtc); in i915_get_crtc_scanoutpos()
325 * scanout position. 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()
337 * the reported position from jumping backwards when the pixel in i915_get_crtc_scanoutpos()
339 * clamp the position the length of the shorter field. This in i915_get_crtc_scanoutpos()
340 * matches how the scanline counter based position works since in i915_get_crtc_scanoutpos()
343 position = min(position, vtotal - 1); in i915_get_crtc_scanoutpos()
352 * always add htotal-hsync_start to the current pixel position. in i915_get_crtc_scanoutpos()
354 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
366 * While in vblank, position will be negative in i915_get_crtc_scanoutpos()
368 * vblank, position will be positive counting 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()