/linux/net/ipv4/ |
H A D | tcp_timer.c | 31 u32 elapsed, user_timeout; in tcp_clamp_rto_to_user_timeout() local 38 elapsed = tcp_time_stamp_ts(tp) - tp->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 40 elapsed /= USEC_PER_MSEC; in tcp_clamp_rto_to_user_timeout() 42 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout() 53 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local 59 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout() 60 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout() 61 elapsed = 0; in tcp_clamp_probe0_to_user_timeout() 62 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout() 784 u32 elapsed; in tcp_keepalive_timer() local [all...] |
/linux/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 (llabs(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 (llabs(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()
|
/linux/arch/s390/kernel/ |
H A D | vtime.c | 49 static inline int virt_timer_forward(u64 elapsed) in virt_timer_forward() argument 55 elapsed = atomic64_add_return(elapsed, &virt_timer_elapsed); in virt_timer_forward() 56 return elapsed >= atomic64_read(&virt_timer_current); in virt_timer_forward() 287 unsigned long elapsed; in virt_timer_expire() local 292 elapsed = atomic64_read(&virt_timer_elapsed); in virt_timer_expire() 294 if (timer->expires < elapsed) in virt_timer_expire() 298 timer->expires -= elapsed; in virt_timer_expire() 305 atomic64_sub(elapsed, &virt_timer_elapsed); in virt_timer_expire()
|
/linux/scripts/lib/abi/ |
H A D | system_symbols.py | 366 elapsed = str(datetime.now() - start).split(".", maxsplit=1)[0] 368 elapsed += f" ({total - len(f_list)}/{total} jobs completed). " 369 if elapsed != old_elapsed: 370 print(elapsed + "\r", end="", flush=True, 372 old_elapsed = elapsed 374 elapsed = str(datetime.now() - start).split(".", maxsplit=1)[0] 375 print(elapsed, file=sys.stderr)
|
/linux/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,
|
/linux/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()
|
/linux/kernel/ |
H A D | acct.c | 461 u64 elapsed, run_time; in fill_ac() local 490 elapsed = nsec_to_AHZ(run_time); in fill_ac() 492 ac->ac_etime = encode_float(elapsed); in fill_ac() 494 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 495 (unsigned long) elapsed : (unsigned long) -1l); in fill_ac() 500 comp2_t etime = encode_comp2_t(elapsed); in fill_ac() 506 do_div(elapsed, AHZ); in fill_ac() 507 btime = ktime_get_real_seconds() - elapsed; in fill_ac()
|
/linux/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()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | utils.c | 804 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument 806 if (!elapsed) in iwl_mvm_tcm_load_percentage() 809 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage() 813 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument 815 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load() 916 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() argument 932 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt() 946 do_div(tpt, elapsed * 100); in iwl_mvm_check_uapsd_agg_expected_tpt() 974 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() local 990 mvm->tcm.result.elapsed in iwl_mvm_calc_tcm_stats() [all...] |
/linux/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)
|
/linux/tools/testing/selftests/mm/ |
H A D | hugetlb_reparenting_test.sh | 71 local elapsed 85 elapsed=$((now - start_time)) 87 if [[ $elapsed -ge $timeout ]]; then
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_ring.c | 258 uint64_t elapsed; in radeon_ring_test_lockup() local 266 elapsed = jiffies_to_msecs(jiffies_64 - last); in radeon_ring_test_lockup() 267 if (radeon_lockup_timeout && elapsed >= radeon_lockup_timeout) { in radeon_ring_test_lockup() 269 ring->idx, elapsed); in radeon_ring_test_lockup()
|
/linux/tools/perf/Documentation/ |
H A D | examples.txt | 42 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/mm/ |
H A D | page-writeback.c | 1235 unsigned long elapsed, in wb_update_write_bandwidth() argument 1244 * bw = written * HZ / elapsed in wb_update_write_bandwidth() 1246 * bw * elapsed + write_bandwidth * (period - elapsed) in wb_update_write_bandwidth() 1255 if (unlikely(elapsed > period)) { in wb_update_write_bandwidth() 1256 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth() 1260 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth() 1340 unsigned long elapsed) in wb_update_dirty_ratelimit() argument 1360 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit() 1495 unsigned long elapsed; in __wb_update_bandwidth() local 1545 unsigned long elapsed = now - READ_ONCE(wb->bw_time_stamp); wb_bandwidth_estimate_start() local [all...] |
/linux/drivers/rtc/ |
H A D | rtc-snvs.c | 112 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/sound/soc/renesas/rcar/ |
H A D | ssi.c | 680 bool elapsed = false; in __rsnd_ssi_interrupt() local 693 elapsed = rsnd_ssi_pio_interrupt(mod, io); in __rsnd_ssi_interrupt() 709 if (elapsed) in __rsnd_ssi_interrupt() 883 bool elapsed = false; in rsnd_ssi_pio_interrupt() local 910 elapsed = true; in rsnd_ssi_pio_interrupt() 915 return elapsed; in rsnd_ssi_pio_interrupt()
|
/linux/drivers/gpu/nova-core/ |
H A D | util.rs | 26 /// Wait until `cond` is true or `timeout` elapsed. 43 if start_time.elapsed().as_nanos() > timeout.as_nanos() { in wait_on()
|
/linux/sound/sparc/ |
H A D | amd7930.c | 497 unsigned int elapsed; in snd_amd7930_interrupt() local 502 elapsed = 0; in snd_amd7930_interrupt() 514 elapsed |= AMD7930_FLAG_PLAYBACK; in snd_amd7930_interrupt() 523 elapsed |= AMD7930_FLAG_CAPTURE; in snd_amd7930_interrupt() 529 if (elapsed & AMD7930_FLAG_PLAYBACK) in snd_amd7930_interrupt()
|
/linux/fs/btrfs/ |
H A D | discard.c | 424 u64 elapsed = now - discard_ctl->prev_discard_time; in __btrfs_discard_schedule_work() local 426 if (delay > elapsed) in __btrfs_discard_schedule_work() 427 delay -= elapsed; in __btrfs_discard_schedule_work()
|
/linux/sound/pci/mixart/ |
H A D | mixart_core.c | 473 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/drivers/dma/ |
H A D | mxs-dma.c | 203 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/Documentation/trace/ |
H A D | tracepoint-analysis.rst | 107 10.002577764 seconds time elapsed 135 0.973913387 seconds time elapsed 167 0.982653002 seconds time elapsed ( +- 1.448% ) 186 1.002251757 seconds time elapsed ( +- 0.005% )
|
/linux/drivers/md/ |
H A D | dm-flakey.c | 496 unsigned int elapsed; in flakey_map() local 505 elapsed = (jiffies - fc->start_time) / HZ; in flakey_map() 506 if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { in flakey_map()
|
/linux/net/sctp/ |
H A D | sm_sideeffect.c | 373 u32 elapsed, timeout; in sctp_generate_heartbeat_event() local 387 elapsed = jiffies - transport->last_time_sent; in sctp_generate_heartbeat_event() 389 if (elapsed < timeout) { in sctp_generate_heartbeat_event() 390 elapsed = timeout - elapsed; in sctp_generate_heartbeat_event() 391 if (!mod_timer(&transport->hb_timer, jiffies + elapsed)) in sctp_generate_heartbeat_event()
|