• Home
  • Raw
  • Download

Lines Matching refs:misc_device

43   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()
123 PLOG(ERROR) << "failed to write " << misc_device; in UpdateAndSaveBootloaderControl()
143 std::string base_path = module->misc_device; in InitDefaultBootloaderControl()
227 module->misc_device = strdup(device.c_str()); in BootControl_lazyInitialization()
260 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_markBootSuccessful()
267 if (!UpdateAndSaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_markBootSuccessful()
280 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_setActiveBootSlot()
304 if (!UpdateAndSaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_setActiveBootSlot()
317 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_setSlotAsUnbootable()
323 if (!UpdateAndSaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_setSlotAsUnbootable()
336 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_isSlotBootable()
350 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_isSlotMarkedSuccessful()
398 .misc_device = nullptr,