Lines Matching refs:slot
658 /* find free slot in the sorted BootXXXX variable list */
672 static int insert_into_order(uint16_t slot, bool first) {
680 return efi_set_boot_order(&slot, 1);
683 if (n == 1 && order[0] == slot)
688 if (order[i] != slot)
695 /* move us to the first slot */
697 order[0] = slot;
710 order[0] = slot;
712 order[n] = slot;
717 static int remove_from_order(uint16_t slot) {
726 if (order[i] != slot)
742 uint16_t slot;
758 r = find_slot(uuid, path, &slot);
766 r = efi_add_boot_option(slot, "Linux Boot Manager",
775 return insert_into_order(slot, first);
859 uint16_t slot;
865 r = find_slot(uuid, path, &slot);
869 r = efi_remove_boot_option(slot);
874 return remove_from_order(slot);