Home
last modified time | relevance | path

Searched refs:usb_device (Results 1 – 3 of 3) sorted by relevance

/system/core/include/usbhost/
Dusbhost.h44 struct usb_device *dev;
104 struct usb_device *usb_device_open(const char *dev_name);
107 void usb_device_close(struct usb_device *device);
110 struct usb_device *usb_device_new(const char *dev_name, int fd);
113 int usb_device_get_fd(struct usb_device *device);
118 const char* usb_device_get_name(struct usb_device *device);
123 int usb_device_get_unique_id(struct usb_device *device);
135 uint16_t usb_device_get_vendor_id(struct usb_device *device);
138 uint16_t usb_device_get_product_id(struct usb_device *device);
140 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);
[all …]
/system/core/libusbhost/
Dusbhost.c75 struct usb_device { struct
317 struct usb_device *usb_device_open(const char *dev_name) in usb_device_open()
342 struct usb_device* result = usb_device_new(dev_name, fd); in usb_device_open()
348 void usb_device_close(struct usb_device *device) in usb_device_close()
354 struct usb_device *usb_device_new(const char *dev_name, int fd) in usb_device_new()
356 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new()
381 static int usb_device_reopen_writeable(struct usb_device *device) in usb_device_reopen_writeable()
397 int usb_device_get_fd(struct usb_device *device) in usb_device_get_fd()
404 const char* usb_device_get_name(struct usb_device *device) in usb_device_get_name()
409 int usb_device_get_unique_id(struct usb_device *device) in usb_device_get_unique_id()
[all …]
/system/core/toolbox/
Dlsusb.c28 static const char *get_str(struct usb_device *dev, int id) in get_str()
43 static void lsusb_parse_device_descriptor(struct usb_device *dev, in lsusb_parse_device_descriptor()
62 static void lsusb_parse_config_descriptor(struct usb_device *dev, in lsusb_parse_config_descriptor()
75 static void lsusb_parse_interface_descriptor(struct usb_device *dev, in lsusb_parse_interface_descriptor()
89 static void lsusb_parse_endpoint_descriptor(struct usb_device *dev, in lsusb_parse_endpoint_descriptor()
102 static void lsusb_dump_descriptor(struct usb_device *dev, in lsusb_dump_descriptor()
121 static void lsusb_parse_descriptor(struct usb_device *dev, in lsusb_parse_descriptor()
150 struct usb_device *dev = usb_device_open(dev_name); in lsusb_device_added()