Home
last modified time | relevance | path

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

/hardware/interfaces/boot/1.1/default/boot_control/
Dlibboot_control.cpp75 uint32_t BootloaderControlLECRC(const bootloader_control* boot_ctrl) { in BootloaderControlLECRC() argument
77 CRC32(reinterpret_cast<const uint8_t*>(boot_ctrl), offsetof(bootloader_control, crc32_le))); in BootloaderControlLECRC()
115 void InitDefaultBootloaderControl(BootControl* control, bootloader_control* boot_ctrl) { in InitDefaultBootloaderControl() argument
116 memset(boot_ctrl, 0, sizeof(*boot_ctrl)); in InitDefaultBootloaderControl()
120 strlcpy(boot_ctrl->slot_suffix, kSlotSuffixes[current_slot], sizeof(boot_ctrl->slot_suffix)); in InitDefaultBootloaderControl()
122 boot_ctrl->magic = BOOT_CTRL_MAGIC; in InitDefaultBootloaderControl()
123 boot_ctrl->version = BOOT_CTRL_VERSION; in InitDefaultBootloaderControl()
127 boot_ctrl->nb_slot = kMaxNumSlots; in InitDefaultBootloaderControl()
153 boot_ctrl->nb_slot = last_existing_slot + 1; in InitDefaultBootloaderControl()
161 if (slot < boot_ctrl->nb_slot) { in InitDefaultBootloaderControl()
[all …]
/hardware/ti/am57x/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…