Lines Matching refs:paddr
420 static inline unsigned long uv_soc_phys_ram_to_nasid(unsigned long paddr) in uv_soc_phys_ram_to_nasid() argument
422 return uv_gam_range(paddr)->nasid; in uv_soc_phys_ram_to_nasid()
433 static inline unsigned long uv_soc_phys_ram_to_gpa(unsigned long paddr) in uv_soc_phys_ram_to_gpa() argument
437 if (paddr < uv_hub_info->lowmem_remap_top) in uv_soc_phys_ram_to_gpa()
438 paddr |= uv_hub_info->lowmem_remap_base; in uv_soc_phys_ram_to_gpa()
441 paddr |= uv_hub_info->gnode_upper; in uv_soc_phys_ram_to_gpa()
442 paddr = ((paddr << uv_hub_info->m_shift) in uv_soc_phys_ram_to_gpa()
444 ((paddr >> uv_hub_info->m_val) in uv_soc_phys_ram_to_gpa()
447 paddr |= uv_soc_phys_ram_to_nasid(paddr) in uv_soc_phys_ram_to_gpa()
450 return paddr; in uv_soc_phys_ram_to_gpa()
469 unsigned long paddr; in uv_gpa_to_soc_phys_ram() local
478 paddr = gpa & uv_hub_info->gpa_mask; in uv_gpa_to_soc_phys_ram()
479 if (paddr >= remap_base && paddr < remap_base + remap_top) in uv_gpa_to_soc_phys_ram()
480 paddr -= remap_base; in uv_gpa_to_soc_phys_ram()
481 return paddr; in uv_gpa_to_soc_phys_ram()