Lines Matching refs:tsp
524 struct timespec now, ts, *tsp; in eloop_start() local
555 tsp = &ts; in eloop_start()
558 tsp = NULL; in eloop_start()
560 if (tsp == NULL && ctx->events_len == 0) { in eloop_start()
566 if (tsp == NULL) in eloop_start()
568 else if (tsp->tv_sec > INT_MAX / 1000 || in eloop_start()
569 (tsp->tv_sec == INT_MAX / 1000 && in eloop_start()
570 (tsp->tv_nsec + 999999) / 1000000 > INT_MAX % 1000000)) in eloop_start()
573 timeout = (int)(tsp->tv_sec * 1000 + in eloop_start()
574 (tsp->tv_nsec + 999999) / 1000000); in eloop_start()
578 n = kevent(ctx->poll_fd, NULL, 0, &ke, 1, tsp); in eloop_start()
588 n = pollts(ctx->fds, (nfds_t)ctx->events_len, tsp, in eloop_start()