Searched refs:misc_device (Results 1 – 3 of 3) sorted by relevance
/hardware/ti/am57x/bootctrl/ |
D | boot_control.cc | 36 const char* misc_device; member 58 static bool LoadBootloaderControl(const char* misc_device, in LoadBootloaderControl() argument 61 if (read_bootloader_control_from(boot_ctrl, misc_device, &str_err)) in LoadBootloaderControl() 69 static bool SaveBootloaderControl(const char* misc_device, in SaveBootloaderControl() argument 74 if (write_bootloader_control_to(boot_ctrl, misc_device, &str_err)) in SaveBootloaderControl() 128 bootctrl_module->misc_device = strdup(device.c_str()); in BootControlInit() 185 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in IsSlotMarkedSuccessful() 199 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in MarkBootSuccessful() 207 if (!SaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in MarkBootSuccessful() 229 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in SetActiveBootSlot() [all …]
|
/hardware/interfaces/boot/1.1/default/boot_control/ |
D | libboot_control.cpp | 80 bool LoadBootloaderControl(const std::string& misc_device, bootloader_control* buffer) { in LoadBootloaderControl() argument 81 android::base::unique_fd fd(open(misc_device.c_str(), O_RDONLY)); in LoadBootloaderControl() 83 PLOG(ERROR) << "failed to open " << misc_device; in LoadBootloaderControl() 87 PLOG(ERROR) << "failed to lseek " << misc_device; in LoadBootloaderControl() 91 PLOG(ERROR) << "failed to read " << misc_device; in LoadBootloaderControl() 97 bool UpdateAndSaveBootloaderControl(const std::string& misc_device, bootloader_control* buffer) { in UpdateAndSaveBootloaderControl() argument 99 android::base::unique_fd fd(open(misc_device.c_str(), O_WRONLY | O_SYNC)); in UpdateAndSaveBootloaderControl() 101 PLOG(ERROR) << "failed to open " << misc_device; in UpdateAndSaveBootloaderControl() 105 PLOG(ERROR) << "failed to lseek " << misc_device; in UpdateAndSaveBootloaderControl() 109 PLOG(ERROR) << "failed to write " << misc_device; in UpdateAndSaveBootloaderControl() [all …]
|
/hardware/interfaces/boot/1.1/default/boot_control/include/libboot_control/ |
D | libboot_control.h | 46 const std::string& misc_device() const { in misc_device() function
|