Lines Matching refs:dev
11 fido_dev_reset_tx(fido_dev_t *dev, int *ms)
15 if (fido_tx(dev, CTAP_CMD_CBOR, cbor, sizeof(cbor), ms) < 0) {
24 fido_dev_reset_wait(fido_dev_t *dev, int *ms)
28 if ((r = fido_dev_reset_tx(dev, ms)) != FIDO_OK ||
29 (r = fido_rx_cbor_status(dev, ms)) != FIDO_OK)
32 if (dev->flags & FIDO_DEV_PIN_SET) {
33 dev->flags &= ~FIDO_DEV_PIN_SET;
34 dev->flags |= FIDO_DEV_PIN_UNSET;
41 fido_dev_reset(fido_dev_t *dev)
43 int ms = dev->timeout_ms;
45 return (fido_dev_reset_wait(dev, &ms));