Searched refs:dev_name (Results 1 - 7 of 7) sorted by relevance
/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/include/usbhost/ |
H A D | usbhost.h | 57 typedef int (* usb_device_added_cb)(const char *dev_name, void *client_data); 62 typedef int (* usb_device_removed_cb)(const char *dev_name, void *client_data); 104 struct usb_device *usb_device_open(const char *dev_name); 110 struct usb_device *usb_device_new(const char *dev_name, int fd); 116 * the dev_name passed to usb_device_open() 121 *Currently this is generated from the dev_name path.
|
/system/core/adb/ |
H A D | usb_windows.c | 70 int known_device(const char* dev_name); 74 int known_device_locked(const char* dev_name); 117 int known_device_locked(const char* dev_name) { argument 120 if (NULL != dev_name) { 125 (0 == stricmp(usb->interface_name, dev_name))) { 134 int known_device(const char* dev_name) { argument 137 if (NULL != dev_name) { 139 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, 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 D | usbhost.c | 76 char dev_name[64]; member in struct:usb_device 317 struct usb_device *usb_device_open(const char *dev_name) argument 321 D("usb_device_open %s\n", dev_name); 324 fd = open(dev_name, O_RDWR); 327 fd = open(dev_name, O_RDONLY); 339 D("[ usb open read-only %s fd = %d]\n", dev_name, fd); 342 struct usb_device* result = usb_device_new(dev_name, fd); 354 struct usb_device *usb_device_new(const char *dev_name, int fd) argument 359 D("usb_device_new %s fd: %d\n", dev_name, fd); 368 strncpy(device->dev_name, dev_nam [all...] |
/system/core/libdiskconfig/ |
H A D | config_mbr.c | 325 char *dev_name = NULL; local 339 if (!(dev_name = malloc(MAX_NAME_LEN))) { 344 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); 347 free(dev_name); 351 return dev_name;
|
/system/core/fs_mgr/ |
H A D | fs_mgr_verity.c | 261 static int get_verity_device_name(struct dm_ioctl *io, char *name, int fd, char **dev_name) argument 269 if (asprintf(dev_name, "/dev/block/dm-%u", dev_num) < 0) {
|
Completed in 197 milliseconds