drm_calc_timestamping_constants(9)

drm_calc_timestamping_constants9

Calculate vblank timestamp constants

Usage

void drm_calc_timestamping_constants(struct drm_crtc * crtc, const struct drm_display_mode * mode);

Arguments

crtc

drm_crtc whose timestamp constants should be updated.

mode

display mode containing the scanout timings

Overview

Calculate and store various constants which are later needed by vblank and swap-completion timestamping, e.g, by drm_calc_vbltimestamp_from_scanoutpos. They are derived from CRTC's true scanout timing, so they take things like panel scaling or other adjustments into account.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.