Lines Matching refs:handle
51 libusb_device_handle *handle; member
67 state->handle = NULL; in test_init()
102 ret = libusb_open(state->found, &state->handle); in test_init()
108 if (libusb_claim_interface(state->handle, 0)) { in test_init()
109 ret = libusb_detach_kernel_driver(state->handle, 0); in test_init()
116 ret = libusb_claim_interface(state->handle, 0); in test_init()
128 libusb_attach_kernel_driver(state->handle, 0); in test_init()
131 libusb_close(state->handle); in test_init()
147 libusb_release_interface(state->handle, 0); in test_exit()
149 libusb_attach_kernel_driver(state->handle, 0); in test_exit()
150 libusb_close(state->handle); in test_exit()
172 libusb_bulk_transfer(state.handle, in_addr, buffer, BUF_LEN, in main()
174 libusb_bulk_transfer(state.handle, out_addr, buffer, BUF_LEN, in main()