Searched refs:diff_ns (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/ |
| H A D | mali_kbase_ccswe.c | 31 s64 diff_s, diff_ns; in kbasep_ccswe_cycle_at_no_lock() local 36 diff_ns = timestamp_ns - self->timestamp_ns; in kbasep_ccswe_cycle_at_no_lock() 37 gpu_freq = diff_ns > 0 ? self->gpu_freq : self->prev_gpu_freq; in kbasep_ccswe_cycle_at_no_lock() 39 diff_s = div_s64(diff_ns, NSEC_PER_SEC); in kbasep_ccswe_cycle_at_no_lock() 40 diff_ns -= diff_s * NSEC_PER_SEC; in kbasep_ccswe_cycle_at_no_lock() 43 + div_s64(diff_ns * gpu_freq, NSEC_PER_SEC); in kbasep_ccswe_cycle_at_no_lock()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
| H A D | mali_kbase_pm_metrics.c | 233 u64 diff_ns; in kbase_pm_get_dvfs_utilisation_calc() local 244 diff_ns = (u64)diff_ns_signed; in kbase_pm_get_dvfs_utilisation_calc() 265 if (gpu_active_counter > (diff_ns + MARGIN_NS)) { in kbase_pm_get_dvfs_utilisation_calc() 270 (unsigned long long)diff_ns); in kbase_pm_get_dvfs_utilisation_calc() 275 ns_time = (u32)(diff_ns >> KBASE_PM_TIME_SHIFT); in kbase_pm_get_dvfs_utilisation_calc()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_vblank.c | 307 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count() local 317 pipe, (long long)diff_ns, framedur_ns); in drm_update_vblank_count() 319 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns); in drm_update_vblank_count() 1482 u64 diff_ns; in drm_vblank_restore() local 1503 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore() 1505 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns); in drm_vblank_restore() 1510 diff, diff_ns, framedur_ns, cur_vblank - vblank->last); in drm_vblank_restore()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | scsi_debug.c | 1798 u64 diff_ns = ktime_to_ns(ktime_sub(now_ts, devip->create_ts)); in resp_start_stop() local 1800 if (diff_ns >= ((u64)sdeb_tur_ms_to_ready * 1000000)) { in resp_start_stop() 7209 u64 diff_ns = 0; in resp_not_ready() local 7216 diff_ns = ktime_to_ns(ktime_sub(now_ts, devip->create_ts)); in resp_not_ready() 7217 if (diff_ns >= ((u64)sdeb_tur_ms_to_ready * 1000000)) { in resp_not_ready() 7230 if (diff_ns <= tur_nanosecs_to_ready) in resp_not_ready() 7231 diff_ns = tur_nanosecs_to_ready - diff_ns; in resp_not_ready() 7233 diff_ns = tur_nanosecs_to_ready; in resp_not_ready() 7235 do_div(diff_ns, 1000000); /* diff_ns becomes milliseconds */ in resp_not_ready() 7237 diff_ns); in resp_not_ready()
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | btrfs.h | 2038 __field( u64, diff_ns ) 2048 __entry->diff_ns = __entry->end_ns - start_ns; 2056 __entry->start_ns, __entry->end_ns, __entry->diff_ns,
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_msgbuf.c | 10865 s64 diff_ns; local 10891 diff_ns = ktime_to_ns(ktime_sub(end_time, begin_time)); 10893 if (diff_ns > (1 * NSEC_PER_MSEC)) { 10895 diff_ns, dhdpcie_bus_get_pcie_inband_dw_state(dhd->bus)));
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_msgbuf.c | 10869 s64 diff_ns; local 10895 diff_ns = ktime_to_ns(ktime_sub(end_time, begin_time)); 10897 if (diff_ns > (1 * NSEC_PER_MSEC)) { 10899 diff_ns, dhdpcie_bus_get_pcie_inband_dw_state(dhd->bus)));
|