| /f-stack/dpdk/app/test/ |
| H A D | test_timer_perf.c | 50 const uint64_t ticks = rte_get_timer_hz() * DELAY_SECONDS; in test_timer_perf() local 59 rte_timer_reset(&tms[i], ticks, SINGLE, lcore_id, in test_timer_perf() 69 while (rte_get_timer_cycles() < delay_start + ticks) in test_timer_perf() 85 rte_timer_reset(&tms[i], rte_rand() % ticks, SINGLE, lcore_id, in test_timer_perf() 96 while (rte_get_timer_cycles() < delay_start + ticks) in test_timer_perf() 121 rte_timer_reset(&tms[0], ticks * 100, SINGLE, lcore_id, in test_timer_perf()
|
| H A D | test_timer_secondary.c | 169 uint64_t ticks, timeout_ms; in test_timer_secondary() local 185 ticks = timeout_ms * rte_get_timer_hz() / MSECPERSEC; in test_timer_secondary() 188 tim, ticks, SINGLE, in test_timer_secondary()
|
| H A D | test_hash_functions.c | 99 uint64_t ticks, start, end; in run_hash_func_perf_test() local 111 ticks = end - start; in run_hash_func_perf_test() 114 (unsigned) init_val, (double)ticks / HASHTEST_ITERATIONS); in run_hash_func_perf_test()
|
| /f-stack/dpdk/lib/librte_eal/arm/ |
| H A D | rte_cycles.c | 18 uint64_t ticks; in get_tsc_freq_arch() 23 ticks = __rte_arm64_cntfrq() / 10; in get_tsc_freq_arch() 29 } while ((cur_ticks - start_ticks) < ticks); in get_tsc_freq_arch()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_clock.c | 202 tticks = ticks - td->td_blktick; in deadlres_td_on_lock() 383 volatile int ticks; variable 468 global = ticks; in hardclock() 525 *t = ticks; in hardclock_sync() 534 unsigned long ticks; in tvtohz() local 572 ticks = 1; in tvtohz() 576 ticks = sec * hz in tvtohz() 579 ticks = LONG_MAX; in tvtohz() 580 if (ticks > INT_MAX) in tvtohz() 581 ticks = INT_MAX; in tvtohz() [all …]
|
| H A D | subr_smr.c | 231 t = ticks; in smr_lazy_advance() 236 d = t - s_wr.ticks; in smr_lazy_advance() 242 s_wr.ticks = t; in smr_lazy_advance() 597 s->s_wr.ticks = ticks; in smr_create()
|
| H A D | subr_pidctrl.c | 91 pc->pc_ticks = ticks; in pidctrl_classic() 128 if ((u_int)ticks - pc->pc_ticks >= pc->pc_interval) { in pidctrl_daemon() 129 pc->pc_ticks = ticks; in pidctrl_daemon()
|
| H A D | subr_prof.c | 461 addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_intr() argument 465 if (ticks == 0) in addupc_intr() 476 td->td_profil_ticks = ticks; in addupc_intr() 488 addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_task() argument 497 if (ticks == 0) in addupc_task() 518 v += ticks; in addupc_task()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_ht.h | 110 tap->txa_lastsample = ticks; in ieee80211_txampdu_init_pps() 131 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_count_packet() 136 tap->txa_lastsample = ticks; in ieee80211_txampdu_count_packet() 153 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_getpps() 157 tap->txa_lastsample = ticks; in ieee80211_txampdu_getpps()
|
| H A D | ieee80211_scan_sw.c | 291 ieee80211_time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { in ieee80211_swscan_check_scan() 304 ticks); in ieee80211_swscan_check_scan() 356 ticks, duration); in ieee80211_swscan_bg_scan() 665 ss_priv->ss_scanend = ticks + ss_priv->ss_duration; in scan_start() 723 if (ieee80211_time_after(ticks + ss->ss_maxdwell, ss_priv->ss_scanend)) in scan_curchan_task() 724 maxdwell = ss_priv->ss_scanend - ticks; in scan_curchan_task() 769 ss_priv->ss_chanmindwell = ticks + ss->ss_mindwell; in scan_curchan_task() 824 ic->ic_lastscan = ticks; in scan_end() 853 ticks, ss->ss_mindwell, ss_priv->ss_scanend); in scan_end() 873 ticks, ss->ss_mindwell, ss_priv->ss_scanend); in scan_end() [all …]
|
| H A D | ieee80211_rssadapt.c | 208 ra->ra_ticks = ticks; in rssadapt_node_init() 253 if ((ticks - ra->ra_ticks) > ra->ra_rs->interval) { in rssadapt_rate() 255 ra->ra_ticks = ticks; in rssadapt_rate() 327 ra->ra_last_raise = ticks; in rssadapt_raise_rate() 352 (ticks - ra->ra_last_raise) >= ra->ra_raise_interval) in rssadapt_tx_complete()
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_epit.c | 171 uint64_t curcnt, endcnt, startcnt, ticks; in epit_do_delay() local 181 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in epit_do_delay() 183 endcnt = startcnt + ticks; in epit_do_delay() 225 uint32_t ticks; in epit_et_start() local 238 ticks = ((uint32_t)et->et_frequency * period) >> 32; in epit_et_start() 241 ticks = ((uint32_t)et->et_frequency * first) >> 32; in epit_et_start() 247 WR4(sc, EPIT_LR, ticks); in epit_et_start()
|
| H A D | imx_gpt.c | 292 uint32_t ticks; in imx_gpt_timer_start() local 310 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start() 314 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start() 407 uint64_t curcnt, endcnt, startcnt, ticks; in imx_gpt_do_delay() local 417 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in imx_gpt_do_delay() 419 endcnt = startcnt + ticks; in imx_gpt_do_delay()
|
| /f-stack/dpdk/examples/rxtx_callbacks/ |
| H A D | main.c | 80 uint64_t ticks; in calc_latency() local 84 rte_eth_read_clock(port, &ticks); in calc_latency() 89 queue_ticks += ticks - *hwts_field(pkts[i]); in calc_latency() 198 uint64_t ticks; in port_init() local 199 rte_eth_read_clock(port, &ticks); in port_init() 201 uint64_t t_freq = ticks - ticks_base; in port_init()
|
| /f-stack/freebsd/netinet/cc/ |
| H A D | cc_cubic.c | 165 cubic_data->t_last_cong = ticks; in cubic_ack_received() 170 ticks - cubic_data->t_last_cong) < 0) { in cubic_ack_received() 175 cubic_data->t_last_cong = ticks - INT_MAX; in cubic_ack_received() 247 cubic_data->t_last_cong = ticks; in cubic_after_idle() 267 cubic_data->t_last_cong = ticks; in cubic_cb_init() 294 cubic_data->t_last_cong = ticks; in cubic_cong_signal() 305 cubic_data->t_last_cong = ticks; in cubic_cong_signal()
|
| H A D | cc_htcp.c | 260 htcp_data->t_last_cong = ticks; in htcp_cb_init() 292 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 309 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 328 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 395 now = ticks; in htcp_recalc_alpha()
|
| /f-stack/dpdk/lib/librte_timer/ |
| H A D | rte_timer.h | 236 int rte_timer_reset(struct rte_timer *tim, uint64_t ticks, 273 rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks, 415 uint64_t ticks, enum rte_timer_type type,
|
| /f-stack/freebsd/vm/ |
| H A D | vm_swapout.c | 360 if ((ticks > (lastrun + hz)) || (ticks < lastrun)) { in vm_req_vmdaemon() 362 lastrun = ticks; in vm_req_vmdaemon() 639 last_swapin = ticks; in faultin() 644 p->p_swtick = ticks; in faultin() 691 swtime = (ticks - p->p_swtick) / hz; in swapper_selector() 699 slptime = (ticks - td->td_slptick) / hz; in swapper_selector() 738 (u_int)(ticks - last_swapin) < SWAPIN_INTERVAL); in swapper_wkilled_only() 833 slptime = (ticks - td->td_slptick) / hz; in swapout_procs() 946 p->p_swtick = ticks; in swapout()
|
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | eal_common_timer.c | 33 const uint64_t ticks = (uint64_t)us * rte_get_timer_hz() / 1E6; in rte_delay_us_block() local 34 while ((rte_get_timer_cycles() - start) < ticks) in rte_delay_us_block()
|
| /f-stack/freebsd/mips/ingenic/ |
| H A D | jz4780_timer.c | 109 uint32_t ticks; in jz4780_timer_start() local 111 ticks = (first * et->et_frequency) / SBT_1S; in jz4780_timer_start() 112 if (ticks == 0) in jz4780_timer_start() 115 CSR_WRITE_4(sc, JZ_TC_TDFR(5), ticks); in jz4780_timer_start()
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | timer.h | 53 #define delay(ticks) schedule_timeout_uninterruptible(ticks) argument
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_wdog.c | 166 uint32_t ticks, reg; in bcmwd_watchdog_fn() local 190 ticks = (sec << 16) & BCM2835_WDOG_TIME_MASK; in bcmwd_watchdog_fn() 191 reg = (BCM2835_PASSWORD << BCM2835_PASSWORD_SHIFT) | ticks; in bcmwd_watchdog_fn()
|
| /f-stack/freebsd/arm/mv/armada/ |
| H A D | wdt.c | 352 uint64_t ticks; in mv_watchdog_event() local 365 ticks = (uint64_t)(ns * sc->wdt_config->wdt_clock_src) / 1000000000; in mv_watchdog_event() 366 if (ticks > MAX_WATCHDOG_TICKS) { in mv_watchdog_event() 371 mv_set_timer(wdt_softc->wdt_config->wdt_timer, ticks); in mv_watchdog_event()
|
| /f-stack/dpdk/drivers/net/octeontx2/ |
| H A D | otx2_ptp.c | 75 uint64_t ticks_base = 0, ticks = 0, tsc = 0, t_freq; in otx2_nix_raw_clock_tsc_conv() local 87 rc = nix_read_raw_clock(dev, &ticks, &tsc, false); in otx2_nix_raw_clock_tsc_conv() 93 t_freq = (ticks - ticks_base) * 10; in otx2_nix_raw_clock_tsc_conv() 105 rc = nix_read_raw_clock(dev, &ticks, &tsc, val); in otx2_nix_raw_clock_tsc_conv() 112 dev->clk_delta = ((uint64_t)(ticks / dev->clk_freq_mult) - tsc); in otx2_nix_raw_clock_tsc_conv()
|
| /f-stack/lib/ |
| H A D | ff_glue.c | 132 volatile int ticks; variable 532 now = ticks; in ppsratecheck() 550 register unsigned long ticks; local 588 ticks = 1; 590 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) 593 ticks = sec * hz 596 ticks = LONG_MAX; 597 if (ticks > INT_MAX) 598 ticks = INT_MAX; 599 return ((int)ticks);
|