/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_timer.c | 312 static bool tcp_nip_keepalive_is_timeout(struct sock *sk, u32 elapsed) in tcp_nip_keepalive_is_timeout() argument 326 elapsed >= msecs_to_jiffies(icsk->icsk_user_timeout) && in tcp_nip_keepalive_is_timeout() 345 u32 elapsed; in tcp_nip_keepalive_timer() local 374 elapsed = keepalive_time_when(tp); in tcp_nip_keepalive_timer() 380 elapsed = keepalive_time_elapsed(tp); in tcp_nip_keepalive_timer() 381 if (elapsed >= keepalive_time_when(tp)) { in tcp_nip_keepalive_timer() 382 if (tcp_nip_keepalive_is_timeout(sk, elapsed)) in tcp_nip_keepalive_timer() 388 elapsed = keepalive_intvl_when(tp); in tcp_nip_keepalive_timer() 393 elapsed = TCP_RESOURCE_PROBE_INTERVAL; in tcp_nip_keepalive_timer() 397 elapsed in tcp_nip_keepalive_timer() [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_timer.c | 29 u32 elapsed, start_ts; in tcp_clamp_rto_to_user_timeout() local 35 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout() 36 remaining = icsk->icsk_user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 47 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 52 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 53 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 54 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 55 remaining = msecs_to_jiffies(icsk->icsk_user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 717 u32 elapsed; in tcp_keepalive_timer() local 750 elapsed in tcp_keepalive_timer() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_timer.c | 29 u32 elapsed, start_ts, user_timeout; in tcp_clamp_rto_to_user_timeout() local 36 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout() 37 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 48 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 54 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 55 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 56 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 57 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 721 u32 elapsed; in tcp_keepalive_timer() local 754 elapsed in tcp_keepalive_timer() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
H A D | msm_gpu_trace.h | 57 TP_PROTO(struct msm_gem_submit *submit, u64 elapsed, u64 clock, 59 TP_ARGS(submit, elapsed, clock, start, end), 65 __field(u64, elapsed) 75 __entry->elapsed = elapsed; 80 TP_printk("id=%d pid=%d ring=%d:%d elapsed=%lld ns mhz=%lld start=%lld end=%lld", 82 __entry->elapsed, __entry->clock,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_gpu_trace.h | 57 TP_PROTO(struct msm_gem_submit *submit, u64 elapsed, u64 clock, 59 TP_ARGS(submit, elapsed, clock, start, end), 65 __field(u64, elapsed) 75 __entry->elapsed = elapsed; 80 TP_printk("id=%d pid=%d ring=%d:%d elapsed=%lld ns mhz=%lld start=%lld end=%lld", 82 __entry->elapsed, __entry->clock,
|
H A D | msm_gpu.c | 571 uint32_t elapsed; in update_sw_cntrs() local 579 elapsed = ktime_to_us(ktime_sub(time, gpu->last_sample.time)); in update_sw_cntrs() 581 gpu->totaltime += elapsed; in update_sw_cntrs() 583 gpu->activetime += elapsed; in update_sw_cntrs() 650 u64 elapsed, clock = 0, cycles; in retire_submit() local 654 /* Convert 19.2Mhz alwayson ticks to nanoseconds for elapsed time */ in retire_submit() 655 elapsed = (stats->alwayson_end - stats->alwayson_start) * 10000; in retire_submit() 656 do_div(elapsed, 192); in retire_submit() 661 if (elapsed) { in retire_submit() 663 do_div(clock, elapsed); in retire_submit() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timens/ |
H A D | timer.c | 21 long long elapsed; in run_test() local 58 elapsed = new_value.it_value.tv_sec; in run_test() 59 if (abs(elapsed - 3600) > 60) { in run_test() 60 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 61 clockid, elapsed); in run_test()
|
H A D | timerfd.c | 28 long long elapsed; in run_test() local 63 elapsed = new_value.it_value.tv_sec; in run_test() 64 if (abs(elapsed - 3600) > 60) { in run_test() 65 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 66 clockid, elapsed); in run_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timens/ |
H A D | timer.c | 21 long long elapsed; in run_test() local 58 elapsed = new_value.it_value.tv_sec; in run_test() 59 if (abs(elapsed - 3600) > 60) { in run_test() 60 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 61 clockid, elapsed); in run_test()
|
H A D | timerfd.c | 28 long long elapsed; in run_test() local 63 elapsed = new_value.it_value.tv_sec; in run_test() 64 if (abs(elapsed - 3600) > 60) { in run_test() 65 ksft_test_result_fail("clockid: %d elapsed: %lld\n", in run_test() 66 clockid, elapsed); in run_test()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A D | i915_request.c | 1627 u32 elapsed[TF_COUNT], cycles; in measure_semaphore_response() local 1650 cs = intel_ring_begin(rq, 4 + 12 * ARRAY_SIZE(elapsed)); in measure_semaphore_response() 1658 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 1672 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 1683 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response() 1686 cycles = trifilter(elapsed); in measure_semaphore_response() 1702 u32 elapsed[TF_COUNT], cycles; in measure_idle_dispatch() local 1718 for (i = 0; i < ARRAY_SIZE(elapsed); i++) { in measure_idle_dispatch() 1744 elapsed[i] = ENGINE_READ_FW(ce->engine, RING_TIMESTAMP); in measure_idle_dispatch() 1754 for (i = 0; i < ARRAY_SIZE(elapsed); in measure_idle_dispatch() 1773 u32 elapsed[TF_COUNT + 1], cycles; measure_busy_dispatch() local 1876 u32 elapsed[TF_COUNT + 1], cycles; measure_inter_request() local 1970 u32 elapsed[TF_COUNT + 1], cycles; measure_context_switch() local 2063 u32 elapsed[TF_COUNT], cycles; measure_preemption() local 2183 u32 elapsed[TF_COUNT], cycles; measure_completion() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
H A D | i915_request.c | 2019 u32 elapsed[TF_COUNT], cycles; in measure_semaphore_response() local 2042 cs = intel_ring_begin(rq, 4 + 12 * ARRAY_SIZE(elapsed)); in measure_semaphore_response() 2050 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2064 for (i = 1; i <= ARRAY_SIZE(elapsed); i++) { in measure_semaphore_response() 2075 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response() 2078 cycles = trifilter(elapsed); in measure_semaphore_response() 2094 u32 elapsed[TF_COUNT], cycles; in measure_idle_dispatch() local 2110 for (i = 0; i < ARRAY_SIZE(elapsed); i++) { in measure_idle_dispatch() 2136 elapsed[i] = ENGINE_READ_FW(ce->engine, RING_TIMESTAMP); in measure_idle_dispatch() 2146 for (i = 0; i < ARRAY_SIZE(elapsed); in measure_idle_dispatch() 2165 u32 elapsed[TF_COUNT + 1], cycles; measure_busy_dispatch() local 2268 u32 elapsed[TF_COUNT + 1], cycles; measure_inter_request() local 2360 u32 elapsed[TF_COUNT + 1], cycles; measure_context_switch() local 2453 u32 elapsed[TF_COUNT], cycles; measure_preemption() local 2573 u32 elapsed[TF_COUNT], cycles; measure_completion() local [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | vtime.c | 56 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() argument 62 elapsed = atomic64_add_return(elapsed, &virt_timer_elapsed); in virt_timer_forward() 63 return elapsed >= atomic64_read(&virt_timer_current); in virt_timer_forward() 278 unsigned long elapsed; in virt_timer_expire() local 283 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 285 if (timer->expires < elapsed) in virt_timer_expire() 289 timer->expires -= elapsed; in virt_timer_expire() 296 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | vtime.c | 56 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() argument 62 elapsed = atomic64_add_return(elapsed, &virt_timer_elapsed); in virt_timer_forward() 63 return elapsed >= atomic64_read(&virt_timer_current); in virt_timer_forward() 289 unsigned long elapsed; in virt_timer_expire() local 294 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 296 if (timer->expires < elapsed) in virt_timer_expire() 300 timer->expires -= elapsed; in virt_timer_expire() 307 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-atmel-pit.c | 77 u32 elapsed; in read_pit_clk() local 81 elapsed = data->cnt; in read_pit_clk() 85 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk() 86 elapsed += PIT_CPIV(t); in read_pit_clk() 87 return elapsed; in read_pit_clk()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-atmel-pit.c | 77 u32 elapsed; in read_pit_clk() local 81 elapsed = data->cnt; in read_pit_clk() 85 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk() 86 elapsed += PIT_CPIV(t); in read_pit_clk() 87 return elapsed; in read_pit_clk()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | acct.c | 420 u64 elapsed, run_time; in fill_ac() local 437 elapsed = nsec_to_AHZ(run_time); in fill_ac() 439 ac->ac_etime = encode_float(elapsed); in fill_ac() 441 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 442 (unsigned long) elapsed : (unsigned long) -1l); in fill_ac() 447 comp2_t etime = encode_comp2_t(elapsed); in fill_ac() 453 do_div(elapsed, AHZ); in fill_ac() 454 btime = ktime_get_real_seconds() - elapsed; in fill_ac()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | acct.c | 437 u64 elapsed, run_time; in fill_ac() local 454 elapsed = nsec_to_AHZ(run_time); in fill_ac() 456 ac->ac_etime = encode_float(elapsed); in fill_ac() 458 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 459 (unsigned long) elapsed : (unsigned long) -1l); in fill_ac() 464 comp2_t etime = encode_comp2_t(elapsed); in fill_ac() 470 do_div(elapsed, AHZ); in fill_ac() 471 btime = ktime_get_real_seconds() - elapsed; in fill_ac()
|
/kernel/linux/linux-6.6/tools/testing/selftests/syscall_user_dispatch/ |
H A D | sud_benchmark.c | 82 double elapsed = 0; in calibrate_set() local 86 while (elapsed < 1) { in calibrate_set() 87 elapsed += one_sysinfo_step(); in calibrate_set()
|
/kernel/linux/linux-6.6/kernel/power/ |
H A D | process.c | 36 ktime_t start, end, elapsed; in try_to_freeze_tasks() local 85 elapsed = ktime_sub(end, start); in try_to_freeze_tasks() 86 elapsed_msecs = ktime_to_ms(elapsed); in try_to_freeze_tasks() 107 pr_info("Freezing %s completed (elapsed %d.%03d seconds)\n", in try_to_freeze_tasks()
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | futex-contention.py | 25 lock_waits = {} # long-lived stats on (tid,lock) blockage elapsed time 43 elapsed = nsecs(s, ns) - thread_blocktime[tid] 44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | futex-contention.py | 25 lock_waits = {} # long-lived stats on (tid,lock) blockage elapsed time 43 elapsed = nsecs(s, ns) - thread_blocktime[tid] 44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
|
/kernel/linux/linux-5.10/kernel/power/ |
H A D | process.c | 37 ktime_t start, end, elapsed; in try_to_freeze_tasks() local 85 elapsed = ktime_sub(end, start); in try_to_freeze_tasks() 86 elapsed_msecs = ktime_to_ms(elapsed); in try_to_freeze_tasks() 109 pr_cont("(elapsed %d.%03d seconds) ", elapsed_msecs / 1000, in try_to_freeze_tasks()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | utils.c | 1023 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument 1025 if (!elapsed) in iwl_mvm_tcm_load_percentage() 1028 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage() 1032 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument 1034 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load() 1149 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() 1165 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt() 1179 do_div(tpt, elapsed * 100); in iwl_mvm_check_uapsd_agg_expected_tpt() 1207 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() local 1223 mvm->tcm.result.elapsed in iwl_mvm_calc_tcm_stats() 1148 iwl_mvm_check_uapsd_agg_expected_tpt(struct iwl_mvm *mvm, unsigned int elapsed, int mac) iwl_mvm_check_uapsd_agg_expected_tpt() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | utils.c | 756 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument 758 if (!elapsed) in iwl_mvm_tcm_load_percentage() 761 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage() 765 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument 767 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load() 870 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() 886 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt() 900 do_div(tpt, elapsed * 100); in iwl_mvm_check_uapsd_agg_expected_tpt() 928 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() local 944 mvm->tcm.result.elapsed in iwl_mvm_calc_tcm_stats() 869 iwl_mvm_check_uapsd_agg_expected_tpt(struct iwl_mvm *mvm, unsigned int elapsed, int mac) iwl_mvm_check_uapsd_agg_expected_tpt() argument [all...] |