Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 25 of 95) sorted by relevance

1234

/linux-6.6.21/net/ipv4/
Dtcp_timer.c29 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 = keepalive_time_when(tp); in tcp_keepalive_timer()
[all …]
/linux-6.6.21/tools/testing/selftests/timens/
Dtimer.c21 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()
61 clockid, elapsed); in run_test()
Dtimerfd.c28 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()
66 clockid, elapsed); in run_test()
/linux-6.6.21/arch/s390/kernel/
Dvtime.c56 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()
/linux-6.6.21/drivers/gpu/drm/msm/
Dmsm_gpu_trace.h57 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;
82 __entry->elapsed, __entry->clock,
Dmsm_gpu.c571 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
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()
666 submit->queue->ctx->elapsed_ns += elapsed; in retire_submit()
[all …]
/linux-6.6.21/drivers/clocksource/
Dtimer-atmel-pit.c77 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()
/linux-6.6.21/kernel/
Dacct.c437 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()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Di915_request.c2019 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); i++) in measure_idle_dispatch()
[all …]
/linux-6.6.21/tools/testing/selftests/syscall_user_dispatch/
Dsud_benchmark.c82 double elapsed = 0; in calibrate_set() local
86 while (elapsed < 1) { in calibrate_set()
87 elapsed += one_sysinfo_step(); in calibrate_set()
/linux-6.6.21/kernel/power/
Dprocess.c36 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()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dutils.c756 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() argument
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 = elapsed; in iwl_mvm_calc_tcm_stats()
[all …]
/linux-6.6.21/tools/perf/scripts/python/
Dfutex-contention.py43 elapsed = nsecs(s, ns) - thread_blocktime[tid]
44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_ring.c256 uint64_t elapsed; in radeon_ring_test_lockup() local
264 elapsed = jiffies_to_msecs(jiffies_64 - last); in radeon_ring_test_lockup()
265 if (radeon_lockup_timeout && elapsed >= radeon_lockup_timeout) { in radeon_ring_test_lockup()
267 ring->idx, elapsed); in radeon_ring_test_lockup()
/linux-6.6.21/tools/perf/Documentation/
Dexamples.txt42 0.613972165 seconds time elapsed
63 0.643954516 seconds time elapsed ( +- 2.363% )
171 10.000591410 seconds time elapsed
187 1.058135029 seconds time elapsed ( +- 3.089% )
/linux-6.6.21/mm/
Dpage-writeback.c1181 unsigned long elapsed, in wb_update_write_bandwidth() argument
1201 if (unlikely(elapsed > period)) { in wb_update_write_bandwidth()
1202 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth()
1206 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth()
1286 unsigned long elapsed) in wb_update_dirty_ratelimit() argument
1306 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit()
1448 unsigned long elapsed; in __wb_update_bandwidth() local
1460 elapsed = max(now - wb->bw_time_stamp, 1UL); in __wb_update_bandwidth()
1466 wb_update_dirty_ratelimit(gdtc, dirtied, elapsed); in __wb_update_bandwidth()
1474 wb_update_dirty_ratelimit(mdtc, dirtied, elapsed); in __wb_update_bandwidth()
[all …]
/linux-6.6.21/sound/drivers/
Ddummy.c239 int elapsed; member
262 dpcm->elapsed++; in dummy_systimer_update()
297 dpcm->elapsed = 0; in dummy_systimer_prepare()
306 int elapsed = 0; in dummy_systimer_callback() local
311 elapsed = dpcm->elapsed; in dummy_systimer_callback()
312 dpcm->elapsed = 0; in dummy_systimer_callback()
314 if (elapsed) in dummy_systimer_callback()
/linux-6.6.21/drivers/rtc/
Drtc-snvs.c112 u32 elapsed; in rtc_write_sync_lp() local
125 elapsed = count2 - count1; /* wrap around _is_ handled! */ in rtc_write_sync_lp()
126 } while (elapsed < 3 && --timeout); in rtc_write_sync_lp()
/linux-6.6.21/sound/soc/sh/rcar/
Dssi.c677 bool elapsed = false; in __rsnd_ssi_interrupt() local
690 elapsed = rsnd_ssi_pio_interrupt(mod, io); in __rsnd_ssi_interrupt()
706 if (elapsed) in __rsnd_ssi_interrupt()
880 bool elapsed = false; in rsnd_ssi_pio_interrupt() local
907 elapsed = true; in rsnd_ssi_pio_interrupt()
912 return elapsed; in rsnd_ssi_pio_interrupt()
/linux-6.6.21/sound/sparc/
Damd7930.c496 unsigned int elapsed; in snd_amd7930_interrupt() local
501 elapsed = 0; in snd_amd7930_interrupt()
513 elapsed |= AMD7930_FLAG_PLAYBACK; in snd_amd7930_interrupt()
522 elapsed |= AMD7930_FLAG_CAPTURE; in snd_amd7930_interrupt()
528 if (elapsed & AMD7930_FLAG_PLAYBACK) in snd_amd7930_interrupt()
/linux-6.6.21/fs/btrfs/
Ddiscard.c414 u64 elapsed = now - discard_ctl->prev_discard_time; in __btrfs_discard_schedule_work() local
416 if (delay > elapsed) in __btrfs_discard_schedule_work()
417 delay -= elapsed; in __btrfs_discard_schedule_work()
/linux-6.6.21/Documentation/devicetree/bindings/watchdog/
Darm,sbsa-gwdt.yaml14 two stages of timeout have elapsed. A detailed definition of the watchdog
/linux-6.6.21/sound/pci/mixart/
Dmixart_core.c473 int elapsed = 0; in snd_mixart_threaded_irq() local
484 elapsed = 1; in snd_mixart_threaded_irq()
494 if(elapsed) { in snd_mixart_threaded_irq()
/linux-6.6.21/drivers/dma/
Dmxs-dma.c203 unsigned long elapsed = 0; in mxs_dma_reset_chan() local
215 while ((readl(reg_dbg1) & 0xf) == 0x8 && elapsed < max_wait) { in mxs_dma_reset_chan()
217 elapsed += 100; in mxs_dma_reset_chan()
220 if (elapsed >= max_wait) in mxs_dma_reset_chan()
/linux-6.6.21/drivers/md/
Ddm-flakey.c481 unsigned int elapsed; in flakey_map() local
490 elapsed = (jiffies - fc->start_time) / HZ; in flakey_map()
491 if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { in flakey_map()

1234