Lines Matching defs:handle
22 void *handle;
173 if ((ctx->handle = hid_open_path(path)) == NULL) {
184 fido_hid_close(void *handle)
186 struct hid_hidapi *ctx = handle;
188 hid_close(ctx->handle);
193 fido_hid_set_sigmask(void *handle, const fido_sigset_t *sigmask)
195 (void)handle;
202 fido_hid_read(void *handle, unsigned char *buf, size_t len, int ms)
204 struct hid_hidapi *ctx = handle;
211 return hid_read_timeout(ctx->handle, buf, len, ms);
215 fido_hid_write(void *handle, const unsigned char *buf, size_t len)
217 struct hid_hidapi *ctx = handle;
224 return hid_write(ctx->handle, buf, len);
256 fido_hid_report_in_len(void *handle)
258 struct hid_hidapi *ctx = handle;
264 fido_hid_report_out_len(void *handle)
266 struct hid_hidapi *ctx = handle;