Searched refs:timediff (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.15/tools/power/cpupower/utils/idle_monitor/ |
D | cpuidle_sysfs.c | 23 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()
|
D | amd_fam14h_idle.c | 86 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()
|
D | mperf_monitor.c | 160 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()
|
D | cpupower-monitor.c | 285 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()
|
/Linux-v5.15/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 193 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()
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | fin_ack_lat.c | 17 static unsigned long timediff(struct timeval s, struct timeval e) in timediff() function 69 lat = timediff(start, end); in client()
|
/Linux-v5.15/arch/s390/kernel/ |
D | time.c | 611 int64_t timediff; in stp_check_leap() local 630 timediff = tod_to_ns(lsoib->nlsout - get_tod_clock()) / NSEC_PER_SEC; in stp_check_leap() 638 if (timediff < 0) { in stp_check_leap() 641 } else if (timediff < 7200) { in stp_check_leap()
|
/Linux-v5.15/drivers/mmc/host/ |
D | bcm2835.c | 285 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()
|
/Linux-v5.15/net/sched/ |
D | sch_cbs.c | 140 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument 142 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
|