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

/system/core/include/usbhost/
H A Dusbhost.h44 struct usb_device *dev;
90 /* Creates a usb_device object for a USB device */
91 struct usb_device *usb_device_open(const char *dev_name);
94 void usb_device_close(struct usb_device *device);
96 /* Creates a usb_device object for already open USB device */
97 struct usb_device *usb_device_new(const char *dev_name, int fd);
99 /* Returns the file descriptor for the usb_device */
100 int usb_device_get_fd(struct usb_device *device);
105 const char* usb_device_get_name(struct usb_device *device);
110 int usb_device_get_unique_id(struct usb_device *devic
[all...]
/system/core/toolbox/
H A Dlsusb.c28 static const char *get_str(struct usb_device *dev, int id)
43 static void lsusb_parse_device_descriptor(struct usb_device *dev,
62 static void lsusb_parse_config_descriptor(struct usb_device *dev,
75 static void lsusb_parse_interface_descriptor(struct usb_device *dev,
89 static void lsusb_parse_endpoint_descriptor(struct usb_device *dev,
102 static void lsusb_dump_descriptor(struct usb_device *dev,
121 static void lsusb_parse_descriptor(struct usb_device *dev,
150 struct usb_device *dev = usb_device_open(dev_name);
/system/core/libusbhost/
H A Dusbhost.c64 struct usb_device { struct
206 struct usb_device *usb_device_open(const char *dev_name)
231 struct usb_device* result = usb_device_new(dev_name, fd);
237 void usb_device_close(struct usb_device *device)
243 struct usb_device *usb_device_new(const char *dev_name, int fd)
245 struct usb_device *device = calloc(1, sizeof(struct usb_device));
270 static int usb_device_reopen_writeable(struct usb_device *device)
286 int usb_device_get_fd(struct usb_device *device)
293 const char* usb_device_get_name(struct usb_device *devic
[all...]

Completed in 172 milliseconds