Lines Matching refs:tv
323 struct timeval tv; in dgram_adjust_rcv_timeout()
324 socklen_t sz = sizeof(tv); in dgram_adjust_rcv_timeout()
326 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &tv, &sz) < 0) in dgram_adjust_rcv_timeout()
330 data->socket_timeout = ossl_time_from_timeval(tv); in dgram_adjust_rcv_timeout()
351 tv = ossl_time_to_timeval(timeleft); in dgram_adjust_rcv_timeout()
352 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &tv, in dgram_adjust_rcv_timeout()
353 sizeof(tv)) < 0) in dgram_adjust_rcv_timeout()
398 struct timeval tv = ossl_time_to_timeval(data->socket_timeout); in dgram_reset_rcv_timeout()
400 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in dgram_reset_rcv_timeout()
786 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
787 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
806 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
814 tv->tv_sec = timeout / 1000; in dgram_ctrl()
815 tv->tv_usec = (timeout % 1000) * 1000; in dgram_ctrl()
816 ret = sizeof(*tv); in dgram_ctrl()
836 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
837 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
856 struct timeval *tv = (struct timeval *)ptr; in dgram_ctrl() local
864 tv->tv_sec = timeout / 1000; in dgram_ctrl()
865 tv->tv_usec = (timeout % 1000) * 1000; in dgram_ctrl()
866 ret = sizeof(*tv); in dgram_ctrl()