Lines Matching refs:framedur_ns
286 int framedur_ns = vblank->framedur_ns; in drm_update_vblank_count() local
309 } else if (rc && framedur_ns) { in drm_update_vblank_count()
320 pipe, (long long)diff_ns, framedur_ns); in drm_update_vblank_count()
322 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns); in drm_update_vblank_count()
614 int linedur_ns = 0, framedur_ns = 0; in drm_calc_timestamping_constants() local
633 framedur_ns = div_u64((u64) frame_size * 1000000, dotclock); in drm_calc_timestamping_constants()
639 framedur_ns /= 2; in drm_calc_timestamping_constants()
646 vblank->framedur_ns = framedur_ns; in drm_calc_timestamping_constants()
654 crtc->base.id, dotclock, framedur_ns, linedur_ns); in drm_calc_timestamping_constants()
1477 int framedur_ns; in drm_vblank_restore() local
1491 drm_debug_enabled(DRM_UT_VBL) && !vblank->framedur_ns, in drm_vblank_restore()
1493 framedur_ns = vblank->framedur_ns; in drm_vblank_restore()
1501 if (framedur_ns) in drm_vblank_restore()
1502 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns); in drm_vblank_restore()
1507 diff, diff_ns, framedur_ns, cur_vblank - vblank->last); in drm_vblank_restore()