Lines Matching refs:usb_device
81 struct usb_device { struct
323 struct usb_device *usb_device_open(const char *dev_name) in usb_device_open()
358 struct usb_device* result = usb_device_new(dev_name, fd); in usb_device_open()
364 void usb_device_close(struct usb_device *device) in usb_device_close()
370 struct usb_device *usb_device_new(const char *dev_name, int fd) in usb_device_new()
372 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new()
399 static int usb_device_reopen_writeable(struct usb_device *device) in usb_device_reopen_writeable()
415 int usb_device_get_fd(struct usb_device *device) in usb_device_get_fd()
422 const char* usb_device_get_name(struct usb_device *device) in usb_device_get_name()
427 int usb_device_get_unique_id(struct usb_device *device) in usb_device_get_unique_id()
450 uint16_t usb_device_get_vendor_id(struct usb_device *device) in usb_device_get_vendor_id()
456 uint16_t usb_device_get_product_id(struct usb_device *device) in usb_device_get_product_id()
462 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device* device) { in usb_device_get_device_descriptor()
466 size_t usb_device_get_descriptors_length(const struct usb_device* device) { in usb_device_get_descriptors_length()
470 const unsigned char* usb_device_get_raw_descriptors(const struct usb_device* device) { in usb_device_get_raw_descriptors()
488 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out, in usb_device_get_string_ucs2()
537 char* usb_device_get_string(struct usb_device* device, int id, int timeout) { in usb_device_get_string()
558 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout) in usb_device_get_manufacturer_name()
564 char* usb_device_get_product_name(struct usb_device *device, int timeout) in usb_device_get_product_name()
570 int usb_device_get_version(struct usb_device *device) in usb_device_get_version()
576 char* usb_device_get_serial(struct usb_device *device, int timeout) in usb_device_get_serial()
582 int usb_device_is_writeable(struct usb_device *device) in usb_device_is_writeable()
587 void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter) in usb_descriptor_iter_init()
609 int usb_device_claim_interface(struct usb_device *device, unsigned int interface) in usb_device_claim_interface()
614 int usb_device_release_interface(struct usb_device *device, unsigned int interface) in usb_device_release_interface()
619 int usb_device_connect_kernel_driver(struct usb_device *device, in usb_device_connect_kernel_driver()
630 int usb_device_set_configuration(struct usb_device *device, int configuration) in usb_device_set_configuration()
635 int usb_device_set_interface(struct usb_device *device, unsigned int interface, in usb_device_set_interface()
645 int usb_device_control_transfer(struct usb_device *device, in usb_device_control_transfer()
671 int usb_device_bulk_transfer(struct usb_device *device, in usb_device_bulk_transfer()
687 int usb_device_reset(struct usb_device *device) in usb_device_reset()
692 struct usb_request *usb_request_new(struct usb_device *dev, in usb_request_new()
747 struct usb_request *usb_request_wait(struct usb_device *dev, int timeoutMillis) in usb_request_wait()