Lines Matching refs:ms
146 rx_init(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_init() argument
159 if ((n = d->io.read(d->io_handle, f, sizeof(f), ms)) < 2 || in rx_init()
203 rx_apdu(fido_dev_t *d, uint8_t sw[2], unsigned char **buf, size_t *count, int *ms) in rx_apdu() argument
212 if ((n = d->io.read(d->io_handle, f, sizeof(f), *ms)) < 2) { in rx_apdu()
217 if (fido_time_delta(&ts, ms) != 0) in rx_apdu()
235 rx_msg(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_msg() argument
240 if (rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
247 rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
266 rx_cbor(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_cbor() argument
270 if ((r = rx_msg(d, buf, count, ms)) < 2) in rx_cbor()
277 fido_nfc_rx(fido_dev_t *d, uint8_t cmd, unsigned char *buf, size_t count, int ms) in fido_nfc_rx() argument
281 return rx_init(d, buf, count, ms); in fido_nfc_rx()
283 return rx_cbor(d, buf, count, ms); in fido_nfc_rx()
285 return rx_msg(d, buf, count, ms); in fido_nfc_rx()