Lines Matching refs:desc
31 struct efi_mem_desc *desc, *end; in board_get_usable_ram_top() local
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()
54 if (desc->type != EFI_CONVENTIONAL_MEMORY || in board_get_usable_ram_top()
55 desc->physical_start >= 1ULL << 32) in board_get_usable_ram_top()
57 if (!largest || desc->num_pages > largest->num_pages) in board_get_usable_ram_top()
58 largest = desc; in board_get_usable_ram_top()
77 struct efi_mem_desc *desc, *end; in dram_init() local
90 desc = map->desc; in dram_init()
91 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init()
92 if (desc->type < EFI_MMAP_IO) in dram_init()
93 gd->ram_size += desc->num_pages << EFI_PAGE_SHIFT; in dram_init()
101 struct efi_mem_desc *desc, *end; in dram_init_banksize() local
113 desc = map->desc; in dram_init_banksize()
115 desc < end && num_banks < CONFIG_NR_DRAM_BANKS; in dram_init_banksize()
116 desc = efi_get_next_mem_desc(map, desc)) { in dram_init_banksize()
121 if (desc->type != EFI_CONVENTIONAL_MEMORY || in dram_init_banksize()
122 (desc->num_pages << EFI_PAGE_SHIFT) < 1 << 20) in dram_init_banksize()
124 gd->bd->bi_dram[num_banks].start = desc->physical_start; in dram_init_banksize()
125 gd->bd->bi_dram[num_banks].size = desc->num_pages << in dram_init_banksize()
182 struct efi_mem_desc *desc, *end; in install_e820_map() local
198 for (desc = map->desc; desc < end; in install_e820_map()
199 desc = efi_get_next_mem_desc(map, desc)) { in install_e820_map()
200 if (desc->num_pages == 0) in install_e820_map()
203 switch (desc->type) { in install_e820_map()
235 desc->type); in install_e820_map()
240 desc->physical_start == last_end_addr) { in install_e820_map()
241 last_entry->size += (desc->num_pages << EFI_PAGE_SHIFT); in install_e820_map()
242 last_end_addr += (desc->num_pages << EFI_PAGE_SHIFT); in install_e820_map()
247 entries[num_entries].addr = desc->physical_start; in install_e820_map()
248 entries[num_entries].size = desc->num_pages; in install_e820_map()
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()