Home
last modified time | relevance | path

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

/device/amlogic/yukawa/hal/bootctrl/
Dbootloader_message.cpp75 static bool read_misc_partition(void* p, size_t size, const std::string& misc_blk_device, in read_misc_partition() argument
77 if (!wait_for_device(misc_blk_device, err)) { in read_misc_partition()
80 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition()
82 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition()
87 *err = android::base::StringPrintf("failed to lseek %s: %s", misc_blk_device.c_str(), in read_misc_partition()
92 *err = android::base::StringPrintf("failed to read %s: %s", misc_blk_device.c_str(), in read_misc_partition()
99 static bool write_misc_partition(const void* p, size_t size, const std::string& misc_blk_device, in write_misc_partition() argument
101 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY)); in write_misc_partition()
103 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in write_misc_partition()
108 *err = android::base::StringPrintf("failed to lseek %s: %s", misc_blk_device.c_str(), in write_misc_partition()
[all …]
Dbootloader_message.h196 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device,
200 bool read_bootloader_control_from(bootloader_control* boot_ctrl, const std::string& misc_blk_device,
208 const std::string& misc_blk_device, std::string* err);
215 …rite_bootloader_control_to(const bootloader_control* boot_ctrl, const std::string& misc_blk_device,