Lines Matching refs:pnode

173 	unsigned short		pnode;  member
523 static inline int uv_pnode_to_socket(int pnode) in uv_pnode_to_socket() argument
527 return p2s ? p2s[pnode - uv_hub_info->min_pnode] : pnode; in uv_pnode_to_socket()
531 static inline void *uv_pnode_offset_to_vaddr(int pnode, unsigned long offset) in uv_pnode_offset_to_vaddr() argument
538 return __va(((unsigned long)pnode << m_val) | offset); in uv_pnode_offset_to_vaddr()
540 sockid = uv_pnode_to_socket(pnode); in uv_pnode_offset_to_vaddr()
553 int pnode = apicid >> uv_hub_info->apic_pnode_shift; in uv_apicid_to_pnode() local
556 return s2pn ? s2pn[pnode - uv_hub_info->min_socket] : pnode; in uv_apicid_to_pnode()
563 static inline unsigned long *uv_global_mmr32_address(int pnode, unsigned long offset) in uv_global_mmr32_address() argument
566 UV_GLOBAL_MMR32_PNODE_BITS(pnode) | offset); in uv_global_mmr32_address()
569 static inline void uv_write_global_mmr32(int pnode, unsigned long offset, unsigned long val) in uv_write_global_mmr32() argument
571 writeq(val, uv_global_mmr32_address(pnode, offset)); in uv_write_global_mmr32()
574 static inline unsigned long uv_read_global_mmr32(int pnode, unsigned long offset) in uv_read_global_mmr32() argument
576 return readq(uv_global_mmr32_address(pnode, offset)); in uv_read_global_mmr32()
583 static inline volatile void __iomem *uv_global_mmr64_address(int pnode, unsigned long offset) in uv_global_mmr64_address() argument
586 UV_GLOBAL_MMR64_PNODE_BITS(pnode) | offset); in uv_global_mmr64_address()
589 static inline void uv_write_global_mmr64(int pnode, unsigned long offset, unsigned long val) in uv_write_global_mmr64() argument
591 writeq(val, uv_global_mmr64_address(pnode, offset)); in uv_write_global_mmr64()
594 static inline unsigned long uv_read_global_mmr64(int pnode, unsigned long offset) in uv_read_global_mmr64() argument
596 return readq(uv_global_mmr64_address(pnode, offset)); in uv_read_global_mmr64()
599 static inline void uv_write_global_mmr8(int pnode, unsigned long offset, unsigned char val) in uv_write_global_mmr8() argument
601 writeb(val, uv_global_mmr64_address(pnode, offset)); in uv_write_global_mmr8()
604 static inline unsigned char uv_read_global_mmr8(int pnode, unsigned long offset) in uv_read_global_mmr8() argument
606 return readb(uv_global_mmr64_address(pnode, offset)); in uv_read_global_mmr8()
709 return uv_cpu_hub_info(cpu)->pnode; in uv_cpu_to_pnode()
715 return uv_hub_info_list(nid)->pnode; in uv_node_to_pnode()