Searched refs:NSEC_PER_SEC (Results 1 – 17 of 17) sorted by relevance
15 #define NSEC_PER_SEC 1000000000L macro85 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()
106 #define NSEC_PER_SEC 1E9 macro107 #define NSEC2CLK(__ns, __freq) (((__ns) * (__freq)) / NSEC_PER_SEC)108 #define CLK2NSEC(__clk, __freq) (((__clk) * NSEC_PER_SEC) / (__freq))
174 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()
41 #define NSEC_PER_SEC 1000000000L macro140 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()
348 #define NSEC_PER_SEC 1000000000L macro361 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()
336 offset += trace->epoch_nsec * (freq / NSEC_PER_SEC); in meta_fix_freq_offset()
57 return pcapng_time.ns + (delta * NSEC_PER_SEC) / rte_get_tsc_hz(); in pcapng_tsc_to_ns()
178 stop.duration = NSEC_PER_SEC * interval; in auto_stop()
676 #define NSEC_PER_SEC 1000000000L macro
1594 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()
49 #define NSEC_PER_SEC 1000000000L macro
469 *tstamp->tx_tstamp = ((*tstamp->tx_tstamp >> 32) * NSEC_PER_SEC) + in cn10k_nix_timesync_read_tx_timestamp()
837 *tstamp_ptr = ((*tstamp_ptr >> 32) * NSEC_PER_SEC) + in cn10k_nix_mbuf_to_tstamp()
3536 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()
4580 * 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()
55 #define NSEC_PER_SEC (USEC_PER_SEC * 1000) /**< Nano-seconds per second */ macro
103 #define NSEC_PER_SEC 1000000000L macro6670 * 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()