Searched refs:NSEC_PER_SEC (Results 1 – 12 of 12) sorted by relevance
11 #define NSEC_PER_SEC 1000000000L macro81 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in rte_timespec_to_ns()95 ts.tv_sec = nsec / NSEC_PER_SEC; in rte_ns_to_timespec()96 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))
41 #define NSEC_PER_SEC 1000000000L macro146 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()158 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()159 t_spec.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()163 rem += NSEC_PER_SEC; in ns_to_timeval()
114 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in gethrtime()
295 #define NSEC_PER_SEC 1000000000L macro304 cur_time.tv_usec = (cycles % hz) * NSEC_PER_SEC / hz; in calculate_timestamp()308 if (ts->tv_usec >= NSEC_PER_SEC) { in calculate_timestamp()309 ts->tv_usec -= NSEC_PER_SEC; in calculate_timestamp()
338 offset += trace->epoch_nsec * (freq / NSEC_PER_SEC); in meta_fix_freq_offset()
369 #define NSEC_PER_SEC 1000000000L macro
1551 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_time()1714 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_rx_timestamp()1751 nsec *= NSEC_PER_SEC; in axgbe_timesync_read_tx_timestamp()
49 #define NSEC_PER_SEC 1000000000L macro
31 #define NSEC_PER_SEC (USEC_PER_SEC * 1000) /**< Nano-seconds per second */ macro
4599 * NSEC_PER_SEC; in igb_read_systime_cyclecounter()4636 * NSEC_PER_SEC; in igb_read_rx_tstamp_cyclecounter()4668 * NSEC_PER_SEC; in igb_read_tx_tstamp_cyclecounter()
103 #define NSEC_PER_SEC 1000000000L macro6861 * NSEC_PER_SEC; in ixgbe_read_systime_cyclecounter()6885 * NSEC_PER_SEC; in ixgbe_read_rx_tstamp_cyclecounter()6910 * NSEC_PER_SEC; in ixgbe_read_tx_tstamp_cyclecounter()