<dec f='src/src/sys/external/bsd/drm2/dist/include/drm/drmP.h' l='986' type='int (*)(struct drm_device *, int, unsigned int, int *, int *, ktime_t *, ktime_t *)'/>
<offset>1024</offset>
<doc f='src/src/sys/external/bsd/drm2/dist/include/drm/drmP.h' l='956'>/**
	 * Called by vblank timestamping code.
	 *
	 * Return the current display scanout position from a crtc, and an
	 * optional accurate ktime_get timestamp of when position was measured.
	 *
	 * \param dev  DRM device.
	 * \param crtc Id of the crtc to query.
	 * \param flags Flags from the caller (DRM_CALLED_FROM_VBLIRQ or 0).
	 * \param *vpos Target location for current vertical scanout position.
	 * \param *hpos Target location for current horizontal scanout position.
	 * \param *stime Target location for timestamp taken immediately before
	 *               scanout position query. Can be NULL to skip timestamp.
	 * \param *etime Target location for timestamp taken immediately after
	 *               scanout position query. Can be NULL to skip timestamp.
	 *
	 * Returns vpos as a positive number while in active scanout area.
	 * Returns vpos as a negative number inside vblank, counting the number
	 * of scanlines to go until end of vblank, e.g., -1 means &quot;one scanline
	 * until start of active scanout / end of vblank.&quot;
	 *
	 * \return Flags, or&apos;ed together as follows:
	 *
	 * DRM_SCANOUTPOS_VALID = Query successful.
	 * DRM_SCANOUTPOS_INVBL = Inside vblank.
	 * DRM_SCANOUTPOS_ACCURATE = Returned position is accurate. A lack of
	 * this flag means that returned position may be offset by a constant
	 * but unknown small number of scanlines wrt. real scanout position.
	 *
	 */</doc>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_irq.c' l='608' u='r' c='drm_calc_vbltimestamp_from_scanoutpos'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_irq.c' l='638' u='r' c='drm_calc_vbltimestamp_from_scanoutpos'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c' l='4160' u='w' c='intel_irq_init'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c' l='895' u='w'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_drv.c' l='553' u='w'/>
