Searched defs:dev_name (Results 1 - 5 of 5) sorted by relevance

/system/core/libdiskconfig/
H A Dconfig_mbr.c298 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 Dlsusb.c148 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 Dusb_windows.c69 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 Dusb_linux.c85 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, const char *devpath,
560 static void register_device(const char *dev_name, const char *devpath, argument
568 /* Since Linux will not reassign the device ID (and dev_name)
578 if(!strcmp(usb->fname, dev_name)) {
586 dev_name, ep_in, ep_out, interface);
588 strcpy(usb->fname, dev_name);
/system/core/libusbhost/
H A Dusbhost.c66 char dev_name[64]; member in struct:usb_device
257 struct usb_device *usb_device_open(const char *dev_name) argument
261 D("usb_device_open %s\n", dev_name);
264 fd = open(dev_name, O_RDWR);
267 fd = open(dev_name, O_RDONLY);
279 D("[ usb open read-only %s fd = %d]\n", dev_name, fd);
282 struct usb_device* result = usb_device_new(dev_name, fd);
294 struct usb_device *usb_device_new(const char *dev_name, int fd) argument
299 D("usb_device_new %s fd: %d\n", dev_name, fd);
308 strncpy(device->dev_name, dev_nam
[all...]

Completed in 816 milliseconds