/linux-6.1.9/tools/laptop/dslm/ |
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-6.1.9/arch/mips/sgi-ip30/ |
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-6.1.9/tools/power/cpupower/utils/idle_monitor/ |
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-6.1.9/tools/perf/ |
D | builtin-kvm.c | 264 kvm_update_event_stats(struct kvm_event_stats *kvm_stats, u64 time_diff) in kvm_update_event_stats() argument 266 kvm_stats->time += time_diff; in kvm_update_event_stats() 267 update_stats(&kvm_stats->stats, time_diff); in kvm_update_event_stats() 282 u64 time_diff) in update_kvm_event() argument 285 kvm_update_event_stats(&event->total, time_diff); in update_kvm_event() 292 kvm_update_event_stats(&event->vcpu[vcpu_id], time_diff); in update_kvm_event() 350 u64 time_begin, time_diff; in handle_end_event() local 389 time_diff = sample->time - time_begin; in handle_end_event() 391 if (kvm->duration && time_diff > kvm->duration) { in handle_end_event() 398 decode, time_diff / NSEC_PER_USEC); in handle_end_event() [all …]
|
D | builtin-stat.c | 628 struct timespec time_diff; in compute_tts() local 630 diff_timespec(&time_diff, time_stop, time_start); in compute_tts() 632 tts -= time_diff.tv_sec * MSEC_PER_SEC + in compute_tts() 633 time_diff.tv_nsec / NSEC_PER_MSEC; in compute_tts()
|
/linux-6.1.9/net/netfilter/ |
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-6.1.9/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 1079 long time_diff; in smi_timeout() local 1086 time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies) in smi_timeout() 1088 smi_result = smi_event_handler(smi_info, time_diff); in smi_timeout() 2159 long time_diff; in wait_msg_processed() local 2163 time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies) in wait_msg_processed() 2165 smi_event_handler(smi_info, time_diff); in wait_msg_processed()
|
/linux-6.1.9/drivers/cpufreq/ |
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-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
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-6.1.9/drivers/scsi/arm/ |
D | acornscsi.c | 504 unsigned long time_diff; in acornscsi_dumplogline() local 520 time_diff = host->status[target][ptr].when - prev; in acornscsi_dumplogline() 522 if (time_diff == 0) in acornscsi_dumplogline() 524 else if (time_diff >= 100) in acornscsi_dumplogline() 527 printk(" %02ld", time_diff); in acornscsi_dumplogline()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
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-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
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-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_ptp.c | 2420 u64 time_diff; in ice_ptp_reset() local 2450 time_diff = ktime_get_real_ns() - ptp->reset_time; in ice_ptp_reset() 2451 ts = ns_to_timespec64(ptp->cached_phc_time + time_diff); in ice_ptp_reset()
|
/linux-6.1.9/drivers/dma/ti/ |
D | k3-udma.c | 1089 ktime_t time_diff; in udma_check_tx_completion() local 1096 time_diff = uc->tx_drain.tstamp; in udma_check_tx_completion() 1109 time_diff = ktime_sub(uc->tx_drain.tstamp, in udma_check_tx_completion() 1110 time_diff) + 1; in udma_check_tx_completion() 1119 delay = (time_diff / residue_diff) * in udma_check_tx_completion()
|
/linux-6.1.9/drivers/net/wireless/atmel/ |
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()
|