Lines Matching refs:res_desc

24 	struct hob_res_desc *res_desc;  in fsp_scan_for_ram_size()  local
29 res_desc = (struct hob_res_desc *)hdr; in fsp_scan_for_ram_size()
30 if (res_desc->type == RES_SYS_MEM || in fsp_scan_for_ram_size()
31 res_desc->type == RES_MEM_RESERVED) in fsp_scan_for_ram_size()
32 ram_size += res_desc->len; in fsp_scan_for_ram_size()
47 struct hob_res_desc *res_desc; in dram_init_banksize() local
67 res_desc = (struct hob_res_desc *)hdr; in dram_init_banksize()
68 if (!guidcmp(&res_desc->owner, &fsp)) in dram_init_banksize()
69 low_end = res_desc->phys_start; in dram_init_banksize()
70 if (res_desc->type != RES_SYS_MEM && in dram_init_banksize()
71 res_desc->type != RES_MEM_RESERVED) in dram_init_banksize()
73 if (res_desc->phys_start < (1ULL << 32)) { in dram_init_banksize()
75 res_desc->phys_start + res_desc->len); in dram_init_banksize()
77 gd->bd->bi_dram[bank].start = res_desc->phys_start; in dram_init_banksize()
78 gd->bd->bi_dram[bank].size = res_desc->len; in dram_init_banksize()
79 mtrr_add_request(MTRR_TYPE_WRBACK, res_desc->phys_start, in dram_init_banksize()
80 res_desc->len); in dram_init_banksize()
105 struct hob_res_desc *res_desc; in install_e820_map() local
113 res_desc = (struct hob_res_desc *)hdr; in install_e820_map()
114 entries[num_entries].addr = res_desc->phys_start; in install_e820_map()
115 entries[num_entries].size = res_desc->len; in install_e820_map()
117 if (res_desc->type == RES_SYS_MEM) in install_e820_map()
119 else if (res_desc->type == RES_MEM_RESERVED) in install_e820_map()