Lines Matching refs:devh
39 show_master (libusb_device_handle *devh, int itfnum)
44 res = libusb_control_transfer (devh,
61 get_bdaddr (libusb_device_handle *devh, int itfnum)
67 res = libusb_control_transfer (devh,
89 set_master_bdaddr (libusb_device_handle *devh, int itfnum, char *host)
109 res = libusb_control_transfer (devh,
149 libusb_device_handle *devh;
154 if (libusb_open (dev, &devh) < 0) {
158 libusb_detach_kernel_driver (devh, itfnum);
160 res = libusb_claim_interface (devh, itfnum);
167 if (show_master (devh, itfnum) == FALSE)
196 device = get_bdaddr (devh, itfnum);
212 if (set_master_bdaddr (devh, itfnum, option_master) == FALSE) {
219 libusb_release_interface (devh, itfnum);
220 res = libusb_attach_kernel_driver(devh, itfnum);
225 if (devh != NULL)
226 libusb_close (devh);