Home
last modified time | relevance | path

Searched refs:sysfs_node (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/payload_consumer/
Dmtd_file_descriptor.cc53 string sysfs_node(kSysfsClassUbi); in GetUbiVolumeInfo() local
54 sysfs_node.append(ubi_name.MaybeAsASCII()); in GetUbiVolumeInfo()
60 if (!ReadFile(sysfs_node + kReservedEbs, &s_reserved_ebs)) { in GetUbiVolumeInfo()
61 LOG(ERROR) << "Cannot read " << sysfs_node + kReservedEbs; in GetUbiVolumeInfo()
65 if (!ReadFile(sysfs_node + kUsableEbSize, &s_eb_size)) { in GetUbiVolumeInfo()
66 LOG(ERROR) << "Cannot read " << sysfs_node + kUsableEbSize; in GetUbiVolumeInfo()
/system/core/fastboot/
Dusb_linux.cpp270 static int read_sysfs_string(const char *sysfs_name, const char *sysfs_node, in read_sysfs_string() argument
277 "/sys/bus/usb/devices/%s/%s", sysfs_name, sysfs_node); in read_sysfs_string()
295 static int read_sysfs_number(const char *sysfs_name, const char *sysfs_node) in read_sysfs_number() argument
300 if (read_sysfs_string(sysfs_name, sysfs_node, buf, sizeof(buf)) < 0) in read_sysfs_number()