Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/drivers/md/bcache/
A Dutil.c165 uint64_t now, duration, last; in bch_time_stats_update() local
169 now = local_clock(); in bch_time_stats_update()
170 duration = time_after64(now, start_time) in bch_time_stats_update()
171 ? now - start_time : 0; in bch_time_stats_update()
172 last = time_after64(now, stats->last) in bch_time_stats_update()
173 ? now - stats->last : 0; in bch_time_stats_update()
188 stats->last = now ?: 1; in bch_time_stats_update()
203 uint64_t now = local_clock(); in bch_next_delay() local
214 d->next = now + NSEC_PER_SEC * 5LLU / 2LLU; in bch_next_delay()
217 d->next = now - NSEC_PER_SEC * 2; in bch_next_delay()
[all …]
/drivers/block/drbd/
A Ddrbd_debugfs.c125 seq_print_one_request(m, req, now); in seq_print_minor_vnr_req()
211 jiffies_to_msecs(now - start_jif), in seq_print_device_bitmap_io()
248 unsigned long now) in seq_print_peer_request() argument
303 unsigned long now) in seq_print_resource_transfer_log_summary() argument
501 unsigned long now) in seq_print_one_timing_detail() argument
576 unsigned long now = jiffies; in connection_oldest_requests_show() local
585 seq_print_minor_vnr_req(m, r1, now); in connection_oldest_requests_show()
589 seq_print_minor_vnr_req(m, r1, now); in connection_oldest_requests_show()
694 unsigned long now = jiffies; in device_oldest_requests_show() local
710 seq_print_one_request(m, r1, now); in device_oldest_requests_show()
[all …]
A Ddrbd_req.c1630 unsigned long now, unsigned long ent, in net_timeout_reached() argument
1676 connection->send.last_sent_barrier_jif, now, in net_timeout_reached()
1709 unsigned long now; in request_timer_fn() local
1732 now = jiffies; in request_timer_fn()
1733 nt = now + et; in request_timer_fn()
1768 : req_read ? req_read->pre_submit_jif : now; in request_timer_fn()
1773 if (dt && oldest_submit_jif != now && in request_timer_fn()
1774 time_after(now, oldest_submit_jif + dt) && in request_timer_fn()
1783 ? req_peer->pre_send_jif + ent : now + et; in request_timer_fn()
1784 dt = (dt && oldest_submit_jif != now && time_before(now, oldest_submit_jif + dt)) in request_timer_fn()
[all …]
/drivers/rtc/
A Dinterface.c215 struct rtc_time before, now; in __rtc_read_alarm() local
413 time64_t now, scheduled; in __rtc_set_alarm() local
428 if (scheduled <= now) in __rtc_set_alarm()
497 struct rtc_time now; in rtc_initialize_alarm() local
587 ktime_t now, onesec; in rtc_update_irq_enable() local
807 ktime_t now; in rtc_timer_enqueue() local
815 now = rtc_tm_to_ktime(tm); in rtc_timer_enqueue()
819 if (next->expires >= now) in rtc_timer_enqueue()
905 ktime_t now; in rtc_timer_do_work() local
919 now = rtc_tm_to_ktime(tm); in rtc_timer_do_work()
[all …]
A Drtc-digicolor.c94 unsigned long now; in dc_rtc_read_time() local
97 ret = dc_rtc_read(rtc, &now); in dc_rtc_read_time()
100 rtc_time64_to_tm(now, tm); in dc_rtc_read_time()
116 unsigned long now; in dc_rtc_read_alarm() local
123 ret = dc_rtc_read(rtc, &now); in dc_rtc_read_alarm()
127 alarm->pending = alarm_reg + reference > now; in dc_rtc_read_alarm()
A Drtc-brcmstb-waketimer.c77 unsigned int now; in brcmstb_waketmr_set_alarm() local
85 now = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); in brcmstb_waketmr_set_alarm()
87 while ((int)(secs - now) <= 0 && in brcmstb_waketmr_set_alarm()
89 secs = now + 1; in brcmstb_waketmr_set_alarm()
91 now = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); in brcmstb_waketmr_set_alarm()
190 struct wktmr_time now; in brcmstb_waketmr_gettime() local
192 wktmr_read(timer, &now); in brcmstb_waketmr_gettime()
194 rtc_time64_to_tm(now.sec, tm); in brcmstb_waketmr_gettime()
/drivers/net/wireless/silabs/wfx/
A Dfwio.c149 ktime_t now, start; in wait_ncp_status() local
158 now = ktime_get(); in wait_ncp_status()
161 if (ktime_after(now, ktime_add_ms(start, DCA_TIMEOUT))) in wait_ncp_status()
164 if (ktime_compare(now, start)) in wait_ncp_status()
175 ktime_t now, start; in upload_firmware() local
185 now = ktime_get(); in upload_firmware()
188 if (ktime_after(now, ktime_add_ms(start, DCA_TIMEOUT))) in upload_firmware()
194 if (ktime_compare(now, start)) in upload_firmware()
323 ktime_t now, start; in wfx_init_device() local
367 now = ktime_get(); in wfx_init_device()
[all …]
/drivers/pmdomain/
A Dgovernor.c146 if (next_wakeup != KTIME_MAX && !ktime_before(next_wakeup, now)) in update_domain_next_wakeup()
155 if (next_wakeup != KTIME_MAX && !ktime_before(next_wakeup, now)) in update_domain_next_wakeup()
164 unsigned int state, ktime_t now) in next_wakeup_allows_state() argument
172 idle_time_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in next_wakeup_allows_state()
270 static bool _default_power_down_ok(struct dev_pm_domain *pd, ktime_t now) in _default_power_down_ok() argument
283 update_domain_next_wakeup(genpd, now); in _default_power_down_ok()
287 if (next_wakeup_allows_state(genpd, state_idx, now)) { in _default_power_down_ok()
352 ktime_t now = ktime_get(); in cpu_power_down_ok() local
359 if (!_default_power_down_ok(pd, now)) in cpu_power_down_ok()
390 idle_duration_ns = ktime_to_ns(ktime_sub(domain_wakeup, now)); in cpu_power_down_ok()
[all …]
/drivers/clk/rockchip/
A Dclk-half-divider.c13 static bool _is_best_half_div(unsigned long rate, unsigned long now, in _is_best_half_div() argument
17 return abs(rate - now) < abs(rate - best); in _is_best_half_div()
19 return now <= rate && now > best; in _is_best_half_div()
40 unsigned long parent_rate, best = 0, now, maxdiv; in clk_half_divider_bestdiv() local
77 now = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), in clk_half_divider_bestdiv()
80 if (_is_best_half_div(rate, now, best, flags)) { in clk_half_divider_bestdiv()
82 best = now; in clk_half_divider_bestdiv()
/drivers/thermal/
A Dthermal_debugfs.c435 ktime_t now = ktime_get(); in thermal_debug_cdev_state_update() local
438 cdev_dbg->timestamp = now; in thermal_debug_cdev_state_update()
557 ktime_t now) in thermal_debugfs_tz_event_alloc() argument
567 tze->timestamp = now; in thermal_debugfs_tz_event_alloc()
584 ktime_t now = ktime_get(); in thermal_debug_tz_trip_up() local
630 tze = thermal_debugfs_tz_event_alloc(tz, now); in thermal_debug_tz_trip_up()
656 trip_stats->timestamp = now; in thermal_debug_tz_trip_up()
677 ktime_t now = ktime_get(); in thermal_debug_tz_trip_down() local
714 tz_episode_close_trip(tze, trip_id, now); in thermal_debug_tz_trip_down()
937 ktime_t now = ktime_get(); in thermal_debug_tz_resume() local
[all …]
/drivers/net/wireguard/
A Dratelimiter.c57 const u64 now = ktime_get_coarse_boottime_ns(); in wg_ratelimiter_gc_entries() local
66 now - entry->last_time_ns > NSEC_PER_SEC) in wg_ratelimiter_gc_entries()
72 now - entry->last_time_ns > NSEC_PER_SEC) in wg_ratelimiter_gc_entries()
113 u64 now, tokens; in wg_ratelimiter_allow() local
121 now = ktime_get_coarse_boottime_ns(); in wg_ratelimiter_allow()
123 entry->tokens + now - in wg_ratelimiter_allow()
125 entry->last_time_ns = now; in wg_ratelimiter_allow()
/drivers/devfreq/event/
A Drockchip-dfi.c294 const struct dmc_count *now, in rockchip_ddr_perf_counters_add() argument
306 (u32)(now->c[i].access - last->c[i].access); in rockchip_ddr_perf_counters_add()
424 struct dmc_count total, now; in rockchip_ddr_perf_event_get_count() local
429 rockchip_dfi_read_counters(dfi, &now); in rockchip_ddr_perf_event_get_count()
483 u64 now; in rockchip_ddr_perf_event_update() local
489 now = rockchip_ddr_perf_event_get_count(event); in rockchip_ddr_perf_event_update()
491 local64_add(now - prev, &event->count); in rockchip_ddr_perf_event_update()
498 local64_set(&event->hw.prev_count, now); in rockchip_ddr_perf_event_start()
539 struct dmc_count now, total; in rockchip_dfi_timer() local
541 rockchip_dfi_read_counters(dfi, &now); in rockchip_dfi_timer()
[all …]
/drivers/gpu/drm/
A Ddrm_vblank.c1027 u64 seq, ktime_t now) in send_vblank_event() argument
1034 tv = ktime_to_timespec64(now); in send_vblank_event()
1130 ktime_t now; in drm_crtc_send_vblank_event() local
1137 now = ktime_get(); in drm_crtc_send_vblank_event()
1345 ktime_t now; in drm_crtc_vblank_off() local
1614 ktime_t now; in drm_queue_vblank_event() local
1715 ktime_t now; in drm_wait_vblank_reply() local
1724 ts = ktime_to_timespec64(now); in drm_wait_vblank_reply()
1881 ktime_t now; in drm_handle_vblank_events() local
2013 ktime_t now; in drm_crtc_get_sequence_ioctl() local
[all …]
/drivers/net/ovpn/
A Dpeer.c47 time64_t now = ktime_get_real_seconds(); in ovpn_peer_keepalive_set() local
54 WRITE_ONCE(peer->last_sent, now); in ovpn_peer_keepalive_set()
58 WRITE_ONCE(peer->last_recv, now); in ovpn_peer_keepalive_set()
1209 time64_t now, in ovpn_peer_keepalive_work_single() argument
1229 if (now < last_recv + timeout) { in ovpn_peer_keepalive_work_single()
1252 if (now < last_sent + interval) { in ovpn_peer_keepalive_work_single()
1259 next_run2 = now + interval; in ovpn_peer_keepalive_work_single()
1279 time64_t now, in ovpn_peer_keepalive_work_mp() argument
1306 time64_t now, in ovpn_peer_keepalive_work_p2p() argument
1359 next_run, now, next_run - now); in ovpn_peer_keepalive_work()
[all …]
/drivers/clocksource/
A Dtimer-goldfish.c75 u64 now; in goldfish_timer_next_event() local
77 now = goldfish_timer_read(&timerdrv->cs); in goldfish_timer_next_event()
79 now += delta; in goldfish_timer_next_event()
81 gf_iowrite32(upper_32_bits(now), base + TIMER_ALARM_HIGH); in goldfish_timer_next_event()
82 gf_iowrite32(lower_32_bits(now), base + TIMER_ALARM_LOW); in goldfish_timer_next_event()
/drivers/base/power/
A Dwakeup.c651 ktime_t now) {} in update_prevent_sleep_time() argument
666 ktime_t now; in wakeup_source_deactivate() local
685 now = ktime_get(); in wakeup_source_deactivate()
686 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate()
691 ws->last_time = now; in wakeup_source_deactivate()
696 update_prevent_sleep_time(ws, now); in wakeup_source_deactivate()
1024 ktime_t now = ktime_get(); in pm_wakep_autosleep_enabled() local
1034 ws->start_prevent_time = now; in pm_wakep_autosleep_enabled()
1036 update_prevent_sleep_time(ws, now); in pm_wakep_autosleep_enabled()
1067 ktime_t now = ktime_get(); in print_wakeup_source_stats() local
[all …]
/drivers/clk/meson/
A Dclk-pll.c124 unsigned long now, in meson_clk_pll_is_better() argument
129 if (abs(now - rate) < abs(best - rate)) in meson_clk_pll_is_better()
133 if (now <= rate && best < now) in meson_clk_pll_is_better()
222 unsigned long best = 0, now = 0; in meson_clk_get_pll_settings() local
232 now = __pll_params_to_rate(parent_rate, m, n, 0, pll); in meson_clk_get_pll_settings()
233 if (meson_clk_pll_is_better(rate, best, now, pll)) { in meson_clk_get_pll_settings()
234 best = now; in meson_clk_get_pll_settings()
238 if (now == rate) in meson_clk_get_pll_settings()
A Dclk-dualdiv.c68 unsigned long best = 0, now = 0; in __dualdiv_get_setting() local
75 now = __dualdiv_param_to_rate(parent_rate, &table[i]); in __dualdiv_get_setting()
78 if (now == rate) { in __dualdiv_get_setting()
80 } else if (abs(now - rate) < abs(best - rate)) { in __dualdiv_get_setting()
81 best = now; in __dualdiv_get_setting()
/drivers/infiniband/hw/hfi1/
A Daspm.c134 ktime_t now, prev; in __aspm_ctx_disable() local
142 now = ktime_get(); in __aspm_ctx_disable()
143 rcd->aspm_ts_last_intr = now; in __aspm_ctx_disable()
146 close_interrupts = ktime_to_ns(ktime_sub(now, prev)) < ASPM_TRIGGER_NS; in __aspm_ctx_disable()
149 restart_timer = ktime_to_ns(ktime_sub(now, rcd->aspm_ts_timer_sched)) > in __aspm_ctx_disable()
163 rcd->aspm_ts_timer_sched = now; in __aspm_ctx_disable()
/drivers/gpu/drm/sti/
A Dsti_plane.c47 ktime_t now; in sti_plane_update_fps() local
51 now = ktime_get(); in sti_plane_update_fps()
64 ms_since_last = ktime_to_ms(ktime_sub(now, fps->last_timestamp)); in sti_plane_update_fps()
70 fps->last_timestamp = now; in sti_plane_update_fps()
/drivers/gpu/drm/lima/
A Dlima_devfreq.c21 ktime_t now, last; in lima_devfreq_update_utilization() local
23 now = ktime_get(); in lima_devfreq_update_utilization()
27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization()
29 devfreq->idle_time += ktime_sub(now, last); in lima_devfreq_update_utilization()
31 devfreq->time_last_update = now; in lima_devfreq_update_utilization()
/drivers/thermal/intel/
A Dtherm_throt.c304 u64 now = get_jiffies_64(); in throttle_active_work() local
321 if (time_before64(now, state->next_check) && in throttle_active_work()
325 state->next_check = now + CHECK_INTERVAL; in throttle_active_work()
378 u64 now; in therm_throt_process() local
381 now = get_jiffies_64(); in therm_throt_process()
422 state->last_interrupt_time = now; in therm_throt_process()
427 throttle_time = jiffies_delta_to_msecs(now - state->last_interrupt_time); in therm_throt_process()
440 u64 now = get_jiffies_64(); in thresh_event_valid() local
449 if (time_before64(now, state->next_check)) in thresh_event_valid()
452 state->next_check = now + CHECK_INTERVAL; in thresh_event_valid()
/drivers/gpu/drm/panthor/
A Dpanthor_devfreq.c49 ktime_t now, last; in panthor_devfreq_update_utilization() local
51 now = ktime_get(); in panthor_devfreq_update_utilization()
55 pdevfreq->busy_time += ktime_sub(now, last); in panthor_devfreq_update_utilization()
57 pdevfreq->idle_time += ktime_sub(now, last); in panthor_devfreq_update_utilization()
59 pdevfreq->time_last_update = now; in panthor_devfreq_update_utilization()
/drivers/gpu/drm/panfrost/
A Dpanfrost_devfreq.c16 ktime_t now, last; in panfrost_devfreq_update_utilization() local
18 now = ktime_get(); in panfrost_devfreq_update_utilization()
22 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
24 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
26 pfdevfreq->time_last_update = now; in panfrost_devfreq_update_utilization()
/drivers/ptp/
A Dptp_fc3.c341 int now, delta; in idtfc3_timecounter_read() local
343 now = idtfc3_read_subcounter(idtfc3); in idtfc3_timecounter_read()
344 if (now < 0) in idtfc3_timecounter_read()
345 return now; in idtfc3_timecounter_read()
348 if (now >= idtfc3->last_counter) in idtfc3_timecounter_read()
349 delta = now - idtfc3->last_counter; in idtfc3_timecounter_read()
355 idtfc3->last_counter = now; in idtfc3_timecounter_read()
389 int now; in _idtfc3_settime() local
396 now = idtfc3_read_subcounter(idtfc3); in _idtfc3_settime()
397 if (now < 0) in _idtfc3_settime()
[all …]

Completed in 98 milliseconds

12345678910>>...13