Home
last modified time | relevance | path

Searched refs:timediff (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c23 static unsigned long long timediff; variable
31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent()
33 if (timediff == 0) in cpuidle_get_count_percent()
36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent()
39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent()
65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
Damd_fam14h_idle.c86 static unsigned long long timediff; variable
217 if (timediff == 0) in fam14h_get_count_percent()
220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent()
223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop()
262 if (timediff / 1000 > OVERFLOW_MS) in amd_fam14h_stop()
263 print_overflow_err((unsigned int)timediff / 1000000, in amd_fam14h_stop()
Dmperf_monitor.c160 unsigned long long timediff; in mperf_get_count_percent() local
177 timediff = max_frequency * timespec_diff_us(time_start, time_end); in mperf_get_count_percent()
178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
180 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
Dcpupower-monitor.c285 unsigned long long timediff; in fork_it() local
316 timediff = timespec_diff_us(start, end); in fork_it()
319 argv[0], timediff / (1000.0 * 1000), in fork_it()
/kernel/linux/linux-5.10/drivers/net/hamradio/
Dbaycom_ser_fdx.c193 int timediff; in ser12_rx() local
198 timediff = 1000000 + ts->tv_nsec / NSEC_PER_USEC - in ser12_rx()
200 while (timediff >= 500000) in ser12_rx()
201 timediff -= 1000000; in ser12_rx()
202 while (timediff >= bdus2) { in ser12_rx()
203 timediff -= bc->baud_us; in ser12_rx()
228 if (timediff > 0) in ser12_rx()
233 if (abs(timediff) > bdus4) in ser12_rx()
238 bc->debug_vals.cur_pllcorr = timediff; in ser12_rx()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dfin_ack_lat.c17 static unsigned long timediff(struct timeval s, struct timeval e) in timediff() function
69 lat = timediff(start, end); in client()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dtime.c622 int64_t timediff; in stp_check_leap() local
641 timediff = tod_to_ns(lsoib->nlsout - get_tod_clock()) / NSEC_PER_SEC; in stp_check_leap()
649 if (timediff < 0) { in stp_check_leap()
652 } else if (timediff < 7200) { in stp_check_leap()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dbcm2835.c285 int timediff; in bcm2835_wait_transfer_complete() local
291 timediff = 0; in bcm2835_wait_transfer_complete()
308 timediff++; in bcm2835_wait_transfer_complete()
309 if (timediff == 100000) { in bcm2835_wait_transfer_complete()
312 timediff); in bcm2835_wait_transfer_complete()
/kernel/linux/linux-5.10/net/sched/
Dsch_cbs.c139 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument
141 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()