/linux-master/drivers/firmware/efi/ |
H A D | memmap.c | 27 * map the EFI memory map in efi.memmap based on how far into the boot 54 if (efi.memmap.flags & (EFI_MEMMAP_MEMBLOCK | EFI_MEMMAP_SLAB)) 55 __efi_memmap_free(efi.memmap.phys_map, 56 efi.memmap.desc_size * efi.memmap.nr_map, 57 efi.memmap.flags); 69 efi.memmap = map; 79 * it to efi.memmap. 86 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); 97 if (!(efi.memmap [all...] |
H A D | riscv-runtime.c | 77 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; 79 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) {
|
H A D | arm-runtime.c | 99 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; 101 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) {
|
H A D | efi-init.c | 231 WARN(efi.memmap.desc_version != 1, 233 efi.memmap.desc_version);
|
H A D | Makefile | 15 obj-$(CONFIG_EFI) += memmap.o
|
/linux-master/drivers/virt/acrn/ |
H A D | mm.c | 107 int acrn_vm_memseg_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) argument 111 if (memmap->type == ACRN_MEMMAP_RAM) 112 return acrn_vm_ram_map(vm, memmap); 114 if (memmap->type != ACRN_MEMMAP_MMIO) { 116 "Invalid memmap type: %u\n", memmap->type); 120 ret = acrn_mm_region_add(vm, memmap->user_vm_pa, 121 memmap->service_vm_pa, memmap->len, 122 ACRN_MEM_TYPE_UC, memmap 130 acrn_vm_memseg_unmap(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) argument 155 acrn_vm_ram_map(struct acrn_vm *vm, struct acrn_vm_memmap *memmap) argument [all...] |
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);
|
H A D | hsm.c | 116 struct acrn_vm_memmap memmap; local 219 if (copy_from_user(&memmap, (void __user *)ioctl_param, 220 sizeof(memmap))) 223 ret = acrn_vm_memseg_map(vm, &memmap); 226 if (copy_from_user(&memmap, (void __user *)ioctl_param, 227 sizeof(memmap))) 230 ret = acrn_vm_memseg_unmap(vm, &memmap);
|
/linux-master/arch/x86/platform/efi/ |
H A D | Makefile | 5 obj-$(CONFIG_EFI) += memmap.o quirks.o efi.o efi_$(BITS).o \
|
H A D | efi.c | 231 WARN(efi.memmap.desc_version != 1, 233 efi.memmap.desc_version); 235 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); 281 efi_memory_desc_t *out = efi.memmap.map; 283 const efi_memory_desc_t *end = efi.memmap.map_end; 289 memcpy(out, in, efi.memmap.desc_size); 290 out = (void *)out + efi.memmap.desc_size; 294 in = (void *)in + efi.memmap.desc_size; 299 .phys_map = efi.memmap [all...] |
H A D | runtime-map.c | 72 * These are default attributes that are added for every memmap entry. 141 return efi.memmap.nr_map * efi.memmap.desc_size; 146 return efi.memmap.desc_size; 156 memcpy(buf, efi.memmap.map, sz); 169 map_entries = kcalloc(efi.memmap.nr_map, sizeof(entry), GFP_KERNEL);
|
H A D | memmap.c | 51 * @data: efi memmap installation parameters 64 data->size = num_entries * efi.memmap.desc_size; 65 data->desc_version = efi.memmap.desc_version; 66 data->desc_size = efi.memmap.desc_size; 68 data->flags |= efi.memmap.flags & EFI_MEMMAP_LATE; 84 * efi_memmap_install - Install a new EFI memory map in efi.memmap 85 * @data: efi memmap installation parameters 89 * mapping function and installs the new memmap. 104 * efi_memmap_split_count - Count number of additional EFI memmap entries 108 * Returns the number of additional EFI memmap entrie [all...] |
H A D | fake_mem.c | 11 * memmap. 43 int new_nr_map = efi.memmap.nr_map; 51 /* allocate memory for new EFI memmap */ 55 /* create new EFI memmap */ 62 efi_memmap_insert(&efi.memmap, new_memmap, efi_range); 64 /* swap into new EFI memmap */ 80 /* print new EFI memmap */
|
H A D | quirks.c | 250 * into efi.memmap (splitting existing regions if necessary) and tag 281 num_entries += efi.memmap.nr_map; 284 pr_err("Could not allocate boot services memmap\n"); 291 pr_err("Failed to map new boot services memmap\n"); 295 efi_memmap_insert(&efi.memmap, new, &mr); 481 pr_err("Failed to allocate new EFI memmap\n"); 487 pr_err("Failed to map new EFI memmap\n"); 492 * Build a new EFI memmap that excludes any boot services 503 memcpy(new_md, md, efi.memmap.desc_size); 504 new_md += efi.memmap [all...] |
/linux-master/mm/ |
H A D | bootmem_info.c | 47 struct page *page, *memmap; local 53 /* Get section's memmap address */ 54 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); 57 * Get page for the memmap's phys address 60 page = virt_to_page(memmap); 64 /* remember memmap's page */ 82 struct page *page, *memmap; local 88 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); 90 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION);
|
H A D | sparse.c | 290 * Decode mem_map from the coded memmap 464 * especially the case for VMEMMAP which maps memmap to PMDs 646 static void free_map_bootmem(struct page *memmap) argument 648 unsigned long start = (unsigned long)memmap; 649 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); 717 static void free_map_bootmem(struct page *memmap) argument 721 struct page *page = virt_to_page(memmap); 737 * from page allocator. If removing section's memmap is placed 784 struct page *memmap = NULL; local 812 memmap 834 struct page *memmap; local 896 struct page *memmap; local [all...] |
/linux-master/arch/mips/include/asm/dec/ |
H A D | prom.h | 74 } memmap; typedef in typeref:struct:__anon49 82 extern int (*__rex_getbitmap)(memmap *); 109 int __DEC_PROM_O32(_rex_getbitmap, (int (*)(memmap *), void *, memmap *));
|
/linux-master/arch/x86/xen/ |
H A D | enlighten_pvh.c | 65 struct xen_memory_map memmap; local 68 memmap.nr_entries = ARRAY_SIZE(boot_params_p->e820_table); 69 set_xen_guest_handle(memmap.buffer, boot_params_p->e820_table); 70 rc = HYPERVISOR_memory_op(XENMEM_memory_map, &memmap); 75 boot_params_p->e820_entries = memmap.nr_entries;
|
H A D | setup.c | 691 struct xen_memory_map memmap; local 702 memmap.nr_entries = ARRAY_SIZE(xen_e820_table.entries); 703 set_xen_guest_handle(memmap.buffer, xen_e820_table.entries); 712 rc = HYPERVISOR_memory_op(op, &memmap); 715 memmap.nr_entries = 1; 724 BUG_ON(memmap.nr_entries == 0); 725 xen_e820_table.nr_entries = memmap.nr_entries;
|
/linux-master/arch/mips/dec/prom/ |
H A D | memory.c | 63 memmap *bm; 66 bm = (memmap *)CKSEG0ADDR(0x28000);
|
H A D | init.c | 25 int (*__rex_getbitmap)(memmap *);
|
/linux-master/drivers/firmware/ |
H A D | Makefile | 15 obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|
/linux-master/drivers/net/wireless/ti/wlcore/ |
H A D | tx.c | 973 struct wl1271_acx_mem_map *memmap = wl->target_mem_map; local 979 ret = wlcore_read(wl, le32_to_cpu(memmap->tx_result), 987 ret = wlcore_write32(wl, le32_to_cpu(memmap->tx_result) +
|
/linux-master/drivers/message/fusion/ |
H A D | mptbase.h | 677 u8 __iomem *memmap; /* mmap address */ member in struct:_MPT_ADAPTER
|
/linux-master/include/linux/ |
H A D | efi.h | 670 struct efi_memory_map memmap; member in struct:efi 786 * efi_early_memdesc_ptr - get the n-th EFI memmap descriptor 787 * @map: the start of efi memmap 788 * @desc_size: the size of space for each EFI memmap descriptor 789 * @n: the index of efi memmap descriptor 814 * for_each_efi_memory_desc - iterate over descriptors in efi.memmap 820 for_each_efi_memory_desc_in_map(&efi.memmap, md)
|