Home
last modified time | relevance | path

Searched refs:last_time (Results 26 - 50 of 106) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/base/power/
H A 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()
H A Dwakeup.c568 ws->last_time = ktime_get(); in wakeup_source_activate()
570 ws->start_prevent_time = ws->last_time; in wakeup_source_activate()
687 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate()
692 ws->last_time = now; in wakeup_source_deactivate()
855 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
856 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
1070 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats()
1086 ktime_to_ms(max_time), ktime_to_ms(ws->last_time), in print_wakeup_source_stats()
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_gpu_load.c119 int64_t cur_time, last_time = os_time_get(); in r600_gpu_load_thread() local
129 if (os_time_timeout(last_time, last_time + period_us, in r600_gpu_load_thread()
135 /*printf("Hz: %.1f\n", 1000000.0 / (cur_time - last_time));*/ in r600_gpu_load_thread()
136 last_time = cur_time; in r600_gpu_load_thread()
/third_party/mesa3d/src/gallium/auxiliary/hud/
H A Dhud_driver_query.c210 uint64_t last_time; member
235 if (info->last_time) { in query_new_value_normal()
315 if (!info->last_time) { in query_new_value()
316 info->last_time = now; in query_new_value()
320 if (info->num_results && info->last_time + gr->pane->period <= now) { in query_new_value()
339 info->last_time = now; in query_new_value()
350 if (!info->batch && info->last_time) { in free_query_info()
H A Dhud_nic.c62 uint64_t last_time; member
184 if (nic->last_time) { in query_nic_load()
185 if (nic->last_time + gr->pane->period <= now) { in query_nic_load()
222 nic->last_time = now; in query_nic_load()
236 nic->last_time = now; in query_nic_load()
H A Dhud_sensors_temp.c66 uint64_t last_time; member
166 if (sti->last_time) { in query_sti_load()
167 if (sti->last_time + gr->pane->period <= now) { in query_sti_load()
188 sti->last_time = now; in query_sti_load()
194 sti->last_time = now; in query_sti_load()
/third_party/ffmpeg/libavformat/
H A Dsapenc.c40 int64_t last_time; member
58 if (sap->last_time && sap->ann && sap->ann_fd) { in sap_write_close()
260 if (!sap->last_time || now - sap->last_time > 5000000) { in sap_write_packet()
265 sap->last_time = now; in sap_write_packet()
H A Ddhav.c52 int64_t last_time; member
316 if (dst->last_time == t) { in get_pts()
328 dst->last_time = t; in get_pts()
372 dst->last_time = AV_NOPTS_VALUE; in dhav_read_packet()
403 dst->last_time = AV_NOPTS_VALUE; in dhav_read_packet()
456 dst->last_time = AV_NOPTS_VALUE; in dhav_read_seek()
/third_party/pulseaudio/src/pulsecore/
H A Dtime-smoother_2.c65 pa_usec_t last_time; member
156 s->last_time = time_stamp; in pa_smoother_2_put()
166 iteration_time = (double)time_stamp - s->last_time; in pa_smoother_2_put()
257 s->last_time = time_stamp; in pa_smoother_2_put()
356 s->last_time = 0; in pa_smoother_2_reset()
/kernel/linux/linux-5.10/drivers/base/power/
H A Dwakeup.c602 ws->last_time = ktime_get(); in wakeup_source_activate()
604 ws->start_prevent_time = ws->last_time; in wakeup_source_activate()
721 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate()
726 ws->last_time = now; in wakeup_source_deactivate()
889 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources()
890 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources()
1101 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats()
1117 ktime_to_ms(max_time), ktime_to_ms(ws->last_time), in print_wakeup_source_stats()
/third_party/libcoap/examples/lwip/
H A Dserver-coap.c209 static coap_time_t last_time = 0; in server_coap_poll() local
217 if (last_time != time_now) { in server_coap_poll()
219 last_time = time_now; in server_coap_poll()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/include/
H A Dhi_log.h330 static hi_u32 last_time = 0; \
333 if (time <= (curr_time - last_time)) { \
335 last_time = curr_time; \
345 static hi_u32 last_time = 0; \
348 if (time <= (curr_time - last_time)) { \
353 last_time = curr_time; \
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_gpu_load.c135 int64_t cur_time, last_time = os_time_get(); in si_gpu_load_thread() local
145 if (os_time_timeout(last_time, last_time + period_us, cur_time)) in si_gpu_load_thread()
150 /*printf("Hz: %.1f\n", 1000000.0 / (cur_time - last_time));*/ in si_gpu_load_thread()
151 last_time = cur_time; in si_gpu_load_thread()
/kernel/liteos_a/testsuites/unittest/extended/liteipc/smoke/
H A Dliteipc_test_002.cpp135 struct timeval last_time; in TestServiceLoop() local
148 gettimeofday(&last_time, 0); in TestServiceLoop()
161 printf("LiteIPC cnt:%d, time used:%d sec\n", cnt, test_time.tv_sec - last_time.tv_sec); in TestServiceLoop()
/kernel/linux/linux-5.10/drivers/acpi/
H A Dbutton.c161 ktime_t last_time; member
200 * frequently with "open" missing, and "last_time" is also updated in acpi_lid_notify_state()
202 * So "last_time" is only updated after a timeout or an actual in acpi_lid_notify_state()
211 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
268 button->last_time = ktime_get(); in acpi_lid_notify_state()
470 button->last_time = ktime_get(); in acpi_button_resume()
483 button->last_time = ktime_get(); in acpi_lid_input_open()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c77 __u32 last_time; /* time when updated last_cwnd */ member
99 ca->last_time = 0; in bictcp_reset()
281 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
288 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
292 ca->last_time = tcp_jiffies32; in bictcp_update()
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_cubic.c88 u32 last_time; /* time when updated last_cwnd */ member
110 ca->last_time = 0; in bictcp_reset()
229 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
236 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
240 ca->last_time = tcp_jiffies32; in bictcp_update()
/kernel/linux/linux-6.6/drivers/acpi/
H A Dbutton.c165 ktime_t last_time; member
201 * frequently with "open" missing, and "last_time" is also updated in acpi_lid_notify_state()
203 * So "last_time" is only updated after a timeout or an actual in acpi_lid_notify_state()
212 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
269 button->last_time = ktime_get(); in acpi_lid_notify_state()
489 button->last_time = ktime_get(); in acpi_button_resume()
502 button->last_time = ktime_get(); in acpi_lid_input_open()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c77 __u32 last_time; /* time when updated last_cwnd */ member
99 ca->last_time = 0; in bictcp_reset()
275 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
282 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
286 ca->last_time = tcp_jiffies32; in bictcp_update()
/third_party/libinput/tools/
H A Dlibinput-analyze-per-slot-delta.py215 last_time = None
325 if last_time is None:
326 last_time = e.sec * 1000000 + e.usec
330 tdelta = int((t - last_time) / 1000) # ms
331 last_time = t
/kernel/linux/linux-5.10/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); in time2pixels()
96 last_time = end; in open_svg()
102 new_width = (last_time - first_time) / 5000000; in open_svg()
369 time2pixels(last_time)-time2pixels(first_time), in svg_cpu_box()
659 while (i < last_time) { in svg_time_grid()
/kernel/linux/linux-6.6/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); in time2pixels()
96 last_time = end; in open_svg()
102 new_width = (last_time - first_time) / 5000000; in open_svg()
369 time2pixels(last_time)-time2pixels(first_time), in svg_cpu_box()
659 while (i < last_time) { in svg_time_grid()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_util.c244 static struct timespec last_time = {}; in tu_dbg_log_gmem_load_store_skips() local
251 if (timespec_sub_to_nsec(&current_time, &last_time) > 1000 * 1000 * 1000) { in tu_dbg_log_gmem_load_store_skips()
252 last_time = current_time; in tu_dbg_log_gmem_load_store_skips()

Completed in 20 milliseconds

12345