// SPDX-License-Identifier: GPL-2.0-only #include <linux/efi.h> #include <asm/efi.h> #include "efistub.h" struct efi_unaccepted_memory *unaccepted_table; efi_status_t allocate_unaccepted_bitmap(__u32 nr_desc, struct efi_boot_memmap *map) { … } /* * The accepted memory bitmap only works at unit_size granularity. Take * unaligned start/end addresses and either: * 1. Accepts the memory immediately and in its entirety * 2. Accepts unaligned parts, and marks *some* aligned part unaccepted * * The function will never reach the bitmap_set() with zero bits to set. */ void process_unaccepted_memory(u64 start, u64 end) { … } void accept_memory(phys_addr_t start, unsigned long size) { … }