Lines Matching refs:map
32 struct efi_entry_memmap *map; in board_get_usable_ram_top() local
44 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in board_get_usable_ram_top()
51 end = (struct efi_mem_desc *)((ulong)map + size); in board_get_usable_ram_top()
52 desc = map->desc; in board_get_usable_ram_top()
53 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in board_get_usable_ram_top()
78 struct efi_entry_memmap *map; in dram_init() local
81 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in dram_init()
88 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init()
90 desc = map->desc; in dram_init()
91 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init()
102 struct efi_entry_memmap *map; in dram_init_banksize() local
106 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in dram_init_banksize()
112 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init_banksize()
113 desc = map->desc; in dram_init_banksize()
116 desc = efi_get_next_mem_desc(map, desc)) { in dram_init_banksize()
183 struct efi_entry_memmap *map; in install_e820_map() local
190 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in install_e820_map()
197 end = (struct efi_mem_desc *)((ulong)map + size); in install_e820_map()
198 for (desc = map->desc; desc < end; in install_e820_map()
199 desc = efi_get_next_mem_desc(map, desc)) { in install_e820_map()
263 struct efi_entry_memmap *map; in setup_efi_info() local
276 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in setup_efi_info()
281 efi_info->efi_memdesc_size = map->desc_size; in setup_efi_info()
282 efi_info->efi_memdesc_version = map->version; in setup_efi_info()
283 efi_info->efi_memmap = (u32)(map->desc); in setup_efi_info()
288 efi_info->efi_memmap_hi = (u64)(u32)(map->desc) >> 32; in setup_efi_info()