| /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 | 178 uint64_t ticks, timeout_ms; in test_timer_secondary() local 194 ticks = timeout_ms * rte_get_timer_hz() / MSECPERSEC; in test_timer_secondary() 197 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()
|
| H A D | test_timer_racecond.c | 63 uint64_t ticks = BILLION - (rte_get_timer_cycles() % BILLION) + in reload_timer() local 67 ret = rte_timer_reset(tim, ticks, PERIODICAL, main_lcore, timer_cb, NULL); in reload_timer()
|
| H A D | test_timer.c | 129 mytimer_reset(struct mytimerinfo *timinfo, uint64_t ticks, in mytimer_reset() argument 133 rte_timer_reset_sync(&timinfo->tim, ticks, type, tim_lcore, in mytimer_reset()
|
| /dpdk/lib/eal/windows/include/ |
| H A D | rte_os_shim.h | 63 uint64_t ticks; in rte_timespec_get() local 69 ticks = ((uint64_t)ft.dwHighDateTime << 32) | ft.dwLowDateTime; in rte_timespec_get() 70 ticks -= EPOCH; in rte_timespec_get() 71 now->tv_sec = ticks / TICKS_PER_SEC; in rte_timespec_get() 72 now->tv_nsec = (ticks - now->tv_sec * TICKS_PER_SEC) * NS_PER_TICK; in rte_timespec_get()
|
| /dpdk/lib/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()
|
| /dpdk/examples/rxtx_callbacks/ |
| H A D | main.c | 77 uint64_t ticks; in calc_latency() local 81 rte_eth_read_clock(port, &ticks); in calc_latency() 86 queue_ticks += ticks - *hwts_field(pkts[i]); in calc_latency() 200 uint64_t ticks; in port_init() local 201 rte_eth_read_clock(port, &ticks); in port_init() 203 uint64_t t_freq = ticks - ticks_base; in port_init()
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_ptp.c | 31 uint64_t ticks_base = 0, ticks = 0, tsc = 0, t_freq; in cnxk_nix_tsc_convert() local 44 rc = roc_nix_ptp_clock_read(nix, &ticks, &tsc, false); in cnxk_nix_tsc_convert() 50 t_freq = (ticks - ticks_base) * 10; in cnxk_nix_tsc_convert() 62 rc = roc_nix_ptp_clock_read(nix, &ticks, &tsc, val); in cnxk_nix_tsc_convert() 69 dev->clk_delta = ((uint64_t)(ticks / dev->clk_freq_mult) - tsc); in cnxk_nix_tsc_convert()
|
| /dpdk/lib/timer/ |
| H A D | rte_timer.h | 237 int rte_timer_reset(struct rte_timer *tim, uint64_t ticks, 274 rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks, 416 uint64_t ticks, enum rte_timer_type type,
|
| H A D | rte_timer.c | 544 rte_timer_reset(struct rte_timer *tim, uint64_t ticks, in rte_timer_reset() argument 548 return rte_timer_alt_reset(default_data_id, tim, ticks, type, in rte_timer_reset() 554 uint64_t ticks, enum rte_timer_type type, in rte_timer_alt_reset() argument 564 period = ticks; in rte_timer_alt_reset() 568 return __rte_timer_reset(tim, cur_time + ticks, period, tim_lcore, in rte_timer_alt_reset() 574 rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks, in rte_timer_reset_sync() argument 578 while (rte_timer_reset(tim, ticks, type, tim_lcore, in rte_timer_reset_sync()
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_timer.c | 27 const uint64_t ticks = (uint64_t)us * rte_get_timer_hz() / 1E6; in rte_delay_us_block() local 28 while ((rte_get_timer_cycles() - start) < ticks) in rte_delay_us_block()
|
| /dpdk/drivers/net/axgbe/ |
| H A D | axgbe_mdio.c | 429 unsigned long ticks; in axgbe_an73_page_received() local 436 ticks = rte_get_timer_cycles(); in axgbe_an73_page_received() 437 if (time_after(ticks, an_timeout)) { in axgbe_an73_page_received() 969 unsigned long ticks; in axgbe_check_link_timeout() local 973 ticks = rte_get_timer_cycles(); in axgbe_check_link_timeout() 974 if (time_after(ticks, link_timeout)) { in axgbe_check_link_timeout() 1025 unsigned long ticks; in autoneg_time_out() local 1029 ticks = rte_get_timer_cycles(); in autoneg_time_out() 1030 if (time_after(ticks, autoneg_timeout)) in autoneg_time_out()
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | efx_ev.c | 549 unsigned int ticks; in efx_ev_usecs_to_ticks() local 559 ticks = 0; in efx_ev_usecs_to_ticks() 561 ticks = 1; /* Never round down to zero */ in efx_ev_usecs_to_ticks() 563 ticks = us * 1000 / encp->enc_evq_timer_quantum_ns; in efx_ev_usecs_to_ticks() 565 *ticksp = ticks; in efx_ev_usecs_to_ticks() 1265 unsigned int ticks; in siena_ev_qmoderate() local 1267 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in siena_ev_qmoderate() 1270 EFSYS_ASSERT(ticks > 0); in siena_ev_qmoderate() 1273 FRF_CZ_TC_TIMER_VAL, ticks - 1); in siena_ev_qmoderate()
|
| H A D | ef10_ev.c | 354 unsigned int ticks; in ef10_ev_qmoderate() local 356 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in ef10_ev_qmoderate() 364 ERF_DD_EVQ_IND_TIMER_VAL, ticks); in ef10_ev_qmoderate() 375 ERF_DZ_TC_TIMER_VAL, ticks, in ef10_ev_qmoderate() 376 ERF_FZ_TC_TMR_REL_VAL, ticks); in ef10_ev_qmoderate()
|
| H A D | efx_mcdi.c | 2821 unsigned int ticks; in efx_mcdi_init_evq() local 2823 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in efx_mcdi_init_evq() 2828 MCDI_IN_SET_DWORD(req, INIT_EVQ_V2_IN_TMR_LOAD, ticks); in efx_mcdi_init_evq() 2829 MCDI_IN_SET_DWORD(req, INIT_EVQ_V2_IN_TMR_RELOAD, ticks); in efx_mcdi_init_evq()
|
| /dpdk/drivers/raw/ifpga/base/ |
| H A D | opae_spi_transaction.c | 130 unsigned long ticks; in do_spi_txrx() local 149 ticks = rte_get_timer_cycles(); in do_spi_txrx() 150 if (!time_after(ticks, timeout)) { in do_spi_txrx()
|
| H A D | ifpga_fme.c | 1028 unsigned long ticks; in nios_spi_wait_init_done() local 1064 ticks = rte_get_timer_cycles(); in nios_spi_wait_init_done() 1065 if (time_after(ticks, timeout)) in nios_spi_wait_init_done()
|
| /dpdk/doc/guides/eventdevs/ |
| H A D | sw.rst | 153 of ticks have passed. Timeout ticks is not supported by the software eventdev
|
| /dpdk/drivers/net/cxgbe/base/ |
| H A D | common.h | 419 unsigned int ticks) in core_ticks_to_us() argument 422 return ((ticks * 1000 + adapter->params.vpd.cclk / 2) / in core_ticks_to_us()
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | event_timer_adapter.rst | 64 The number of ticks from now in which the timer will expire. The ticks value
|
| /dpdk/drivers/net/pfe/ |
| H A D | pfe_ethdev.c | 147 uint64_t ticks = 1; /* 1 msec */ in pfe_recv_pkts_on_intr() local 162 ret = epoll_wait(priv->pfe->hif.epoll_fd, &epoll_ev, 1, ticks); in pfe_recv_pkts_on_intr()
|
| /dpdk/drivers/event/dlb2/ |
| H A D | dlb2_selftest.c | 156 const uint64_t ticks = (tmo_us * rte_get_timer_hz()) / 1E6; in enqueue_timeout() local 158 while ((rte_get_timer_cycles() - start) < ticks) { in enqueue_timeout()
|
| /dpdk/examples/l3fwd-power/ |
| H A D | main.c | 2385 uint64_t ticks; in telemetry_setup_timer() local 2387 ticks = hz / TELEMETRY_INTERVALS_PER_SEC; in telemetry_setup_timer() 2389 ticks, in telemetry_setup_timer()
|
| /dpdk/drivers/net/ena/ |
| H A D | ena_ethdev.c | 1181 uint64_t ticks; in ena_start() local 1217 ticks = rte_get_timer_hz(); in ena_start() 1218 rte_timer_reset(&adapter->timer_wd, ticks, PERIODICAL, rte_lcore_id(), in ena_start()
|