Home
last modified time | relevance | path

Searched refs:time_diff (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/tools/laptop/dslm/
Ddslm.c73 time_t time_diff; in measure() local
94 time_diff = curr_time - last_time; in measure()
96 if (last_state == 1) active_time += time_diff; in measure()
97 else if (last_state == 0) sleep_time += time_diff; in measure()
98 else unknown_time += time_diff; in measure()
/kernel/linux/linux-5.10/arch/mips/sgi-ip30/
Dip30-setup.c88 int time_diff; in ip30_cpu_time_init() local
97 time_diff = (int)end - (int)start; in ip30_cpu_time_init()
98 mips_hpt_frequency = time_diff * 10; in ip30_cpu_time_init()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c196 unsigned long long aperf_diff, mperf_diff, time_diff, tsc_diff; in mperf_get_count_freq() local
210 time_diff = timespec_diff_us(time_start, time_end); in mperf_get_count_freq()
211 max_frequency = tsc_diff / time_diff; in mperf_get_count_freq()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-kvm.c263 kvm_update_event_stats(struct kvm_event_stats *kvm_stats, u64 time_diff) in kvm_update_event_stats() argument
265 kvm_stats->time += time_diff; in kvm_update_event_stats()
266 update_stats(&kvm_stats->stats, time_diff); in kvm_update_event_stats()
281 u64 time_diff) in update_kvm_event() argument
284 kvm_update_event_stats(&event->total, time_diff); in update_kvm_event()
291 kvm_update_event_stats(&event->vcpu[vcpu_id], time_diff); in update_kvm_event()
349 u64 time_begin, time_diff; in handle_end_event() local
388 time_diff = sample->time - time_begin; in handle_end_event()
390 if (kvm->duration && time_diff > kvm->duration) { in handle_end_event()
397 decode, time_diff / NSEC_PER_USEC); in handle_end_event()
[all …]
Dbuiltin-stat.c603 struct timespec time_diff; in compute_tts() local
605 diff_timespec(&time_diff, time_stop, time_start); in compute_tts()
607 tts -= time_diff.tv_sec * MSEC_PER_SEC + in compute_tts()
608 time_diff.tv_nsec / NSEC_PER_MSEC; in compute_tts()
/kernel/linux/linux-5.10/net/netfilter/
Dxt_IDLETIMER.c69 long time_diff = 0; in idletimer_tg_show() local
78 time_diff = ktimespec.tv_sec; in idletimer_tg_show()
81 time_diff = jiffies_to_msecs(expires - jiffies) / 1000; in idletimer_tg_show()
88 return snprintf(buf, PAGE_SIZE, "%ld\n", time_diff); in idletimer_tg_show()
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_si_intf.c1077 long time_diff; in smi_timeout() local
1084 time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies) in smi_timeout()
1086 smi_result = smi_event_handler(smi_info, time_diff); in smi_timeout()
2166 long time_diff; in wait_msg_processed() local
2170 time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies) in wait_msg_processed()
2172 smi_event_handler(smi_info, time_diff); in wait_msg_processed()
/kernel/linux/linux-5.10/drivers/cpufreq/
Dpowernv-cpufreq.c677 unsigned int time_diff = jiffies_to_msecs(jiffies) in gpstate_timer_handler() local
708 gpstates->last_sampled_time += time_diff; in gpstate_timer_handler()
709 gpstates->elapsed_time += time_diff; in gpstate_timer_handler()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D4965-rs.c259 u32 time_diff; in il4965_rs_tl_add_packet() local
287 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in il4965_rs_tl_add_packet()
288 idx = time_diff / TID_QUEUE_CELL_SPACING; in il4965_rs_tl_add_packet()
312 u32 time_diff; in il4965_rs_tl_get_load() local
326 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in il4965_rs_tl_get_load()
327 idx = time_diff / TID_QUEUE_CELL_SPACING; in il4965_rs_tl_get_load()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_offload.py1158 time_diff = end - start variable
1159 log("Time", "start:\t%s\nend:\t%s\ndiff:\t%s" % (start, end, time_diff))
1163 fail(time_diff < delay_sec, "Removal process took %s, expected %s" %
1164 (time_diff, delay_sec))
/kernel/linux/linux-5.10/drivers/scsi/arm/
Dacornscsi.c510 unsigned long time_diff; in acornscsi_dumplogline() local
526 time_diff = host->status[target][ptr].when - prev; in acornscsi_dumplogline()
528 if (time_diff == 0) in acornscsi_dumplogline()
530 else if (time_diff >= 100) in acornscsi_dumplogline()
533 printk(" %02ld", time_diff); in acornscsi_dumplogline()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c274 u32 time_diff; in rs_tl_add_packet() local
302 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_add_packet()
303 index = time_diff / TID_QUEUE_CELL_SPACING; in rs_tl_add_packet()
356 u32 time_diff; in rs_tl_get_load() local
370 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_get_load()
371 index = time_diff / TID_QUEUE_CELL_SPACING; in rs_tl_get_load()
/kernel/linux/linux-5.10/drivers/dma/ti/
Dk3-udma.c963 ktime_t time_diff; in udma_check_tx_completion() local
970 time_diff = uc->tx_drain.tstamp; in udma_check_tx_completion()
983 time_diff = ktime_sub(uc->tx_drain.tstamp, in udma_check_tx_completion()
984 time_diff) + 1; in udma_check_tx_completion()
993 delay = (time_diff / residue_diff) * in udma_check_tx_completion()
/kernel/linux/linux-5.10/drivers/net/wireless/atmel/
Datmel.c3293 unsigned long time_diff = (jiffies - priv->last_qual) / HZ; in atmel_smooth_qual() local
3294 while (time_diff--) { in atmel_smooth_qual()