• Home
  • Raw
  • Download

Lines Matching refs:tv

1644 API_EXPORTED int libusb_wait_for_event(libusb_context *ctx, struct timeval *tv)  in libusb_wait_for_event()  argument
1650 if (tv == NULL) { in libusb_wait_for_event()
1661 timeout.tv_sec += tv->tv_sec; in libusb_wait_for_event()
1662 timeout.tv_nsec += tv->tv_usec * 1000; in libusb_wait_for_event()
1776 static int handle_events(struct libusb_context *ctx, struct timeval *tv) in handle_events() argument
1804 timeout_ms = (tv->tv_sec * 1000) + (tv->tv_usec / 1000); in handle_events()
1807 if (tv->tv_usec % 1000) in handle_events()
1882 static int get_next_timeout(libusb_context *ctx, struct timeval *tv, in get_next_timeout() argument
1893 if (timercmp(&timeout, tv, <)) in get_next_timeout()
1896 *out = *tv; in get_next_timeout()
1898 *out = *tv; in get_next_timeout()
1923 struct timeval *tv) in libusb_handle_events_timeout() argument
1929 r = get_next_timeout(ctx, tv, &poll_timeout); in libusb_handle_events_timeout()
1978 struct timeval tv; in libusb_handle_events() local
1979 tv.tv_sec = 60; in libusb_handle_events()
1980 tv.tv_usec = 0; in libusb_handle_events()
1981 return libusb_handle_events_timeout(ctx, &tv); in libusb_handle_events()
2002 struct timeval *tv) in libusb_handle_events_locked() argument
2008 r = get_next_timeout(ctx, tv, &poll_timeout); in libusb_handle_events_locked()
2086 struct timeval *tv) in libusb_get_next_timeout() argument
2138 timerclear(tv); in libusb_get_next_timeout()
2140 timersub(next_timeout, &cur_tv, tv); in libusb_get_next_timeout()
2141 usbi_dbg("next timeout in %d.%06ds", tv->tv_sec, tv->tv_usec); in libusb_get_next_timeout()