Lines Matching refs:desc
25 struct efi_mem_desc *desc, *end; in board_get_usable_ram_top() local
46 desc = map->desc; in board_get_usable_ram_top()
47 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in board_get_usable_ram_top()
48 if (desc->type != EFI_CONVENTIONAL_MEMORY || in board_get_usable_ram_top()
49 desc->physical_start >= 1ULL << 32) in board_get_usable_ram_top()
51 if (!largest || desc->num_pages > largest->num_pages) in board_get_usable_ram_top()
52 largest = desc; in board_get_usable_ram_top()
71 struct efi_mem_desc *desc, *end; in dram_init() local
84 desc = map->desc; in dram_init()
85 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init()
86 if (desc->type < EFI_MMAP_IO) in dram_init()
87 gd->ram_size += desc->num_pages << EFI_PAGE_SHIFT; in dram_init()
95 struct efi_mem_desc *desc, *end; in dram_init_banksize() local
107 desc = map->desc; in dram_init_banksize()
109 desc < end && num_banks < CONFIG_NR_DRAM_BANKS; in dram_init_banksize()
110 desc = efi_get_next_mem_desc(map, desc)) { in dram_init_banksize()
115 if (desc->type != EFI_CONVENTIONAL_MEMORY || in dram_init_banksize()
116 (desc->num_pages << EFI_PAGE_SHIFT) < 1 << 20) in dram_init_banksize()
118 gd->bd->bi_dram[num_banks].start = desc->physical_start; in dram_init_banksize()
119 gd->bd->bi_dram[num_banks].size = desc->num_pages << in dram_init_banksize()