Searched defs:dev_name (Results 1 - 5 of 5) sorted by relevance
/system/core/libdiskconfig/ |
H A D | config_mbr.c | 298 char *dev_name = NULL; local 312 if (!(dev_name = malloc(MAX_NAME_LEN))) { 317 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); 320 free(dev_name); 324 return dev_name;
|
/system/core/toolbox/ |
H A D | lsusb.c | 148 static int lsusb_device_added(const char *dev_name, void *client_data) argument 150 struct usb_device *dev = usb_device_open(dev_name); 153 fprintf(stderr, "can't open device %s: %s\n", dev_name, strerror(errno)); 161 printf("%s:\n", dev_name); 178 printf("%s: %04x:%04x %s %s %s\n", dev_name, vid, pid, 191 static int lsusb_device_removed(const char *dev_name, void *client_data) argument
|
/system/core/adb/ |
H A D | usb_windows.c | 69 int known_device(const char* dev_name); 73 int known_device_locked(const char* dev_name); 116 int known_device_locked(const char* dev_name) { argument 119 if (NULL != dev_name) { 124 (0 == stricmp(usb->interface_name, dev_name))) { 133 int known_device(const char* dev_name) { argument 136 if (NULL != dev_name) { 138 ret = known_device_locked(dev_name);
|
H A D | usb_linux.c | 85 static int known_device(const char *dev_name) argument 91 if(!strcmp(usb->fname, dev_name)) { 119 static void register_device(const char *dev_name, unsigned char ep_in, unsigned char ep_out, 535 static void register_device(const char *dev_name, argument 543 /* Since Linux will not reassign the device ID (and dev_name) 553 if(!strcmp(usb->fname, dev_name)) { 561 dev_name, ep_in, ep_out, interface); 563 strcpy(usb->fname, dev_name);
|
/system/core/libusbhost/ |
H A D | usbhost.c | 65 char dev_name[64]; member in struct:usb_device 206 struct usb_device *usb_device_open(const char *dev_name) argument 210 D("usb_device_open %s\n", dev_name); 213 fd = open(dev_name, O_RDWR); 216 fd = open(dev_name, O_RDONLY); 228 D("[ usb open read-only %s fd = %d]\n", dev_name, fd); 231 struct usb_device* result = usb_device_new(dev_name, fd); 243 struct usb_device *usb_device_new(const char *dev_name, int fd) argument 248 D("usb_device_new %s fd: %d\n", dev_name, fd); 257 strncpy(device->dev_name, dev_nam [all...] |
Completed in 298 milliseconds