Home
last modified time | relevance | path

Searched refs:partition_num (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/
Dboot_control_chromeos.cc94 int partition_num; in Init() local
95 if (!utils::SplitPartitionName(boot_device, &boot_disk_name_, &partition_num)) in Init()
114 partition_num != in Init()
145 int partition_num = GetPartitionNumber(partition_name, slot); in GetPartitionDevice() local
146 if (partition_num < 0) in GetPartitionDevice()
149 string part_device = utils::MakePartitionName(boot_disk_name_, partition_num); in GetPartitionDevice()
158 int partition_num = GetPartitionNumber(kChromeOSPartitionNameKernel, slot); in IsSlotBootable() local
159 if (partition_num < 0) in IsSlotBootable()
165 params.partition = partition_num; in IsSlotBootable()
182 int partition_num = GetPartitionNumber(kChromeOSPartitionNameKernel, slot); in MarkSlotUnbootable() local
[all …]
/system/update_engine/common/
Dutils.cc100 string MakeNandPartitionName(int partition_num) { in MakeNandPartitionName() argument
101 switch (partition_num) { in MakeNandPartitionName()
105 return base::StringPrintf("/dev/mtd%d", partition_num); in MakeNandPartitionName()
108 return base::StringPrintf("/dev/ubi%d_0", partition_num); in MakeNandPartitionName()
115 string MakeNandPartitionNameForMount(int partition_num) { in MakeNandPartitionNameForMount() argument
116 switch (partition_num) { in MakeNandPartitionNameForMount()
120 return base::StringPrintf("/dev/mtd%d", partition_num); in MakeNandPartitionNameForMount()
125 return base::StringPrintf("/dev/ubiblock%d_0", partition_num); in MakeNandPartitionNameForMount()
128 return base::StringPrintf("/dev/ubi%d_0", partition_num); in MakeNandPartitionNameForMount()
512 string MakePartitionName(const string& disk_name, int partition_num) { in MakePartitionName() argument
[all …]
Dutils.h171 int partition_num);
/system/core/init/
Ddevices.cpp68 int partition_num; member
374 uevent->partition_num = -1; in parse_event()
399 uevent->partition_num = atoi(msg); in parse_event()
516 if (uevent->partition_num >= 0) { in get_block_device_symlinks()
517 if (asprintf(&links[link_num], "%s/by-num/p%d", link_path, uevent->partition_num) > 0) in get_block_device_symlinks()