Lines Matching refs:map
86 static void *efi_build_mem_table(struct efi_entry_memmap *map, int size, in efi_build_mem_table() argument
98 end = (struct efi_mem_desc *)((ulong)map + size); in efi_build_mem_table()
99 count = ((ulong)end - (ulong)map->desc) / map->desc_size; in efi_build_mem_table()
100 memcpy(base, map->desc, (ulong)end - (ulong)map->desc); in efi_build_mem_table()
101 qsort(base, count, map->desc_size, h_cmp_entry); in efi_build_mem_table()
105 end = (struct efi_mem_desc *)((ulong)base + count * map->desc_size); in efi_build_mem_table()
106 for (desc = base; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in efi_build_mem_table()
119 memcpy(dest, desc, map->desc_size); in efi_build_mem_table()
134 dest = efi_get_next_mem_desc(map, dest); in efi_build_mem_table()
146 static void efi_print_mem_table(struct efi_entry_memmap *map, in efi_print_mem_table() argument
161 upto++, desc = efi_get_next_mem_desc(map, desc)) { in efi_print_mem_table()
219 struct efi_entry_memmap *map; in do_efi_mem() local
224 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in do_efi_mem()
234 gd->arch.table, map, size, map->version, map->desc_size); in do_efi_mem()
235 if (map->version != EFI_MEM_DESC_VERSION) { in do_efi_mem()
241 desc = efi_build_mem_table(map, size, skip_bs); in do_efi_mem()
247 efi_print_mem_table(map, desc, skip_bs); in do_efi_mem()