• Home
  • Raw
  • Download

Lines Matching refs:uv_hub_info

167 #define uv_hub_info		(&__get_cpu_var(__uv_hub_info))  macro
181 return uv_hub_info->hub_revision < UV2_HUB_REVISION_BASE; in is_uv1_hub()
186 return uv_hub_info->hub_revision >= UV2_HUB_REVISION_BASE; in is_uv2_hub()
191 return uv_hub_info->hub_revision == UV2_HUB_REVISION_BASE; in is_uv2_1_hub()
196 return uv_hub_info->hub_revision == UV2_HUB_REVISION_BASE + 1; in is_uv2_2_hub()
219 #define UV_NASID_TO_PNODE(n) (((n) >> 1) & uv_hub_info->pnode_mask)
220 #define UV_PNODE_TO_GNODE(p) ((p) |uv_hub_info->gnode_extra)
241 #define UV_GLOBAL_MMR64_BASE (uv_hub_info->global_mmr_base)
296 if (paddr < uv_hub_info->lowmem_remap_top) in uv_soc_phys_ram_to_gpa()
297 paddr |= uv_hub_info->lowmem_remap_base; in uv_soc_phys_ram_to_gpa()
298 paddr |= uv_hub_info->gnode_upper; in uv_soc_phys_ram_to_gpa()
299 paddr = ((paddr << uv_hub_info->m_shift) >> uv_hub_info->m_shift) | in uv_soc_phys_ram_to_gpa()
300 ((paddr >> uv_hub_info->m_val) << uv_hub_info->n_lshift); in uv_soc_phys_ram_to_gpa()
322 unsigned long remap_base = uv_hub_info->lowmem_remap_base; in uv_gpa_to_soc_phys_ram()
323 unsigned long remap_top = uv_hub_info->lowmem_remap_top; in uv_gpa_to_soc_phys_ram()
325 gpa = ((gpa << uv_hub_info->m_shift) >> uv_hub_info->m_shift) | in uv_gpa_to_soc_phys_ram()
326 ((gpa >> uv_hub_info->n_lshift) << uv_hub_info->m_val); in uv_gpa_to_soc_phys_ram()
327 paddr = gpa & uv_hub_info->gpa_mask; in uv_gpa_to_soc_phys_ram()
337 return gpa >> uv_hub_info->n_lshift; in uv_gpa_to_gnode()
343 unsigned long n_mask = (1UL << uv_hub_info->n_val) - 1; in uv_gpa_to_pnode()
351 return (gpa << uv_hub_info->m_shift) >> uv_hub_info->m_shift; in uv_gpa_to_offset()
357 return __va(((unsigned long)pnode << uv_hub_info->m_val) | offset); in uv_pnode_offset_to_vaddr()
366 return (apicid >> uv_hub_info->apic_pnode_shift); in uv_apicid_to_pnode()
375 return (apicid >> (uv_hub_info->apic_pnode_shift - 1)) & 1; in uv_apicid_to_socket()
427 ((unsigned long)pnode << uv_hub_info->m_val); in uv_global_gru_mmr_address()
489 return uv_hub_info->blade_processor_id; in uv_blade_processor_id()
495 return uv_hub_info->numa_blade_id; in uv_numa_blade_id()
555 if (uv_hub_info->scir.state != value) { in uv_set_scir_bits()
556 uv_hub_info->scir.state = value; in uv_set_scir_bits()
557 uv_write_local_mmr8(uv_hub_info->scir.offset, value); in uv_set_scir_bits()
605 return uv_hub_info->hub_revision; in uv_get_min_hub_revision_id()