Lines Matching refs:tv_sec
124 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer()
132 ssl->d1->next_timeout.tv_sec += ssl->d1->timeout_duration_ms / 1000; in dtls1_start_timer()
135 ssl->d1->next_timeout.tv_sec++; in dtls1_start_timer()
146 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout()
154 if (ssl->d1->next_timeout.tv_sec < timenow.tv_sec || in DTLSv1_get_timeout()
155 (ssl->d1->next_timeout.tv_sec == timenow.tv_sec && in DTLSv1_get_timeout()
164 ret.tv_sec -= timenow.tv_sec; in DTLSv1_get_timeout()
169 ret.tv_sec--; in DTLSv1_get_timeout()
174 if (ret.tv_sec == 0 && ret.tv_usec < 15000) { in DTLSv1_get_timeout()
179 if (ret.tv_sec > INT_MAX) { in DTLSv1_get_timeout()
181 out->tv_sec = INT_MAX; in DTLSv1_get_timeout()
183 out->tv_sec = ret.tv_sec; in DTLSv1_get_timeout()
199 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) { in dtls1_is_timer_expired()