Lines Matching defs:devh
60 static struct libusb_device_handle *devh = NULL;
70 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a);
71 return devh ? 0 : -EIO;
80 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data,
102 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0);
121 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0);
139 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0);
182 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL,
195 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH,
404 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf,
406 libusb_fill_interrupt_transfer(irq_transfer, devh, EP_INTR, irqbuf,
434 r = libusb_claim_interface(devh, 0);
501 libusb_release_interface(devh, 0);
503 libusb_close(devh);