Searched refs:ms_remain (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/libfido2/src/ |
H A D | time.c | 44 fido_time_delta(const struct timespec *ts_start, int *ms_remain) in fido_time_delta() argument 49 if (*ms_remain < 0) in fido_time_delta() 69 if (ms > *ms_remain) in fido_time_delta() 70 ms = *ms_remain; in fido_time_delta() 72 *ms_remain -= ms; in fido_time_delta()
|
H A D | u2f.c | 33 delay_ms(unsigned int ms, int *ms_remain) in delay_ms() argument 35 if (*ms_remain > -1 && (unsigned int)*ms_remain < ms) in delay_ms() 36 ms = (unsigned int)*ms_remain; in delay_ms() 48 if (*ms_remain > -1) in delay_ms() 49 *ms_remain -= (int)ms; in delay_ms()
|
/freebsd/contrib/libfido2/examples/ |
H A D | select.c | 71 long ms_remain; in select_dev() local 157 ms_remain = (secs * 1000) - ((long)ts_delta.tv_sec * 1000) + in select_dev() 159 } while (ms_remain > FIDO_POLL_MS); in select_dev()
|
/freebsd/crypto/openssh/ |
H A D | packet.c | 1340 int len, r, ms_remain = 0; in ssh_packet_read_seqnr() local 1371 ms_remain = state->packet_timeout_ms; in ssh_packet_read_seqnr() 1377 ms_to_timespec(×pec, ms_remain); in ssh_packet_read_seqnr() 1389 ms_subtract_diff(&start, &ms_remain); in ssh_packet_read_seqnr() 1390 if (ms_remain <= 0) { in ssh_packet_read_seqnr() 2039 int ret, r, ms_remain = 0; in ssh_packet_write_wait() local 2052 ms_remain = state->packet_timeout_ms; in ssh_packet_write_wait() 2057 ms_to_timespec(×pec, ms_remain); in ssh_packet_write_wait() 2067 ms_subtract_diff(&start, &ms_remain); in ssh_packet_write_wait() 2068 if (ms_remain <= 0) { in ssh_packet_write_wait()
|
H A D | sk-usbhid.c | 513 int touch, ms_remain; in sk_select_by_touch() local 550 ms_remain = SELECT_MS - tv_delta.tv_sec * 1000 - in sk_select_by_touch() 552 } while (ms_remain >= FIDO_POLL_MS); in sk_select_by_touch()
|
H A D | ChangeLog | 3647 upstream: Ensure ms_remain is always initialized
|