Home
last modified time | relevance | path

Searched refs:last_time (Results 1 – 17 of 17) sorted by relevance

/drivers/cpufreq/
Dcpufreq_stats.c17 unsigned long long last_time; member
36 stats->last_time = cur_time; in cpufreq_stats_update()
45 stats->last_time = local_clock(); in cpufreq_stats_reset_table()
92 time += local_clock() - stats->last_time; in show_time_in_state()
252 stats->last_time = local_clock(); in cpufreq_stats_create_table()
285 cpufreq_stats_update(stats, stats->last_time); in cpufreq_stats_record_transition()
/drivers/base/power/
Dwakeup_stats.c43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show()
73 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show()
87 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
Dwakeup.c576 ws->last_time = ktime_get(); in wakeup_source_activate()
578 ws->start_prevent_time = ws->last_time; in wakeup_source_activate()
695 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate()
700 ws->last_time = now; in wakeup_source_deactivate()
867 ktime_to_ns(ws->last_time) > in pm_get_active_wakeup_sources()
868 ktime_to_ns(last_active_ws->last_time))) { in pm_get_active_wakeup_sources()
894 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
895 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
1127 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats()
1143 ktime_to_ms(max_time), ktime_to_ms(ws->last_time), in print_wakeup_source_stats()
Dsysfs.c502 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
/drivers/acpi/
Dbutton.c158 ktime_t last_time; member
205 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
262 button->last_time = ktime_get(); in acpi_lid_notify_state()
462 button->last_time = ktime_get(); in acpi_button_resume()
475 button->last_time = ktime_get(); in acpi_lid_input_open()
/drivers/rtc/
Drtc-hid-sensor-time.c27 struct rtc_time last_time; member
56 time_state->last_time = time_state->time_buf; in hid_time_proc_event()
209 *tm = time_state->last_time; in hid_rtc_read_time()
/drivers/thermal/
Dthermal_sysfs.c666 ktime_t last_time; member
675 delta = ktime_sub(now, stats->last_time); in update_time_in_state()
678 stats->last_time = now; in update_time_in_state()
749 stats->last_time = ktime_get(); in reset_store()
852 stats->last_time = ktime_get(); in cooling_device_stats_setup()
/drivers/net/ethernet/sfc/siena/
Dptp.c857 struct pps_event_time *last_time) in efx_ptp_send_times() argument
888 *last_time = now; in efx_ptp_send_times()
924 const struct pps_event_time *last_time) in efx_ptp_process_times() argument
995 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
1004 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1018 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1032 struct pps_event_time last_time = {}; in efx_ptp_synchronize() local
1062 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
1071 &last_time); in efx_ptp_synchronize()
/drivers/net/ethernet/sfc/
Dptp.c867 struct pps_event_time *last_time) in efx_ptp_send_times() argument
898 *last_time = now; in efx_ptp_send_times()
934 const struct pps_event_time *last_time) in efx_ptp_process_times() argument
1005 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
1014 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1028 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1042 struct pps_event_time last_time = {}; in efx_ptp_synchronize() local
1072 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
1081 &last_time); in efx_ptp_synchronize()
/drivers/char/
Drandom.c1096 unsigned long last_time; member
1134 delta = now - READ_ONCE(state->last_time); in add_timer_randomness()
1135 WRITE_ONCE(state->last_time, now); in add_timer_randomness()
1208 state->last_time = INITIAL_JIFFIES; in rand_initialize_disk()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c419 unsigned long *last_time; in is_duplicate_packet() local
467 last_time = &entry->packet_time[tid]; in is_duplicate_packet()
474 last_time = &ieee->last_packet_time[tid]; in is_duplicate_packet()
485 time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
495 *last_time = jiffies; in is_duplicate_packet()
/drivers/usb/host/
Dmax3421-hcd.c1258 static unsigned long last_time; in max3421_handle_irqs() local
1262 if (time_after(jiffies, last_time + 5*HZ)) { in max3421_handle_irqs()
1276 last_time = jiffies; in max3421_handle_irqs()
/drivers/staging/rtl8192e/
Drtllib_rx.c369 unsigned long *last_time; in is_duplicate_packet() local
417 last_time = &entry->packet_time[tid]; in is_duplicate_packet()
424 last_time = &ieee->last_packet_time[tid]; in is_duplicate_packet()
431 time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
441 *last_time = jiffies; in is_duplicate_packet()
/drivers/hid/
Dhid-logitech-hidpp.c174 unsigned long long last_time; member
481 previous = counter->last_time; in hidpp_scroll_counter_handle_scroll()
482 counter->last_time = now; in hidpp_scroll_counter_handle_scroll()
/drivers/scsi/megaraid/
Dmegaraid_sas.h2414 unsigned long last_time; member
Dmegaraid_sas_base.c2258 && time_after(jiffies, instance->last_time + 5 * HZ) in megasas_check_and_restore_queue_depth()
2946 instance->last_time = jiffies; in megasas_reset_timer()
7436 instance->last_time = 0; in megasas_init_ctrl_params()
/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c8124 unsigned long *last_time; in is_duplicate_packet() local
8157 last_time = &entry->packet_time; in is_duplicate_packet()
8163 last_time = &priv->last_packet_time; in is_duplicate_packet()
8169 time_after(*last_time + IPW_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
8179 *last_time = jiffies; in is_duplicate_packet()