Lines Matching refs:desc
22 struct efi_mem_desc desc; member
61 if (mema->desc.physical_start == memb->desc.physical_start) in efi_mem_cmp()
63 else if (mema->desc.physical_start < memb->desc.physical_start) in efi_mem_cmp()
69 static uint64_t desc_get_end(struct efi_mem_desc *desc) in desc_get_end() argument
71 return desc->physical_start + (desc->num_pages << EFI_PAGE_SHIFT); in desc_get_end()
87 struct efi_mem_desc *prev = &prevmem->desc; in efi_mem_sort()
97 cur = &lmem->desc; in efi_mem_sort()
144 struct efi_mem_desc *map_desc = &map->desc; in efi_mem_carve_out()
170 map->desc.physical_start = carve_end; in efi_mem_carve_out()
171 map->desc.num_pages = (map_end - carve_end) in efi_mem_carve_out()
187 newmap->desc = map->desc; in efi_mem_carve_out()
188 newmap->desc.physical_start = carve_start; in efi_mem_carve_out()
189 newmap->desc.num_pages = (map_end - carve_start) >> EFI_PAGE_SHIFT; in efi_mem_carve_out()
218 newlist->desc.type = memory_type; in efi_add_memory_map()
219 newlist->desc.physical_start = start; in efi_add_memory_map()
220 newlist->desc.virtual_start = start; in efi_add_memory_map()
221 newlist->desc.num_pages = pages; in efi_add_memory_map()
226 newlist->desc.attribute = EFI_MEMORY_WB | EFI_MEMORY_RUNTIME; in efi_add_memory_map()
229 newlist->desc.attribute = EFI_MEMORY_RUNTIME; in efi_add_memory_map()
232 newlist->desc.attribute = EFI_MEMORY_WB; in efi_add_memory_map()
244 r = efi_mem_carve_out(lmem, &newlist->desc, in efi_add_memory_map()
307 struct efi_mem_desc *desc = &lmem->desc; in efi_find_free_memory() local
308 uint64_t desc_len = desc->num_pages << EFI_PAGE_SHIFT; in efi_find_free_memory()
309 uint64_t desc_end = desc->physical_start + desc_len; in efi_find_free_memory()
314 if (desc->type != EFI_CONVENTIONAL_MEMORY) in efi_find_free_memory()
326 if (ret < desc->physical_start) in efi_find_free_memory()
543 *memory_map = lmem->desc; in efi_get_memory_map()