/linux-6.6.21/drivers/firmware/efi/ |
D | memmap.c | 54 if (efi.memmap.flags & (EFI_MEMMAP_MEMBLOCK | EFI_MEMMAP_SLAB)) in __efi_memmap_init() 55 __efi_memmap_free(efi.memmap.phys_map, in __efi_memmap_init() 56 efi.memmap.desc_size * efi.memmap.nr_map, in __efi_memmap_init() 57 efi.memmap.flags); in __efi_memmap_init() 69 efi.memmap = map; in __efi_memmap_init() 84 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); in efi_memmap_init_early() 95 if (!(efi.memmap.flags & EFI_MEMMAP_LATE)) { in efi_memmap_unmap() 98 size = efi.memmap.desc_size * efi.memmap.nr_map; in efi_memmap_unmap() 99 early_memunmap(efi.memmap.map, size); in efi_memmap_unmap() 101 memunmap(efi.memmap.map); in efi_memmap_unmap() [all …]
|
D | riscv-runtime.c | 77 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in riscv_enable_runtime_services() 79 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in riscv_enable_runtime_services()
|
D | arm-runtime.c | 99 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in arm_enable_runtime_services() 101 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in arm_enable_runtime_services()
|
D | efi-init.c | 222 WARN(efi.memmap.desc_version != 1, in efi_init() 224 efi.memmap.desc_version); in efi_init()
|
/linux-6.6.21/drivers/virt/acrn/ |
D | mm.c | 107 int acrn_vm_memseg_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) in acrn_vm_memseg_map() argument 111 if (memmap->type == ACRN_MEMMAP_RAM) in acrn_vm_memseg_map() 112 return acrn_vm_ram_map(vm, memmap); in acrn_vm_memseg_map() 114 if (memmap->type != ACRN_MEMMAP_MMIO) { in acrn_vm_memseg_map() 116 "Invalid memmap type: %u\n", memmap->type); in acrn_vm_memseg_map() 120 ret = acrn_mm_region_add(vm, memmap->user_vm_pa, in acrn_vm_memseg_map() 121 memmap->service_vm_pa, memmap->len, in acrn_vm_memseg_map() 122 ACRN_MEM_TYPE_UC, memmap->attr); in acrn_vm_memseg_map() 130 int acrn_vm_memseg_unmap(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) in acrn_vm_memseg_unmap() argument 134 if (memmap->type != ACRN_MEMMAP_MMIO) { in acrn_vm_memseg_unmap() [all …]
|
D | hsm.c | 116 struct acrn_vm_memmap memmap; in acrn_dev_ioctl() local 219 if (copy_from_user(&memmap, (void __user *)ioctl_param, in acrn_dev_ioctl() 220 sizeof(memmap))) in acrn_dev_ioctl() 223 ret = acrn_vm_memseg_map(vm, &memmap); in acrn_dev_ioctl() 226 if (copy_from_user(&memmap, (void __user *)ioctl_param, in acrn_dev_ioctl() 227 sizeof(memmap))) in acrn_dev_ioctl() 230 ret = acrn_vm_memseg_unmap(vm, &memmap); in acrn_dev_ioctl()
|
D | acrn_drv.h | 197 int acrn_vm_memseg_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap); 198 int acrn_vm_memseg_unmap(struct acrn_vm *vm, struct acrn_vm_memmap *memmap); 199 int acrn_vm_ram_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap);
|
/linux-6.6.21/arch/x86/platform/efi/ |
D | efi.c | 231 WARN(efi.memmap.desc_version != 1, in efi_memblock_x86_reserve_range() 233 efi.memmap.desc_version); in efi_memblock_x86_reserve_range() 235 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); in efi_memblock_x86_reserve_range() 281 efi_memory_desc_t *out = efi.memmap.map; in efi_clean_memmap() 283 const efi_memory_desc_t *end = efi.memmap.map_end; in efi_clean_memmap() 289 memcpy(out, in, efi.memmap.desc_size); in efi_clean_memmap() 290 out = (void *)out + efi.memmap.desc_size; in efi_clean_memmap() 294 in = (void *)in + efi.memmap.desc_size; in efi_clean_memmap() 299 .phys_map = efi.memmap.phys_map, in efi_clean_memmap() 300 .desc_version = efi.memmap.desc_version, in efi_clean_memmap() [all …]
|
D | runtime-map.c | 141 return efi.memmap.nr_map * efi.memmap.desc_size; in efi_get_runtime_map_size() 146 return efi.memmap.desc_size; in efi_get_runtime_map_desc_size() 156 memcpy(buf, efi.memmap.map, sz); in efi_runtime_map_copy() 169 map_entries = kcalloc(efi.memmap.nr_map, sizeof(entry), GFP_KERNEL); in efi_runtime_map_init()
|
D | memmap.c | 64 data->size = num_entries * efi.memmap.desc_size; in efi_memmap_alloc() 65 data->desc_version = efi.memmap.desc_version; in efi_memmap_alloc() 66 data->desc_size = efi.memmap.desc_size; in efi_memmap_alloc() 68 data->flags |= efi.memmap.flags & EFI_MEMMAP_LATE; in efi_memmap_alloc()
|
D | quirks.c | 281 num_entries += efi.memmap.nr_map; in efi_arch_mem_reserve() 295 efi_memmap_insert(&efi.memmap, new, &mr); in efi_arch_mem_reserve() 503 memcpy(new_md, md, efi.memmap.desc_size); in efi_free_boot_services() 504 new_md += efi.memmap.desc_size; in efi_free_boot_services()
|
D | fake_mem.c | 43 int new_nr_map = efi.memmap.nr_map; in efi_fake_range() 62 efi_memmap_insert(&efi.memmap, new_memmap, efi_range); in efi_fake_range()
|
D | Makefile | 5 obj-$(CONFIG_EFI) += memmap.o quirks.o efi.o efi_$(BITS).o \
|
/linux-6.6.21/Documentation/ABI/testing/ |
D | sysfs-firmware-memmap | 1 What: /sys/firmware/memmap/ 19 that reason, /sys/firmware/memmap is an interface that provides 22 The structure is as follows: Under /sys/firmware/memmap there 25 /sys/firmware/memmap/0 26 /sys/firmware/memmap/1 27 /sys/firmware/memmap/2 28 /sys/firmware/memmap/3 48 /sys/firmware/memmap/0/start 49 /sys/firmware/memmap/0/end 50 /sys/firmware/memmap/0/type [all …]
|
/linux-6.6.21/arch/x86/xen/ |
D | enlighten_pvh.c | 63 struct xen_memory_map memmap; in mem_map_via_hcall() local 66 memmap.nr_entries = ARRAY_SIZE(boot_params_p->e820_table); in mem_map_via_hcall() 67 set_xen_guest_handle(memmap.buffer, boot_params_p->e820_table); in mem_map_via_hcall() 68 rc = HYPERVISOR_memory_op(XENMEM_memory_map, &memmap); in mem_map_via_hcall() 73 boot_params_p->e820_entries = memmap.nr_entries; in mem_map_via_hcall()
|
D | setup.c | 735 struct xen_memory_map memmap; in xen_memory_setup() local 746 memmap.nr_entries = ARRAY_SIZE(xen_e820_table.entries); in xen_memory_setup() 747 set_xen_guest_handle(memmap.buffer, xen_e820_table.entries); in xen_memory_setup() 756 rc = HYPERVISOR_memory_op(op, &memmap); in xen_memory_setup() 759 memmap.nr_entries = 1; in xen_memory_setup() 768 BUG_ON(memmap.nr_entries == 0); in xen_memory_setup() 769 xen_e820_table.nr_entries = memmap.nr_entries; in xen_memory_setup()
|
/linux-6.6.21/mm/ |
D | sparse.c | 646 static void free_map_bootmem(struct page *memmap) in free_map_bootmem() argument 648 unsigned long start = (unsigned long)memmap; in free_map_bootmem() 649 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem() 717 static void free_map_bootmem(struct page *memmap) in free_map_bootmem() argument 721 struct page *page = virt_to_page(memmap); in free_map_bootmem() 784 struct page *memmap = NULL; in section_deactivate() local 812 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in section_deactivate() 821 else if (memmap) in section_deactivate() 822 free_map_bootmem(memmap); in section_deactivate() 834 struct page *memmap; in section_activate() local [all …]
|
D | bootmem_info.c | 47 struct page *page, *memmap; in register_page_bootmem_info_section() local 54 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in register_page_bootmem_info_section() 60 page = virt_to_page(memmap); in register_page_bootmem_info_section() 82 struct page *page, *memmap; in register_page_bootmem_info_section() local 88 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in register_page_bootmem_info_section() 90 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION); in register_page_bootmem_info_section()
|
/linux-6.6.21/arch/mips/include/asm/dec/ |
D | prom.h | 74 } memmap; typedef 82 extern int (*__rex_getbitmap)(memmap *); 109 int __DEC_PROM_O32(_rex_getbitmap, (int (*)(memmap *), void *, memmap *));
|
/linux-6.6.21/arch/mips/dec/prom/ |
D | memory.c | 63 memmap *bm; in rex_setup_memory_region() 66 bm = (memmap *)CKSEG0ADDR(0x28000); in rex_setup_memory_region()
|
D | init.c | 25 int (*__rex_getbitmap)(memmap *);
|
/linux-6.6.21/arch/xtensa/boot/dts/ |
D | kc705.dts | 9 …ative,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000";
|
/linux-6.6.21/Documentation/translations/zh_CN/arch/loongarch/ |
D | booting.rst | 21 LoongArch支持ACPI和FDT启动,需要传递给内核的信息包括memmap、initrd、cmdline、可
|
/linux-6.6.21/arch/xtensa/configs/ |
D | iss_defconfig | 6 …8.1 root=nfs nfsroot=192.168.168.1:/opt/montavista/pro/devkit/xtensa/linux_be/target memmap=128M@0"
|
/linux-6.6.21/drivers/firmware/ |
D | Makefile | 17 obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|