| /linux/drivers/virt/acrn/ |
| H A D | mm.c | 108 int acrn_vm_memseg_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) in acrn_vm_memseg_map() argument 112 if (memmap->type == ACRN_MEMMAP_RAM) in acrn_vm_memseg_map() 113 return acrn_vm_ram_map(vm, memmap); in acrn_vm_memseg_map() 115 if (memmap->type != ACRN_MEMMAP_MMIO) { in acrn_vm_memseg_map() 117 "Invalid memmap type: %u\n", memmap->type); in acrn_vm_memseg_map() 121 ret = acrn_mm_region_add(vm, memmap->user_vm_pa, in acrn_vm_memseg_map() 122 memmap->service_vm_pa, memmap->len, in acrn_vm_memseg_map() 123 ACRN_MEM_TYPE_UC, memmap->attr); in acrn_vm_memseg_map() 131 int acrn_vm_memseg_unmap(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) in acrn_vm_memseg_unmap() argument 135 if (memmap->type != ACRN_MEMMAP_MMIO) { in acrn_vm_memseg_unmap() [all …]
|
| H A 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()
|
| H A 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/drivers/firmware/efi/ |
| H A D | memmap.c | 61 efi.memmap = map; in __efi_memmap_init() 78 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); in efi_memmap_init_early() 89 if (!(efi.memmap.flags & EFI_MEMMAP_LATE)) { in efi_memmap_unmap() 92 size = efi.memmap.desc_size * efi.memmap.nr_map; in efi_memmap_unmap() 93 early_memunmap(efi.memmap.map, size); in efi_memmap_unmap() 95 memunmap(efi.memmap.map); in efi_memmap_unmap() 98 efi.memmap.map = NULL; in efi_memmap_unmap() 134 WARN_ON(efi.memmap.map); in efi_memmap_init_late() 137 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); in efi_memmap_init_late() 144 data.desc_version = efi.memmap.desc_version; in efi_memmap_init_late() [all …]
|
| H A D | riscv-runtime.c | 69 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in riscv_enable_runtime_services() 71 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in riscv_enable_runtime_services()
|
| H A 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()
|
| H A D | efi-init.c | 252 WARN(efi.memmap.desc_version != 1, in efi_init() 254 efi.memmap.desc_version); in efi_init()
|
| H A D | Makefile | 15 obj-$(CONFIG_EFI) += memmap.o
|
| /linux/arch/x86/platform/efi/ |
| H A D | efi.c | 223 WARN(efi.memmap.desc_version != 1, in efi_memblock_x86_reserve_range() 225 efi.memmap.desc_version); in efi_memblock_x86_reserve_range() 227 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); in efi_memblock_x86_reserve_range() 273 efi_memory_desc_t *out = efi.memmap.map; in efi_clean_memmap() 275 const efi_memory_desc_t *end = efi.memmap.map_end; in efi_clean_memmap() 281 memcpy(out, in, efi.memmap.desc_size); in efi_clean_memmap() 282 out = (void *)out + efi.memmap.desc_size; in efi_clean_memmap() 286 in = (void *)in + efi.memmap.desc_size; in efi_clean_memmap() 291 .phys_map = efi.memmap.phys_map, in efi_clean_memmap() 292 .desc_version = efi.memmap.desc_version, in efi_clean_memmap() [all …]
|
| H A D | memmap.c | 65 data->size = num_entries * efi.memmap.desc_size; in efi_memmap_alloc() 66 data->desc_version = efi.memmap.desc_version; in efi_memmap_alloc() 67 data->desc_size = efi.memmap.desc_size; in efi_memmap_alloc() 69 data->flags |= efi.memmap.flags & EFI_MEMMAP_LATE; in efi_memmap_alloc() 96 unsigned long size = efi.memmap.desc_size * efi.memmap.nr_map; in efi_memmap_install() 97 unsigned long flags = efi.memmap.flags; in efi_memmap_install() 98 u64 phys = efi.memmap.phys_map; in efi_memmap_install()
|
| H A 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 = kzalloc_objs(entry, efi.memmap.nr_map); in efi_runtime_map_init()
|
| H A 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() 427 sz = sizeof(*ranges_to_free) * efi.memmap.nr_map + 1; in efi_unmap_boot_services() 527 memcpy(new_md, md, efi.memmap.desc_size); in efi_unmap_boot_services() 528 new_md += efi.memmap.desc_size; in efi_unmap_boot_services()
|
| H A D | Makefile | 5 obj-$(CONFIG_EFI) += memmap.o quirks.o efi.o efi_$(BITS).o \
|
| /linux/Documentation/ABI/testing/ |
| H A 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/arch/x86/xen/ |
| H A D | enlighten_pvh.c | 174 struct xen_memory_map memmap; in mem_map_via_hcall() local 177 memmap.nr_entries = ARRAY_SIZE(boot_params_p->e820_table); in mem_map_via_hcall() 178 set_xen_guest_handle(memmap.buffer, boot_params_p->e820_table); in mem_map_via_hcall() 179 rc = HYPERVISOR_memory_op(XENMEM_memory_map, &memmap); in mem_map_via_hcall() 184 boot_params_p->e820_entries = memmap.nr_entries; in mem_map_via_hcall()
|
| /linux/arch/mips/include/asm/dec/ |
| H A D | prom.h | 74 } memmap; typedef 82 extern int (*__rex_getbitmap)(memmap *); 109 int __DEC_PROM_O32(_rex_getbitmap, (int (*)(memmap *), void *, memmap *));
|
| /linux/arch/mips/dec/prom/ |
| H A D | memory.c | 63 memmap *bm; in rex_setup_memory_region() 66 bm = (memmap *)CKSEG0ADDR(0x28000); in rex_setup_memory_region()
|
| /linux/arch/xtensa/boot/dts/ |
| H A D | kc705.dts | 9 …ative,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000";
|
| /linux/Documentation/translations/zh_TW/arch/loongarch/ |
| H A D | booting.rst | 21 LoongArch支持ACPI和FDT啓動,需要傳遞給內核的信息包括memmap、initrd、cmdline、可
|
| /linux/Documentation/translations/zh_CN/arch/loongarch/ |
| H A D | booting.rst | 21 LoongArch支持ACPI和FDT启动,需要传递给内核的信息包括memmap、initrd、cmdline、可
|
| /linux/drivers/nvdimm/ |
| H A D | Kconfig | 30 'memmap=nn[KMG]!ss[KMG]' kernel command line (see 108 'memmap=nn[KMG]!ss[KMG]' kernel command line or defined by dummy 111 The driver steals 128K in the end of the memmap range for the
|
| /linux/arch/xtensa/configs/ |
| H A D | iss_defconfig | 6 …8.1 root=nfs nfsroot=192.168.168.1:/opt/montavista/pro/devkit/xtensa/linux_be/target memmap=128M@0"
|
| H A D | virt_defconfig | 25 CONFIG_CMDLINE="console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x80000000@0"
|
| /linux/drivers/firmware/ |
| H A D | Makefile | 15 obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|
| /linux/Documentation/arch/loongarch/ |
| H A D | booting.rst | 14 to the kernel includes the memmap, the initrd, the command line, optionally
|