Home
last modified time | relevance | path

Searched refs:ktime_add (Results 1 – 25 of 63) sorted by relevance

123

/linux/net/rxrpc/
H A Dinput_rack.c204 lost_after = ktime_add(call->rack_rtt, call->rack_reo_wnd); in rxrpc_rack_detect_loss()
227 remaining = ktime_sub(ktime_add(xmit_ts, lost_after), now); in rxrpc_rack_detect_loss()
251 call->rack_timo_at = ktime_add(ktime_get_real(), timeout); in rxrpc_rack_detect_loss_and_arm_timer()
264 ktime_t lost_after = ktime_add(call->rack_rtt, call->rack_reo_wnd); in rxrpc_rack_mark_losses_on_rto()
293 ktime_t rto_at = ktime_add(call->tx_last_sent, in rxrpc_tlp_calc_pto()
301 pto = ktime_add(pto, call->tlp_max_ack_delay); in rxrpc_tlp_calc_pto()
306 if (ktime_after(ktime_add(now, pto), rto_at)) in rxrpc_tlp_calc_pto()
352 call->rack_timo_at = ktime_add(ktime_get_real(), rto); in rxrpc_tlp_send_probe()
H A Dcall_event.c28 ktime_t ping_at = ktime_add(now, delay); in rxrpc_propose_ping()
53 call->delay_ack_at = ktime_add(now, delay); in rxrpc_propose_delay_ACK()
H A Doutput.c70 call->keepalive_at = ktime_add(ktime_get_real(), delay); in rxrpc_set_keepalive()
619 call->rack_timo_at = ktime_add(req->now, pto); in rxrpc_prepare_data_packet()
627 call->expect_rx_by = ktime_add(req->now, delay); in rxrpc_prepare_data_packet()
/linux/net/sunrpc/
H A Dstats.c177 op_metrics->om_queue = ktime_add(op_metrics->om_queue, backlog); in rpc_count_iostats_metrics()
180 op_metrics->om_rtt = ktime_add(op_metrics->om_rtt, req->rq_rtt); in rpc_count_iostats_metrics()
183 op_metrics->om_execute = ktime_add(op_metrics->om_execute, execute); in rpc_count_iostats_metrics()
225 a->om_queue = ktime_add(a->om_queue, b->om_queue); in _add_rpc_iostats()
226 a->om_rtt = ktime_add(a->om_rtt, b->om_rtt); in _add_rpc_iostats()
227 a->om_execute = ktime_add(a->om_execute, b->om_execute); in _add_rpc_iostats()
/linux/drivers/base/power/
H A Dwakeup.c121 ktime_add(deleted_ws.total_time, ws->total_time); in wakeup_source_record()
123 ktime_add(deleted_ws.prevent_sleep_time, in wakeup_source_record()
647 ws->prevent_sleep_time = ktime_add(ws->prevent_sleep_time, delta); in update_prevent_sleep_time()
687 ws->total_time = ktime_add(ws->total_time, duration); in wakeup_source_deactivate()
1070 total_time = ktime_add(total_time, active_time); in print_wakeup_source_stats()
1075 prevent_sleep_time = ktime_add(prevent_sleep_time, in print_wakeup_source_stats()
H A Dwakeup_stats.c59 total_time = ktime_add(total_time, active_time); in total_time_ms_show()
109 prevent_sleep_time = ktime_add(prevent_sleep_time, in prevent_suspend_time_ms_show()
/linux/kernel/time/
H A Dtimekeeping.c264 WRITE_ONCE(tk->offs_tai, ktime_add(tk->offs_real, ktime_set(tk->tai_offset, 0))); in tk_set_wall_to_mono()
270 WRITE_ONCE(tk->offs_boot, ktime_add(tk->offs_boot, delta)); in tk_update_sleep_time()
868 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_with_offset()
889 base = ktime_add(tk->tkr_mono.base, *offset); in ktime_get_coarse_with_offset()
914 return ktime_add(tmono, READ_ONCE(*offset)); in ktime_mono_to_any()
919 tconv = ktime_add(tmono, *offset); in ktime_mono_to_any()
1065 base_real = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
1067 base_boot = ktime_add(tk->tkr_mono.base, in ktime_get_snapshot()
1358 base_real = ktime_add(tk->tkr_mono.base, in get_device_system_crosststamp()
1508 offs = ktime_add(tks->offs_aux, timespec64_to_ktime(*ts)); in __timekeeping_inject_offset()
[all …]
H A Dtick-sched.c734 ts->iowait_sleeptime = ktime_add(ts->iowait_sleeptime, delta); in tick_nohz_stop_idle()
736 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in tick_nohz_stop_idle()
774 idle = ktime_add(*sleeptime, delta); in get_cpu_sleep_time_us()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_engine_stats.h54 stats->total = ktime_add(stats->total, in intel_engine_context_out()
H A Dintel_gt_pm.c65 ktime_add(gt->stats.total, in runtime_end()
413 total = ktime_add(total, in __intel_gt_get_awake_time()
/linux/drivers/net/can/softing/
H A Dsofting_fw.c400 tmp = ktime_add(target, card->ts_overflow); in softing_raw2ktime()
402 card->ts_ref = ktime_add(card->ts_ref, card->ts_overflow); in softing_raw2ktime()
404 tmp = ktime_add(target, card->ts_overflow); in softing_raw2ktime()
406 return ktime_add(target, real_offset); in softing_raw2ktime()
/linux/drivers/accel/ivpu/
H A Divpu_sysfs.c45 return sysfs_emit(buf, "%lld\n", ktime_to_us(ktime_add(total, now))); in npu_busy_time_us_show()
/linux/drivers/thermal/
H A Dthermal_debugfs.c437 cdev_record->residency = ktime_add(cdev_record->residency, delta); in thermal_debug_cdev_state_update()
667 trip_stats->duration = ktime_add(delta, trip_stats->duration); in tz_episode_close_trip()
836 delta = ktime_add(delta, trip_stats->duration); in tze_seq_show()
/linux/include/linux/
H A Dktime.h48 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) macro
H A Dtick.h156 return ktime_add(ktime_get(), TICK_NSEC); in tick_nohz_get_next_hrtimer()
/linux/drivers/gpu/drm/i915/gvt/
H A Dsched_policy.c85 vgpu_data->sched_time = ktime_add(vgpu_data->sched_time, delta_ts); in vgpu_update_timeslice()
350 vgpu_data->pri_time = ktime_add(now, in tbs_sched_start_schedule()
/linux/drivers/platform/surface/aggregator/
H A Dssh_request_layer.c430 ktime_t aexp = ktime_add(expires, SSH_RTL_REQUEST_TIMEOUT_RESOLUTION); in ssh_rtl_timeout_reaper_mod()
815 return ktime_add(timestamp, timeout); in ssh_request_get_expiration()
891 next = max(next, ktime_add(now, SSH_RTL_REQUEST_TIMEOUT_RESOLUTION)); in ssh_rtl_timeout_reap()
/linux/drivers/ptp/
H A Dptp_vmclock.c96 ktime_t deadline = ktime_add(ktime_get(), VMCLOCK_MAX_WAIT); in vmclock_get_crosststamp()
384 ktime_t deadline = ktime_add(ktime_get(), VMCLOCK_MAX_WAIT); in vmclock_miscdev_read()
/linux/drivers/gpu/drm/lima/
H A Dlima_devfreq.c67 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_devfreq.c101 status->total_time = ktime_to_ns(ktime_add(pdevfreq->busy_time, in panthor_devfreq_get_dev_status()
/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_devfreq.c68 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ctx.c198 res = ktime_add(res, amdgpu_ctx_fence_time(centity->fences[i])); in amdgpu_ctx_entity_time()
282 res = ktime_add(res, amdgpu_ctx_fence_time(entity->fences[i])); in amdgpu_ctx_fini_entity()
987 usage[hw_ip] = ktime_add(usage[hw_ip], spend); in amdgpu_ctx_mgr_usage()
/linux/drivers/char/tpm/
H A Dtpm_crb_ffa.c245 stop = ktime_add(start, ms_to_ktime(busy_timeout_ms)); in __tpm_crb_ffa_send_receive()
/linux/drivers/gpu/drm/panel/
H A Dpanel-samsung-atna33xc20.c53 min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms)); in atana33xc20_wait()
/linux/drivers/usb/host/
H A Dehci-timer.c82 *timeout = ktime_add(ktime_get(), event_delays_ns[event]); in ehci_enable_event()

123