Searched refs:to_ns (Results 1 – 3 of 3) sorted by relevance
67 static s64 to_ns(struct timespec ts) in to_ns() function84 return to_timespec(to_ns(a) - to_ns(b)); in timespec_sub()89 return to_ns(a) < to_ns(b) ? a : b; in timespec_min()94 return to_ns(a) > to_ns(b) ? a : b; in timespec_max()141 thread_ns += to_ns(init_time); in TEST_F()
93 static inline unsigned int to_ns(unsigned int us) in to_ns() function121 bits_low = to_ns(limits->bit_min_us) / bit_ns; in w1_uart_set_config()125 if (low_ns < to_ns(limits->bit_min_us)) in w1_uart_set_config()128 if (low_ns > to_ns(limits->bit_max_us)) in w1_uart_set_config()133 bit_ns * BITS_PER_BYTE < low_ns + to_ns(limits->sample_us)) in w1_uart_set_config()139 if (to_ns(limits->cycle_us) > packet_ns) in w1_uart_set_config()141 (to_ns(limits->cycle_us) - packet_ns) / NSEC_PER_USEC; in w1_uart_set_config()
62 #define to_ns(cycles) ((cycles)*120) macro