Lines Matching refs:desc
27 struct efi_mem_desc *desc, *end; in board_get_usable_ram_top() local
48 desc = map->desc; in board_get_usable_ram_top()
49 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in board_get_usable_ram_top()
50 if (desc->type != EFI_CONVENTIONAL_MEMORY || in board_get_usable_ram_top()
51 desc->physical_start >= 1ULL << 32) in board_get_usable_ram_top()
53 if (!largest || desc->num_pages > largest->num_pages) in board_get_usable_ram_top()
54 largest = desc; in board_get_usable_ram_top()
73 struct efi_mem_desc *desc, *end; in dram_init() local
86 desc = map->desc; in dram_init()
87 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init()
88 if (desc->type < EFI_MMAP_IO) in dram_init()
89 gd->ram_size += desc->num_pages << EFI_PAGE_SHIFT; in dram_init()
97 struct efi_mem_desc *desc, *end; in dram_init_banksize() local
109 desc = map->desc; in dram_init_banksize()
111 desc < end && num_banks < CONFIG_NR_DRAM_BANKS; in dram_init_banksize()
112 desc = efi_get_next_mem_desc(map, desc)) { in dram_init_banksize()
117 if (desc->type != EFI_CONVENTIONAL_MEMORY || in dram_init_banksize()
118 (desc->num_pages << EFI_PAGE_SHIFT) < 1 << 20) in dram_init_banksize()
120 gd->bd->bi_dram[num_banks].start = desc->physical_start; in dram_init_banksize()
121 gd->bd->bi_dram[num_banks].size = desc->num_pages << in dram_init_banksize()
178 struct efi_mem_desc *desc, *end; in install_e820_map() local
194 for (desc = map->desc; desc < end; in install_e820_map()
195 desc = efi_get_next_mem_desc(map, desc)) { in install_e820_map()
196 if (desc->num_pages == 0) in install_e820_map()
199 switch (desc->type) { in install_e820_map()
231 desc->type); in install_e820_map()
236 desc->physical_start == last_end_addr) { in install_e820_map()
237 last_entry->size += (desc->num_pages << EFI_PAGE_SHIFT); in install_e820_map()
238 last_end_addr += (desc->num_pages << EFI_PAGE_SHIFT); in install_e820_map()
243 entries[num_entries].addr = desc->physical_start; in install_e820_map()
244 entries[num_entries].size = desc->num_pages; in install_e820_map()
279 efi_info->efi_memmap = (u32)(map->desc); in setup_efi_info()
284 efi_info->efi_memmap_hi = (u64)(u32)(map->desc) >> 32; in setup_efi_info()