Home
last modified time | relevance | path

Searched refs:misc_device (Results 1 – 1 of 1) 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 …]