Lines Matching defs:handle
43 * @handle: handle of tested device
51 libusb_device_handle *handle;
67 state->handle = NULL;
102 ret = libusb_open(state->found, &state->handle);
108 if (libusb_claim_interface(state->handle, 0)) {
109 ret = libusb_detach_kernel_driver(state->handle, 0);
116 ret = libusb_claim_interface(state->handle, 0);
128 libusb_attach_kernel_driver(state->handle, 0);
131 libusb_close(state->handle);
147 libusb_release_interface(state->handle, 0);
149 libusb_attach_kernel_driver(state->handle, 0);
150 libusb_close(state->handle);
172 libusb_bulk_transfer(state.handle, in_addr, buffer, BUF_LEN,
174 libusb_bulk_transfer(state.handle, out_addr, buffer, BUF_LEN,