Lines Matching refs:order
524 _cleanup_free_ uint16_t *options = NULL, *order = NULL; in status_variables() local
535 n_order = efi_get_boot_order(&order); in status_variables()
544 print_efi_option(order[i], true); in status_variables()
549 if (options[i] == order[j]) in status_variables()
917 _cleanup_free_ uint16_t *order = NULL; in insert_into_order() local
921 n = efi_get_boot_order(&order); in insert_into_order()
927 if (n == 1 && order[0] == slot) in insert_into_order()
932 if (order[i] != slot) in insert_into_order()
940 memmove(order + 1, order, i * sizeof(uint16_t)); in insert_into_order()
941 order[0] = slot; in insert_into_order()
942 return efi_set_boot_order(order, n); in insert_into_order()
946 t = reallocarray(order, n + 1, sizeof(uint16_t)); in insert_into_order()
949 order = t; in insert_into_order()
953 memmove(order + 1, order, n * sizeof(uint16_t)); in insert_into_order()
954 order[0] = slot; in insert_into_order()
956 order[n] = slot; in insert_into_order()
958 return efi_set_boot_order(order, n + 1); in insert_into_order()
962 _cleanup_free_ uint16_t *order = NULL; in remove_from_order() local
965 n = efi_get_boot_order(&order); in remove_from_order()
970 if (order[i] != slot) in remove_from_order()
974 memmove(order + i, order + i+1, (n - i) * sizeof(uint16_t)); in remove_from_order()
975 return efi_set_boot_order(order, n - 1); in remove_from_order()