Home
last modified time | relevance | path

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

/linux/scripts/
H A Dshow_delta60 last_time = 0.0 variable
62 global last_time
75 delta = time - last_time
76 last_time = time
/linux/tools/laptop/dslm/
H A Ddslm.c70 time_t last_time; in measure() local
84 start_time = last_time = time(0); in measure()
94 time_diff = curr_time - last_time; in measure()
101 last_time = curr_time; in measure()
/linux/drivers/cpufreq/
H A 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()
96 time += local_clock() - stats->last_time; in show_time_in_state()
255 stats->last_time = local_clock(); in cpufreq_stats_create_table()
288 cpufreq_stats_update(stats, stats->last_time); in cpufreq_stats_record_transition()
/linux/drivers/base/power/
H A Dwakeup_stats.c44 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
58 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show()
74 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show()
88 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
H A Dsysfs.c501 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c79 __u32 last_time; /* time when updated last_cwnd */ member
101 ca->last_time = 0; in bictcp_reset()
284 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
291 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
295 ca->last_time = tcp_jiffies32; in bictcp_update()
/linux/drivers/rtc/
H A 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()
/linux/tools/perf/
H A Dbuiltin-timechart.c66 first_time, last_time;
601 if (tchart->last_time < sample->time) in process_sample_cpu_idle()
602 tchart->last_time = sample->time; in process_sample_cpu_idle()
761 pwr->end_time = tchart->last_time; in pid_begin_io_sample()
770 pwr = p_state_end(tchart, cpu, tchart->last_time); in pid_begin_io_sample()
1394 p->end_time = tchart->last_time; in determine_display_tasks()
1411 c->end_time = tchart->last_time; in determine_display_tasks()
1434 p->end_time = tchart->last_time; in determine_display_io_tasks()
1452 c->end_time = tchart->last_time; in determine_display_io_tasks()
1471 p->end_time = timechart->last_time; in write_svg_file()
64 first_time, last_time; global() member
[all...]
H A Dbuiltin-sched.c382 u64 last_time; /* time of previous sched in/out event */ in last_event()
413 u64 *last_time; /* time this event was last seen per cpu */ in add_sched_event_wakeup()
2274 if ((cpu >= r->ncpu) || (r->last_time == NULL)) { in timehist_update_runtime_stats()
2276 void *p = r->last_time; in timehist_update_runtime_stats()
2278 p = realloc(r->last_time, n * sizeof(u64)); in timehist_update_runtime_stats()
2282 r->last_time = p; in timehist_update_runtime_stats()
2284 r->last_time[i] = (u64) 0; in timehist_update_runtime_stats()
2289 r->last_time[cpu] = timestamp; in timehist_update_runtime_stats()
2297 if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu)) in timehist_update_runtime_stats()
2300 return r->last_time[cp in timehist_update_runtime_stats()
250 u64 last_time; /* time of previous sched in/out event */ global() member
280 u64 *last_time; /* time this event was last seen per cpu */ global() member
[all...]
/linux/drivers/acpi/
H A Dbutton.c204 ktime_t last_time;
240 * frequently with "open" missing, and "last_time" is also updated in acpi_lid_notify_state()
242 * So "last_time" is only updated after a timeout or an actual in acpi_lid_notify_state()
247 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
304 button->last_time = ktime_get(); in acpi_button_state_seq_show()
534 button->last_time = ktime_get(); in acpi_button_resume()
554 button->last_time = ktime_get(); in acpi_button_notify_handler()
192 ktime_t last_time; global() member
/linux/drivers/thermal/
H A Dthermal_sysfs.c593 ktime_t last_time; in update_time_in_state()
602 delta = ktime_sub(now, stats->last_time); in thermal_cooling_device_stats_update()
605 stats->last_time = now; in thermal_cooling_device_stats_update()
699 stats->last_time = ktime_get(); in reset_store()
798 stats->last_time = ktime_get(); in cooling_device_stats_setup()
585 ktime_t last_time; global() member
/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.c856 struct pps_event_time *last_time) in efx_ptp_send_times()
887 *last_time = now; in efx_ptp_send_times()
923 const struct pps_event_time *last_time) in efx_ptp_process_times()
987 /* Calculate delay from last good sync (host time) to last_time. in efx_ptp_process_times()
994 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
1003 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1013 /* Calculate delay from NIC top of second to last_time */ in efx_ptp_process_times()
1017 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1031 struct pps_event_time last_time = {}; in efx_ptp_synchronize()
1061 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
857 efx_ptp_send_times(struct efx_nic * efx,struct pps_event_time * last_time) efx_ptp_send_times() argument
924 efx_ptp_process_times(struct efx_nic * efx,MCDI_DECLARE_STRUCT_PTR (synch_buf),size_t response_length,const struct pps_event_time * last_time) efx_ptp_process_times() argument
1032 struct pps_event_time last_time = {}; efx_ptp_synchronize() local
[all...]
/linux/drivers/net/ethernet/sfc/
H A Dptp.c845 struct pps_event_time *last_time) in efx_ptp_send_times()
876 *last_time = now; in efx_ptp_send_times()
912 const struct pps_event_time *last_time, in efx_ptp_process_times()
977 /* Calculate delay from last good sync (host time) to last_time. in efx_ptp_process_times()
984 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
997 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1007 /* Calculate delay from NIC top of second to last_time */ in efx_ptp_process_times()
1011 *host_time_pps = *last_time;
1033 struct pps_event_time last_time = {}; in efx_ptp_synchronize()
1066 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
844 efx_ptp_send_times(struct efx_nic * efx,struct pps_event_time * last_time) efx_ptp_send_times() argument
911 efx_ptp_process_times(struct efx_nic * efx,MCDI_DECLARE_STRUCT_PTR (synch_buf),size_t response_length,const struct pps_event_time * last_time) efx_ptp_process_times() argument
1019 struct pps_event_time last_time = {}; efx_ptp_synchronize() local
[all...]
/linux/drivers/char/
H A Drandom.c1127 unsigned long last_time; member
1165 delta = now - READ_ONCE(state->last_time); in add_timer_randomness()
1166 WRITE_ONCE(state->last_time, now); in add_timer_randomness()
1239 state->last_time = INITIAL_JIFFIES; in rand_initialize_disk()
/linux/tools/perf/util/
H A Dthread-stack.c78 * @last_time: last timestamp
97 u64 last_time; member
353 ts->last_time, 0, true); in __thread_stack__flush()
1146 ts->last_time = sample->time; in thread_stack__process()
/linux/fs/f2fs/
H A Df2fs.h1826 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */
2192 WRITE_ONCE(sbi->last_time[type], now); in f2fs_time_over()
2196 WRITE_ONCE(sbi->last_time[DISCARD_TIME], now); in f2fs_time_to_wait()
2197 WRITE_ONCE(sbi->last_time[GC_TIME], now); in f2fs_time_to_wait()
2205 return time_after(jiffies, READ_ONCE(sbi->last_time[type]) + interval); in f2fs_time_to_wait()
2215 delta = (READ_ONCE(sbi->last_time[type]) + interval) - jiffies; in __f2fs_crc32()
5263 unsigned long last_time = jiffies + timeout;
5265 while (jiffies < last_time) {
1828 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */ global() member
5151 unsigned long last_time = jiffies + timeout; f2fs_schedule_timeout_killable() local
/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py
/linux/include/linux/
H A Dmm.h2699 int last_time;
2701 last_time = folio_xchg_last_cpupid(folio,
2703 return last_time << PAGE_ACCESS_TIME_BUCKETS;
2489 int last_time; folio_xchg_access_time() local
/linux/drivers/hid/
H A Dhid-logitech-hidpp.c173 * @last_time: last event time, used to reset remainder after inactivity
179 unsigned long long last_time; member
572 previous = counter->last_time; in hidpp_scroll_counter_handle_scroll()
573 counter->last_time = now; in hidpp_scroll_counter_handle_scroll()
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas.h2414 unsigned long last_time; member
H A Dmegaraid_sas_base.c2273 && time_after(jiffies, instance->last_time + 5 * HZ) in megasas_check_and_restore_queue_depth()
2961 instance->last_time = jiffies; in megasas_reset_timer()
7459 instance->last_time = 0; in megasas_init_ctrl_params()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.c8088 unsigned long *last_time; in is_duplicate_packet() local
8121 last_time = &entry->packet_time; in is_duplicate_packet()
8127 last_time = &priv->last_packet_time; in is_duplicate_packet()
8133 time_after(*last_time + IPW_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
8143 *last_time = jiffies; in is_duplicate_packet()
/linux/kernel/sched/
H A Dfair.c2811 int last_time, time;
2814 last_time = folio_xchg_access_time(folio, time);
2816 return (time - last_time) & PAGE_ACCESS_TIME_MASK;
2804 int last_time, time; numa_hint_fault_latency() local