Searched refs:dev_name (Results 1 – 2 of 2) sorted by relevance
| /third_party/ulib/usbhost/ |
| A D | usbhost.c | 68 char dev_name[64]; member 275 struct usb_device *usb_device_open(const char *dev_name) in usb_device_open() argument 280 D("usb_device_open %s\n", dev_name); in usb_device_open() 286 if (access(dev_name, R_OK | W_OK) == 0) { in usb_device_open() 290 if (access(dev_name, R_OK) == 0) { in usb_device_open() 301 fd = open(dev_name, O_RDWR); in usb_device_open() 303 fd = open(dev_name, O_RDONLY); in usb_device_open() 321 D("usb_device_new %s fd: %d\n", dev_name, fd); in usb_device_new() 328 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1); in usb_device_new() 345 int fd = open(device->dev_name, O_RDWR); in usb_device_reopen_writeable() [all …]
|
| /third_party/ulib/usbhost/include/usbhost/ |
| A D | usbhost.h | 49 typedef int (* usb_device_added_cb)(const char *dev_name, void *client_data); 53 typedef int (* usb_device_removed_cb)(const char *dev_name, void *client_data); 87 struct usb_device *usb_device_open(const char *dev_name); 91 struct usb_device *usb_device_new(const char *dev_name, int fd);
|
Completed in 5 milliseconds