Home
last modified time | relevance | path

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

/hardware/ti/am57x/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,
/hardware/google/pixel/misc_writer/
Dmisc_writer.cpp42 auto misc_blk_device = get_misc_blk_device(err); in WriteMiscPartitionVendorSpace() local
43 if (misc_blk_device.empty()) { in WriteMiscPartitionVendorSpace()
46 return write_misc_partition(data, size, misc_blk_device, VENDOR_SPACE_OFFSET_IN_MISC + offset, in WriteMiscPartitionVendorSpace()
Dmisc_writer_test.cpp54 auto misc_blk_device = get_misc_blk_device(&err); in CheckMiscPartitionVendorSpaceContent() local
55 ASSERT_FALSE(misc_blk_device.empty()); in CheckMiscPartitionVendorSpaceContent()
56 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in CheckMiscPartitionVendorSpaceContent()