Lines Matching refs:slot
84 for (unsigned int slot = 0; slot < kMaxNumSlots; ++slot) { in SlotSuffixToIndex() local
85 if (!strcmp(kSlotSuffixes[slot], suffix)) return slot; in SlotSuffixToIndex()
173 int IsSlotMarkedSuccessful(boot_control_module_t* module, unsigned int slot) { in IsSlotMarkedSuccessful() argument
179 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in IsSlotMarkedSuccessful()
188 return (bootctrl.slot_info[slot].successful_boot && in IsSlotMarkedSuccessful()
189 bootctrl.slot_info[slot].tries_remaining); in IsSlotMarkedSuccessful()
216 int SetActiveBootSlot(boot_control_module_t* module, unsigned int slot) { in SetActiveBootSlot() argument
223 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in SetActiveBootSlot()
236 if (i != slot) { in SetActiveBootSlot()
244 bootctrl.slot_info[slot].priority = kActivePriority; in SetActiveBootSlot()
245 bootctrl.slot_info[slot].tries_remaining = kActiveTries; in SetActiveBootSlot()
252 if (slot != bootctrl_module->current_slot) in SetActiveBootSlot()
253 bootctrl.slot_info[slot].verity_corrupted = 0; in SetActiveBootSlot()
258 ALOGI("Slot %d is set as active", slot); in SetActiveBootSlot()
263 int SetSlotAsUnbootable(boot_control_module_t* module, unsigned int slot) { in SetSlotAsUnbootable() argument
270 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in SetSlotAsUnbootable()
281 bootctrl.slot_info[slot].successful_boot = 0; in SetSlotAsUnbootable()
282 bootctrl.slot_info[slot].tries_remaining = 0; in SetSlotAsUnbootable()
286 ALOGI("Slot %d is marked as unbootable", slot); in SetSlotAsUnbootable()
291 int IsSlotBootable(struct boot_control_module* module, unsigned int slot) { in IsSlotBootable() argument
297 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in IsSlotBootable()
306 return bootctrl.slot_info[slot].tries_remaining; in IsSlotBootable()
309 const char* GetSuffix(boot_control_module_t* module, unsigned int slot) { in GetSuffix() argument
315 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) return NULL; in GetSuffix()
317 return kSlotSuffixes[slot]; in GetSuffix()