Lines Matching refs:map

613 		struct efi_mem_desc *map = (void *)efi_virtmap +  in efi_convert_pointer()  local
616 if (addr >= map->physical_start && in efi_convert_pointer()
617 (addr < map->physical_start in efi_convert_pointer()
618 + (map->num_pages << EFI_PAGE_SHIFT))) { in efi_convert_pointer()
620 (addr + map->virtual_start - in efi_convert_pointer()
621 map->physical_start); in efi_convert_pointer()
669 void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map) in efi_runtime_relocate() argument
690 if (map && efi_is_runtime_service_pointer(p)) in efi_runtime_relocate()
722 if (map && ((newaddr < map->virtual_start) || in efi_runtime_relocate()
723 newaddr > (map->virtual_start + in efi_runtime_relocate()
724 (map->num_pages << EFI_PAGE_SHIFT)))) { in efi_runtime_relocate()
794 struct efi_mem_desc *map = (void*)virtmap + in efi_set_virtual_address_map() local
797 if (map->type == EFI_RUNTIME_SERVICES_CODE) in efi_set_virtual_address_map()
818 struct efi_mem_desc *map = (void*)virtmap + in efi_set_virtual_address_map() local
821 efi_physical_addr_t map_start = map->physical_start; in efi_set_virtual_address_map()
822 efi_physical_addr_t map_len = map->num_pages << EFI_PAGE_SHIFT; in efi_set_virtual_address_map()
824 u64 off = map->virtual_start - map_start; in efi_set_virtual_address_map()
850 struct efi_mem_desc *map; in efi_set_virtual_address_map() local
852 map = (void*)virtmap + (descriptor_size * i); in efi_set_virtual_address_map()
853 if (map->type == EFI_RUNTIME_SERVICES_CODE) { in efi_set_virtual_address_map()
854 ulong new_offset = map->virtual_start - in efi_set_virtual_address_map()
855 map->physical_start + gd->relocaddr; in efi_set_virtual_address_map()
858 efi_runtime_relocate(new_offset, map); in efi_set_virtual_address_map()