Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 17 of 17) sorted by relevance

/dpdk/lib/eal/include/
H A Drte_time.h15 #define NSEC_PER_SEC 1000000000L macro
85 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in rte_timespec_to_ns()
99 ts.tv_sec = nsec / NSEC_PER_SEC; in rte_ns_to_timespec()
100 ts.tv_nsec = nsec % NSEC_PER_SEC; in rte_ns_to_timespec()
/dpdk/drivers/event/octeontx/
H A Dtimvf_evdev.h106 #define NSEC_PER_SEC 1E9 macro
107 #define NSEC2CLK(__ns, __freq) (((__ns) * (__freq)) / NSEC_PER_SEC)
108 #define CLK2NSEC(__clk, __freq) (((__clk) * NSEC_PER_SEC) / (__freq))
/dpdk/drivers/net/hns3/
H A Dhns3_ptp.c174 ns += sec * NSEC_PER_SEC; in hns3_timesync_read_rx_timestamp()
207 ns += sec * NSEC_PER_SEC; in hns3_timesync_read_tx_timestamp()
231 ns += sec * NSEC_PER_SEC; in hns3_timesync_read_time()
/dpdk/examples/ptpclient/
H A Dptpclient.c41 #define NSEC_PER_SEC 1000000000L macro
140 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()
152 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()
153 t_spec.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
157 rem += NSEC_PER_SEC; in ns_to_timeval()
/dpdk/drivers/net/pcap/
H A Dpcap_ethdev.c348 #define NSEC_PER_SEC 1000000000L macro
361 cur_time.tv_nsec = (cycles % hz) * NSEC_PER_SEC / hz; in calculate_timestamp()
365 if (ts->tv_usec >= NSEC_PER_SEC) { in calculate_timestamp()
366 ts->tv_usec -= NSEC_PER_SEC; in calculate_timestamp()
/dpdk/lib/eal/common/
H A Deal_common_trace_ctf.c336 offset += trace->epoch_nsec * (freq / NSEC_PER_SEC); in meta_fix_freq_offset()
/dpdk/lib/pcapng/
H A Drte_pcapng.c57 return pcapng_time.ns + (delta * NSEC_PER_SEC) / rte_get_tsc_hz(); in pcapng_tsc_to_ns()
/dpdk/app/dumpcap/
H A Dmain.c178 stop.duration = NSEC_PER_SEC * interval; in auto_stop()
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ethdev.h676 #define NSEC_PER_SEC 1000000000L macro
/dpdk/drivers/net/axgbe/
H A Daxgbe_ethdev.c1594 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_time()
1757 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_rx_timestamp()
1794 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_tx_timestamp()
H A Daxgbe_common.h49 #define NSEC_PER_SEC 1000000000L macro
/dpdk/drivers/net/cnxk/
H A Dcn10k_ethdev.c469 *tstamp->tx_tstamp = ((*tstamp->tx_tstamp >> 32) * NSEC_PER_SEC) + in cn10k_nix_timesync_read_tx_timestamp()
H A Dcn10k_rx.h837 *tstamp_ptr = ((*tstamp_ptr >> 32) * NSEC_PER_SEC) + in cn10k_nix_mbuf_to_tstamp()
/dpdk/drivers/net/ice/
H A Dice_ethdev.c3536 start_time = (current_time + NSEC_PER_SEC) / in ice_pps_out_cfg()
3537 NSEC_PER_SEC * NSEC_PER_SEC; in ice_pps_out_cfg()
3546 ICE_WRITE_REG(hw, GLTSYN_CLKO(idx, timer), NSEC_PER_SEC / 2); in ice_pps_out_cfg()
/dpdk/drivers/net/e1000/
H A Digb_ethdev.c4580 * NSEC_PER_SEC; in igb_read_systime_cyclecounter()
4617 * NSEC_PER_SEC; in igb_read_rx_tstamp_cyclecounter()
4649 * NSEC_PER_SEC; in igb_read_tx_tstamp_cyclecounter()
/dpdk/app/test/
H A Dtest_red.c55 #define NSEC_PER_SEC (USEC_PER_SEC * 1000) /**< Nano-seconds per second */ macro
/dpdk/drivers/net/ixgbe/
H A Dixgbe_ethdev.c103 #define NSEC_PER_SEC 1000000000L macro
6670 * NSEC_PER_SEC; in ixgbe_read_systime_cyclecounter()
6694 * NSEC_PER_SEC; in ixgbe_read_rx_tstamp_cyclecounter()
6719 * NSEC_PER_SEC; in ixgbe_read_tx_tstamp_cyclecounter()