Lines Matching refs:slot

132 static int update_slot_attribute(const char *slot,  in update_slot_attribute()  argument
147 if (!slot) { in update_slot_attribute()
153 if (!strncmp(slot, slot_suffix_arr[i], in update_slot_attribute()
190 slot); in update_slot_attribute()
319 unsigned slot) in boot_control_check_slot_sanity() argument
324 if ((num_slots < 1) || (slot > num_slots - 1)) { in boot_control_check_slot_sanity()
350 const char *get_suffix(struct boot_control_module *module, unsigned slot) in get_suffix() argument
352 if (boot_control_check_slot_sanity(module, slot) != 0) in get_suffix()
355 return slot_suffix_arr[slot]; in get_suffix()
387 unsigned slot) in boot_ctl_set_active_slot_for_partitions() argument
472 if (!strncmp(slot_suffix_arr[slot], AB_SLOT_A_SUFFIX, in boot_ctl_set_active_slot_for_partitions()
482 } else if (!strncmp(slot_suffix_arr[slot], AB_SLOT_B_SUFFIX, in boot_ctl_set_active_slot_for_partitions()
550 int set_active_boot_slot(struct boot_control_module *module, unsigned slot) in set_active_boot_slot() argument
560 if (boot_control_check_slot_sanity(module, slot)) { in set_active_boot_slot()
593 if (boot_ctl_set_active_slot_for_partitions(map_iter->second, slot)) { in set_active_boot_slot()
599 if (!strncmp(slot_suffix_arr[slot], AB_SLOT_A_SUFFIX, in set_active_boot_slot()
603 } else if (!strncmp(slot_suffix_arr[slot], AB_SLOT_B_SUFFIX, in set_active_boot_slot()
623 int set_slot_as_unbootable(struct boot_control_module *module, unsigned slot) in set_slot_as_unbootable() argument
625 if (boot_control_check_slot_sanity(module, slot) != 0) { in set_slot_as_unbootable()
629 if (update_slot_attribute(slot_suffix_arr[slot], in set_slot_as_unbootable()
639 int is_slot_bootable(struct boot_control_module *module, unsigned slot) in is_slot_bootable() argument
644 if (boot_control_check_slot_sanity(module, slot) != 0) { in is_slot_bootable()
650 slot_suffix_arr[slot]); in is_slot_bootable()
658 int is_slot_marked_successful(struct boot_control_module *module, unsigned slot) in is_slot_marked_successful() argument
663 if (boot_control_check_slot_sanity(module, slot) != 0) { in is_slot_marked_successful()
669 "boot%s", slot_suffix_arr[slot]); in is_slot_marked_successful()