Home
last modified time | relevance | path

Searched refs:to_ns (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_init_perf_test.c67 static s64 to_ns(struct timespec ts) in to_ns() function
84 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()
/linux/drivers/w1/masters/
H A Dw1-uart.c93 static inline unsigned int to_ns(unsigned int us) in to_ns() function
121 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()
/linux/drivers/pcmcia/
H A Dyenta_socket.c62 #define to_ns(cycles) ((cycles)*120) macro