Searched refs:last_time (Results 1 - 25 of 32) sorted by relevance

12

/linux-master/scripts/
H A Dshow_delta60 last_time = 0.0 variable
62 global last_time
75 delta = time - last_time
76 last_time = time
H A Dget_abi.pl782 my $last_time = $start_time;
801 if ($i == $next_i || $cur_time > $last_time + 1) {
813 $last_time = $cur_time;
/linux-master/tools/laptop/dslm/
H A Ddslm.c70 time_t last_time; local
84 start_time = last_time = time(0);
94 time_diff = curr_time - last_time;
101 last_time = curr_time;
/linux-master/drivers/cpufreq/
H A Dcpufreq_stats.c17 unsigned long long last_time; member in struct:cpufreq_stats
36 stats->last_time = cur_time;
45 stats->last_time = local_clock();
92 time += local_clock() - stats->last_time;
251 stats->last_time = local_clock();
284 cpufreq_stats_update(stats, stats->last_time);
/linux-master/net/ipv4/
H A Dtcp_bic.c54 u32 last_time; /* time when updated last_cwnd */ member in struct:bictcp
65 ca->last_time = 0;
86 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32)
90 ca->last_time = tcp_jiffies32;
H A Dtcp_cubic.c90 u32 last_time; /* time when updated last_cwnd */ member in struct:bictcp
222 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32)
229 if (ca->epoch_start && tcp_jiffies32 == ca->last_time)
233 ca->last_time = tcp_jiffies32;
/linux-master/drivers/base/power/
H A Dwakeup_stats.c43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0;
57 active_time = ktime_sub(ktime_get(), ws->last_time);
73 active_time = ktime_sub(ktime_get(), ws->last_time);
87 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time));
H A Dwakeup.c571 ws->last_time = ktime_get();
573 ws->start_prevent_time = ws->last_time;
690 duration = ktime_sub(now, ws->last_time);
695 ws->last_time = now;
858 ktime_to_ns(ws->last_time) >
859 ktime_to_ns(last_activity_ws->last_time))) {
1073 active_time = ktime_sub(now, ws->last_time);
1089 ktime_to_ms(max_time), ktime_to_ms(ws->last_time),
H A Dsysfs.c502 msec = ktime_to_ms(dev->power.wakeup->last_time);
/linux-master/drivers/rtc/
H A Drtc-hid-sensor-time.c27 struct rtc_time last_time; member in struct:hid_time_state
56 time_state->last_time = time_state->time_buf;
209 *tm = time_state->last_time;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c85 __u32 last_time; /* time when updated last_cwnd */ member in struct:bpf_bictcp
107 ca->last_time = 0;
280 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32)
287 if (ca->epoch_start && tcp_jiffies32 == ca->last_time)
291 ca->last_time = tcp_jiffies32;
/linux-master/tools/perf/util/
H A Dsvghelper.c26 static u64 first_time, last_time; variable
62 X = 1.0 * svg_page_width * (__time - first_time) / (last_time - first_time);
96 last_time = end;
102 new_width = (last_time - first_time) / 5000000;
369 time2pixels(last_time)-time2pixels(first_time),
659 while (i < last_time) {
H A Dthread-stack.c78 * @last_time: last timestamp
97 u64 last_time; member in struct:thread_stack
353 ts->last_time, 0, true);
1146 ts->last_time = sample->time;
/linux-master/kernel/power/
H A Dwakelock.c113 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time));
194 wl->ws->last_time = ktime_get();
/linux-master/tools/perf/
H A Dbuiltin-timechart.c64 first_time, last_time; member in struct:timechart
585 if (tchart->last_time < sample->time)
586 tchart->last_time = sample->time;
712 pwr->end_time = tchart->last_time;
721 pwr = p_state_end(tchart, cpu, tchart->last_time);
1358 p->end_time = tchart->last_time;
1375 c->end_time = tchart->last_time;
1398 p->end_time = tchart->last_time;
1416 c->end_time = tchart->last_time;
1435 p->end_time = timechart->last_time;
[all...]
H A Dbuiltin-sched.c236 u64 last_time; /* time of previous sched in/out event */ member in struct:thread_runtime
261 u64 *last_time; /* time this event was last seen per cpu */ member in struct:evsel_runtime
1898 if ((cpu >= r->ncpu) || (r->last_time == NULL)) {
1900 void *p = r->last_time;
1902 p = realloc(r->last_time, n * sizeof(u64));
1906 r->last_time = p;
1908 r->last_time[i] = (u64) 0;
1913 r->last_time[cpu] = timestamp;
1921 if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu))
1924 return r->last_time[cp
[all...]
/linux-master/drivers/acpi/
H A Dbutton.c165 ktime_t last_time; member in struct:acpi_button
201 * frequently with "open" missing, and "last_time" is also updated
203 * So "last_time" is only updated after a timeout or an actual
212 next_report = ktime_add(button->last_time,
269 button->last_time = ktime_get();
490 button->last_time = ktime_get();
511 button->last_time = ktime_get();
/linux-master/include/linux/
H A Dpm_wakeup.h32 * @last_time: Monotonic clock when the wakeup source's was touched last time.
53 ktime_t last_time; member in struct:wakeup_source
/linux-master/drivers/net/ethernet/sfc/
H A Dptp.c844 struct pps_event_time *last_time)
875 *last_time = now;
911 const struct pps_event_time *last_time)
975 /* Calculate delay from last good sync (host time) to last_time.
982 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK;
991 last_time->ts_real.tv_nsec -
1001 /* Calculate delay from NIC top of second to last_time */
1005 ptp->host_time_pps = *last_time;
1019 struct pps_event_time last_time = {}; local
1049 efx_ptp_send_times(efx, &last_time);
843 efx_ptp_send_times(struct efx_nic *efx, struct pps_event_time *last_time) argument
909 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) argument
[all...]
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dptp.c857 struct pps_event_time *last_time)
888 *last_time = now;
924 const struct pps_event_time *last_time)
988 /* Calculate delay from last good sync (host time) to last_time.
995 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK;
1004 last_time->ts_real.tv_nsec -
1014 /* Calculate delay from NIC top of second to last_time */
1018 ptp->host_time_pps = *last_time;
1032 struct pps_event_time last_time = {}; local
1062 efx_ptp_send_times(efx, &last_time);
856 efx_ptp_send_times(struct efx_nic *efx, struct pps_event_time *last_time) argument
922 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) argument
[all...]
/linux-master/drivers/thermal/
H A Dthermal_sysfs.c629 ktime_t last_time; member in struct:cooling_dev_stats
638 delta = ktime_sub(now, stats->last_time);
641 stats->last_time = now;
741 stats->last_time = ktime_get();
851 stats->last_time = ktime_get();
/linux-master/drivers/char/
H A Drandom.c1116 unsigned long last_time; member in struct:timer_rand_state
1154 delta = now - READ_ONCE(state->last_time);
1155 WRITE_ONCE(state->last_time, now);
1228 state->last_time = INITIAL_JIFFIES;
/linux-master/drivers/usb/host/
H A Dmax3421-hcd.c1249 static unsigned long last_time; local
1253 if (time_after(jiffies, last_time + 5*HZ)) {
1267 last_time = jiffies;
/linux-master/drivers/staging/rtl8192e/
H A Drtllib_rx.c356 unsigned long *last_time; local
380 last_time = &ieee->last_packet_time[tid];
387 time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) {
398 *last_time = jiffies;
/linux-master/fs/f2fs/
H A Df2fs.h1583 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */ member in struct:f2fs_sb_info
1891 sbi->last_time[type] = now;
1895 sbi->last_time[DISCARD_TIME] = now;
1896 sbi->last_time[GC_TIME] = now;
1904 return time_after(jiffies, sbi->last_time[type] + interval);
1914 delta = (sbi->last_time[type] + interval) - jiffies;

Completed in 383 milliseconds

12