Lines Matching refs:phys_addr
304 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
382 "dropped @ %llx\n", md->phys_addr); in efi_get_pal_addr()
390 vaddr = PAGE_OFFSET + md->phys_addr; in efi_get_pal_addr()
419 smp_processor_id(), md->phys_addr, in efi_get_pal_addr()
420 md->phys_addr + efi_md_size(md), in efi_get_pal_addr()
423 return __va(md->phys_addr); in efi_get_pal_addr()
446 static void __init handle_palo(unsigned long phys_addr) in handle_palo() argument
448 struct palo_table *palo = __va(phys_addr); in handle_palo()
592 md->phys_addr, in efi_init()
593 md->phys_addr + efi_md_size(md), size, unit); in efi_init()
622 md->virt_addr = (u64) __va(md->phys_addr); in efi_enter_virtual_mode()
624 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
627 md->virt_addr = ia64_remap(md->phys_addr, in efi_enter_virtual_mode()
636 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
640 md->virt_addr = ia64_remap(md->phys_addr, in efi_enter_virtual_mode()
649 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
702 return md->phys_addr; in efi_get_iobase()
709 kern_memory_descriptor (unsigned long phys_addr) in kern_memory_descriptor() argument
714 if (phys_addr - md->start < (md->num_pages << EFI_PAGE_SHIFT)) in kern_memory_descriptor()
721 efi_memory_descriptor (unsigned long phys_addr) in efi_memory_descriptor() argument
734 if (phys_addr - md->phys_addr < efi_md_size(md)) in efi_memory_descriptor()
741 efi_memmap_intersects (unsigned long phys_addr, unsigned long size) in efi_memmap_intersects() argument
752 end = phys_addr + size; in efi_memmap_intersects()
756 if (md->phys_addr < end && efi_md_end(md) > phys_addr) in efi_memmap_intersects()
763 efi_mem_type (unsigned long phys_addr) in efi_mem_type() argument
765 efi_memory_desc_t *md = efi_memory_descriptor(phys_addr); in efi_mem_type()
773 efi_mem_attributes (unsigned long phys_addr) in efi_mem_attributes() argument
775 efi_memory_desc_t *md = efi_memory_descriptor(phys_addr); in efi_mem_attributes()
784 efi_mem_attribute (unsigned long phys_addr, unsigned long size) in efi_mem_attribute() argument
786 unsigned long end = phys_addr + size; in efi_mem_attribute()
787 efi_memory_desc_t *md = efi_memory_descriptor(phys_addr); in efi_mem_attribute()
812 kern_mem_attribute (unsigned long phys_addr, unsigned long size) in kern_mem_attribute() argument
814 unsigned long end = phys_addr + size; in kern_mem_attribute()
823 attr = efi_mem_attribute(phys_addr, size); in kern_mem_attribute()
829 md = kern_memory_descriptor(phys_addr); in kern_mem_attribute()
848 valid_phys_addr_range (phys_addr_t phys_addr, unsigned long size) in valid_phys_addr_range() argument
858 attr = kern_mem_attribute(phys_addr, size); in valid_phys_addr_range()
867 unsigned long phys_addr = pfn << PAGE_SHIFT; in valid_mmap_phys_addr_range() local
870 attr = efi_mem_attribute(phys_addr, size); in valid_mmap_phys_addr_range()
886 if (efi_memmap_intersects(phys_addr, size)) in valid_mmap_phys_addr_range()
896 unsigned long phys_addr = pfn << PAGE_SHIFT; in phys_mem_access_prot() local
904 attr = kern_mem_attribute(phys_addr, size); in phys_mem_access_prot()
914 if (efi_mem_attribute(phys_addr, size) & EFI_MEMORY_WB) in phys_mem_access_prot()
998 efi_md_end(pmd) != md->phys_addr) { in find_memmap_space()
999 contig_low = GRANULEROUNDUP(md->phys_addr); in find_memmap_space()
1006 if (contig_high != check_md->phys_addr) in find_memmap_space()
1016 as = max(contig_low, md->phys_addr); in find_memmap_space()
1070 k->start = md->phys_addr; in efi_memmap_init()
1077 efi_md_end(pmd) != md->phys_addr) { in efi_memmap_init()
1078 contig_low = GRANULEROUNDUP(md->phys_addr); in efi_memmap_init()
1085 if (contig_high != check_md->phys_addr) in efi_memmap_init()
1098 if (md->phys_addr < contig_low) { in efi_memmap_init()
1103 kmd_end(k-1) == md->phys_addr) { in efi_memmap_init()
1105 (lim - md->phys_addr) in efi_memmap_init()
1109 k->start = md->phys_addr; in efi_memmap_init()
1110 k->num_pages = (lim - md->phys_addr) in efi_memmap_init()
1117 as = md->phys_addr; in efi_memmap_init()
1120 lim = max(md->phys_addr, contig_high); in efi_memmap_init()
1122 if (lim == md->phys_addr && k > kern_memmap && in efi_memmap_init()
1124 kmd_end(k-1) == md->phys_addr) { in efi_memmap_init()
1150 if (prev && kmd_end(prev) == md->phys_addr) { in efi_memmap_init()
1251 res->start = md->phys_addr; in efi_initialize_iomem_resources()
1252 res->end = md->phys_addr + efi_md_size(md) - 1; in efi_initialize_iomem_resources()
1299 start = ALIGN(md->phys_addr, alignment); in kdump_find_rsvd_region()
1340 && md->phys_addr == address) { in vmcore_find_descriptor_size()