Lines Matching refs:ms

33 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms)
43 if (fido_time_delta(&ts, ms) != 0)
50 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument
62 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty()
70 tx_preamble(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) in tx_preamble() argument
89 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_preamble()
97 tx_frame(fido_dev_t *d, uint8_t seq, const void *buf, size_t count, int *ms) in tx_frame() argument
114 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_frame()
122 tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count, int *ms) in tx() argument
126 if ((sent = tx_preamble(d, cmd, buf, count, ms)) == 0) { in tx()
137 ms)) == 0) { in tx()
147 transport_tx(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) in transport_tx() argument
157 if (fido_time_delta(&ts, ms) != 0) in transport_tx()
164 fido_tx(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) in fido_tx() argument
170 return (transport_tx(d, cmd, buf, count, ms)); in fido_tx()
176 return (count == 0 ? tx_empty(d, cmd, ms) : tx(d, cmd, buf, count, ms)); in fido_tx()
180 rx_frame(fido_dev_t *d, struct frame *fp, int *ms) in rx_frame() argument
191 (unsigned char *)fp, d->rx_len, *ms)) < 0 || (size_t)n != d->rx_len) in rx_frame()
194 return (fido_time_delta(&ts, ms)); in rx_frame()
198 rx_preamble(fido_dev_t *d, uint8_t cmd, struct frame *fp, int *ms) in rx_preamble() argument
201 if (rx_frame(d, fp, ms) < 0) in rx_preamble()
227 rx(fido_dev_t *d, uint8_t cmd, unsigned char *buf, size_t count, int *ms) in rx() argument
243 if (rx_preamble(d, cmd, &f, ms) < 0) { in rx()
265 if (rx_frame(d, &f, ms) < 0) { in rx()
295 transport_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms) in transport_rx() argument
303 n = d->transport.rx(d, cmd, buf, count, *ms); in transport_rx()
305 if (fido_time_delta(&ts, ms) != 0) in transport_rx()
312 fido_rx(fido_dev_t *d, uint8_t cmd, void *buf, size_t count, int *ms) in fido_rx() argument
317 cmd, *ms); in fido_rx()
320 return (transport_rx(d, cmd, buf, count, ms)); in fido_rx()
325 if ((n = rx(d, cmd, buf, count, ms)) >= 0) in fido_rx()
332 fido_rx_cbor_status(fido_dev_t *d, int *ms) in fido_rx_cbor_status() argument
338 ms)) < 0 || (size_t)reply_len < 1) { in fido_rx_cbor_status()