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

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

Completed in 150 milliseconds