Home
last modified time | relevance | path

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

/device/amlogic/yukawa/hal/bootctrl/
Dboot_control.cc53 static uint32_t GetBootloaderControlCRC(const bootloader_control* boot_ctrl) { in GetBootloaderControlCRC() argument
54 return crc32(0, (const uint8_t*)boot_ctrl, in GetBootloaderControlCRC()
59 bootloader_control* boot_ctrl) { in LoadBootloaderControl() argument
61 if (read_bootloader_control_from(boot_ctrl, misc_device, &str_err)) in LoadBootloaderControl()
70 bootloader_control* boot_ctrl) { in SaveBootloaderControl() argument
71 boot_ctrl->crc32_le = GetBootloaderControlCRC(boot_ctrl); in SaveBootloaderControl()
74 if (write_bootloader_control_to(boot_ctrl, misc_device, &str_err)) in SaveBootloaderControl()
123 bootloader_control boot_ctrl; in BootControlInit() local
124 if (!LoadBootloaderControl(device.c_str(), &boot_ctrl)) in BootControlInit()
129 uint32_t computed_crc32 = GetBootloaderControlCRC(&boot_ctrl); in BootControlInit()
[all …]
Dbootloader_message.cpp146 bool read_bootloader_control_from(bootloader_control* boot_ctrl, const std::string& misc_blk_device, in read_bootloader_control_from() argument
148 return read_misc_partition(boot_ctrl, sizeof(bootloader_control), misc_blk_device, in read_bootloader_control_from()
166 bool write_bootloader_control_to(const bootloader_control* boot_ctrl, const std::string& misc_blk_d… in write_bootloader_control_to() argument
168 return write_misc_partition(boot_ctrl, sizeof(bootloader_control), misc_blk_device, in write_bootloader_control_to()
Dbootloader_message.h200 bool read_bootloader_control_from(bootloader_control* boot_ctrl, const std::string& misc_blk_device,
215 bool write_bootloader_control_to(const bootloader_control* boot_ctrl, const std::string& misc_blk_d…