/linux/tools/laptop/dslm/ |
A D | dslm.c | 73 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()
|
/linux/arch/mips/sgi-ip30/ |
A D | ip30-setup.c | 88 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()
|
/linux/tools/power/cpupower/utils/idle_monitor/ |
A D | mperf_monitor.c | 196 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()
|
/linux/tools/perf/ |
A D | builtin-kvm.c | 263 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 …]
|
A D | builtin-stat.c | 672 struct timespec time_diff; in compute_tts() local 674 diff_timespec(&time_diff, time_stop, time_start); in compute_tts() 676 tts -= time_diff.tv_sec * MSEC_PER_SEC + in compute_tts() 677 time_diff.tv_nsec / NSEC_PER_MSEC; in compute_tts()
|
/linux/net/netfilter/ |
A D | xt_IDLETIMER.c | 69 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 sysfs_emit(buf, "%ld\n", time_diff); in idletimer_tg_show()
|
/linux/drivers/cpufreq/ |
A D | powernv-cpufreq.c | 677 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()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
A D | 4965-rs.c | 259 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()
|
/linux/drivers/scsi/arm/ |
A D | acornscsi.c | 500 unsigned long time_diff; in acornscsi_dumplogline() local 516 time_diff = host->status[target][ptr].when - prev; in acornscsi_dumplogline() 518 if (time_diff == 0) in acornscsi_dumplogline() 520 else if (time_diff >= 100) in acornscsi_dumplogline() 523 printk(" %02ld", time_diff); in acornscsi_dumplogline()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_offload.py | 1158 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))
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | rs.c | 269 u32 time_diff; in rs_tl_add_packet() local 297 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_add_packet() 298 index = time_diff / TID_QUEUE_CELL_SPACING; in rs_tl_add_packet() 351 u32 time_diff; in rs_tl_get_load() local 365 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_get_load() 366 index = time_diff / TID_QUEUE_CELL_SPACING; in rs_tl_get_load()
|
/linux/drivers/char/ipmi/ |
A D | ipmi_si_intf.c | 1078 long time_diff; in smi_timeout() local 1085 time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies) in smi_timeout() 1087 smi_result = smi_event_handler(smi_info, time_diff); in smi_timeout()
|
/linux/drivers/dma/ti/ |
A D | k3-udma.c | 1072 ktime_t time_diff; in udma_check_tx_completion() local 1079 time_diff = uc->tx_drain.tstamp; in udma_check_tx_completion() 1092 time_diff = ktime_sub(uc->tx_drain.tstamp, in udma_check_tx_completion() 1093 time_diff) + 1; in udma_check_tx_completion() 1102 delay = (time_diff / residue_diff) * in udma_check_tx_completion()
|
/linux/drivers/net/wireless/atmel/ |
A D | atmel.c | 3292 unsigned long time_diff = (jiffies - priv->last_qual) / HZ; in atmel_smooth_qual() local 3293 while (time_diff--) { in atmel_smooth_qual()
|