Searched refs:sysfs_name (Results 1 – 1 of 1) sorted by relevance
/system/core/fastboot/ |
D | usb_linux.cpp | 143 static int filter_usb_device(char* sysfs_name, in filter_usb_device() argument 177 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device() 191 "/sys/bus/usb/devices/%s/serial", sysfs_name); in filter_usb_device() 270 sysfs_name, sysfs_name, ifc->bInterfaceNumber); in filter_usb_device() 286 static int read_sysfs_string(const char *sysfs_name, const char *sysfs_node, in read_sysfs_string() argument 293 "/sys/bus/usb/devices/%s/%s", sysfs_name, sysfs_node); in read_sysfs_string() 311 static int read_sysfs_number(const char *sysfs_name, const char *sysfs_node) in read_sysfs_number() argument 316 if (read_sysfs_string(sysfs_name, sysfs_node, buf, sizeof(buf)) < 0) in read_sysfs_number() 328 static int convert_to_devfs_name(const char* sysfs_name, in convert_to_devfs_name() argument 333 busnum = read_sysfs_number(sysfs_name, "busnum"); in convert_to_devfs_name() [all …]
|