Home
last modified time | relevance | path

Searched refs:misc_device (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/boot_control/
Dboot_control.cpp43 const char* misc_device; member
94 bool LoadBootloaderControl(const char* misc_device, bootloader_control* buffer) { in LoadBootloaderControl() argument
95 android::base::unique_fd fd(open(misc_device, O_RDONLY)); in LoadBootloaderControl()
97 PLOG(ERROR) << "failed to open " << misc_device; in LoadBootloaderControl()
101 PLOG(ERROR) << "failed to lseek " << misc_device; in LoadBootloaderControl()
105 PLOG(ERROR) << "failed to read " << misc_device; in LoadBootloaderControl()
111 bool UpdateAndSaveBootloaderControl(const char* misc_device, bootloader_control* buffer) { in UpdateAndSaveBootloaderControl() argument
113 android::base::unique_fd fd(open(misc_device, O_WRONLY | O_SYNC)); in UpdateAndSaveBootloaderControl()
115 PLOG(ERROR) << "failed to open " << misc_device; in UpdateAndSaveBootloaderControl()
119 PLOG(ERROR) << "failed to lseek " << misc_device; in UpdateAndSaveBootloaderControl()
[all …]
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp39 void SetMiscBlockDeviceForTest(std::string_view misc_device) { in SetMiscBlockDeviceForTest() argument
40 g_misc_device_for_test = misc_device; in SetMiscBlockDeviceForTest()
/bootable/recovery/tests/component/
Dbootloader_message_test.cpp28 extern void SetMiscBlockDeviceForTest(std::string_view misc_device);