Home
last modified time | relevance | path

Searched refs:diff_ns (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/
Ddrm_vblank.c310 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count() local
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()
1478 u64 diff_ns; in drm_vblank_restore() local
1500 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); 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()
/drivers/scsi/
Dscsi_debug.c1814 u64 diff_ns = ktime_to_ns(ktime_sub(now_ts, devip->create_ts)); in resp_start_stop() local
1816 if (diff_ns >= ((u64)sdeb_tur_ms_to_ready * 1000000)) { in resp_start_stop()
7370 u64 diff_ns = 0; in resp_not_ready() local
7377 diff_ns = ktime_to_ns(ktime_sub(now_ts, devip->create_ts)); in resp_not_ready()
7378 if (diff_ns >= ((u64)sdeb_tur_ms_to_ready * 1000000)) { in resp_not_ready()
7391 if (diff_ns <= tur_nanosecs_to_ready) in resp_not_ready()
7392 diff_ns = tur_nanosecs_to_ready - diff_ns; in resp_not_ready()
7394 diff_ns = tur_nanosecs_to_ready; in resp_not_ready()
7396 do_div(diff_ns, 1000000); /* diff_ns becomes milliseconds */ in resp_not_ready()
7398 diff_ns); in resp_not_ready()