Lines Matching refs:order
321 printf(" Status: %sactive%s\n", active ? "" : "in", in_order ? ", boot-order" : "");
331 _cleanup_free_ uint16_t *options = NULL, *order = NULL;
346 n_order = efi_get_boot_order(&order);
350 return log_error_errno(n_order, "Failed to read EFI boot order.");
355 print_efi_option(order[i], true);
362 if (options[i] == order[j])
673 _cleanup_free_ uint16_t *order = NULL;
677 n = efi_get_boot_order(&order);
683 if (n == 1 && order[0] == slot)
686 /* are we already in the boot order? */
688 if (order[i] != slot)
696 memmove(order + 1, order, i * sizeof(uint16_t));
697 order[0] = slot;
698 return efi_set_boot_order(order, n);
702 t = realloc(order, (n + 1) * sizeof(uint16_t));
705 order = t;
709 memmove(order + 1, order, n * sizeof(uint16_t));
710 order[0] = slot;
712 order[n] = slot;
714 return efi_set_boot_order(order, n + 1);
718 _cleanup_free_ uint16_t *order = NULL;
721 n = efi_get_boot_order(&order);
726 if (order[i] != slot)
730 memmove(order + i, order + i+1, (n - i) * sizeof(uint16_t));
731 return efi_set_boot_order(order, n - 1);
763 "Failed to determine current boot order: %m");