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

/system/core/include/usbhost/
H A Dusbhost.h44 struct usb_device *dev;
103 /* Creates a usb_device object for a USB device */
104 struct usb_device *usb_device_open(const char *dev_name);
107 void usb_device_close(struct usb_device *device);
109 /* Creates a usb_device object for already open USB device */
110 struct usb_device *usb_device_new(const char *dev_name, int fd);
112 /* Returns the file descriptor for the usb_device */
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 *devic
[all...]
/system/core/libusbhost/
H A Dusbhost.c78 struct usb_device { struct
320 struct usb_device *usb_device_open(const char *dev_name)
345 struct usb_device* result = usb_device_new(dev_name, fd);
351 void usb_device_close(struct usb_device *device)
357 struct usb_device *usb_device_new(const char *dev_name, int fd)
359 struct usb_device *device = calloc(1, sizeof(struct usb_device));
384 static int usb_device_reopen_writeable(struct usb_device *device)
400 int usb_device_get_fd(struct usb_device *device)
407 const char* usb_device_get_name(struct usb_device *devic
[all...]

Completed in 5 milliseconds