drm_calc_timestamping_constants — calculate vblank timestamp constants
void drm_calc_timestamping_constants ( | struct drm_crtc * crtc, |
const struct drm_display_mode * mode); |
crtcdrm_crtc whose timestamp constants should be updated.
modedisplay mode containing the scanout timings
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.