Lines Matching refs:phys_addr
246 if (md->phys_addr >= start_addr || !md->num_pages) in trim_bottom()
249 num_skipped_pages = (start_addr - md->phys_addr) >> EFI_PAGE_SHIFT; in trim_bottom()
257 md->phys_addr, start_addr - IA64_GRANULE_SIZE); in trim_bottom()
263 md->phys_addr += num_skipped_pages << EFI_PAGE_SHIFT; in trim_bottom()
272 md_end_addr = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in trim_top()
285 md->phys_addr, end_addr); in trim_top()
321 granule_addr = md->phys_addr & ~(IA64_GRANULE_SIZE - 1); in efi_memmap_walk()
324 if (first_non_wb_addr < md->phys_addr) { in efi_memmap_walk()
326 granule_addr = md->phys_addr & ~(IA64_GRANULE_SIZE - 1); in efi_memmap_walk()
334 (check_md->phys_addr == first_non_wb_addr)) in efi_memmap_walk()
341 if (last_granule_addr < md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT)) in efi_memmap_walk()
345 if (md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) > mem_limit) { in efi_memmap_walk()
346 if (md->phys_addr > mem_limit) in efi_memmap_walk()
348 md->num_pages = (mem_limit - md->phys_addr) >> EFI_PAGE_SHIFT; in efi_memmap_walk()
354 curr.start = PAGE_OFFSET + md->phys_addr; in efi_memmap_walk()
414 md->phys_addr); in efi_map_pal_code()
422 vaddr = PAGE_OFFSET + md->phys_addr; in efi_map_pal_code()
448 smp_processor_id(), md->phys_addr, in efi_map_pal_code()
449 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in efi_map_pal_code()
458 pte_val(mk_pte_phys(md->phys_addr, PAGE_KERNEL)), IA64_GRANULE_SHIFT); in efi_map_pal_code()
467 ia64_mca_tlb_list[cpu].pal_paddr= pte_val(mk_pte_phys(md->phys_addr, PAGE_KERNEL)); in efi_map_pal_code()
576 i, md->type, md->attribute, md->phys_addr, in efi_init()
577 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in efi_init()
607 md->virt_addr = (u64) __va(md->phys_addr); in efi_enter_virtual_mode()
609 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
612 md->virt_addr = ia64_remap(md->phys_addr, (_PAGE_A | _PAGE_P in efi_enter_virtual_mode()
619 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
623 md->virt_addr = ia64_remap(md->phys_addr, (_PAGE_A | _PAGE_P in efi_enter_virtual_mode()
629 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
677 return md->phys_addr; in efi_get_iobase()
684 efi_mem_type (unsigned long phys_addr) in efi_mem_type() argument
697 if (phys_addr - md->phys_addr < (md->num_pages << EFI_PAGE_SHIFT)) in efi_mem_type()
704 efi_mem_attributes (unsigned long phys_addr) in efi_mem_attributes() argument
717 if (phys_addr - md->phys_addr < (md->num_pages << EFI_PAGE_SHIFT)) in efi_mem_attributes()