Lines Matching refs:offset
29 * M - The low M bits of a physical address represent the offset
56 * M - number of node offset bits (35 .. 40)
65 * M - number of node offset bits (35 .. 40)
123 unsigned long offset;
271 /* pnode, offset --> socket virtual */
272 static inline void *uv_pnode_offset_to_vaddr(int pnode, unsigned long offset)
274 return __va(((unsigned long)pnode << uv_hub_info->m_val) | offset);
290 static inline unsigned long *uv_global_mmr32_address(int pnode, unsigned long offset)
293 UV_GLOBAL_MMR32_PNODE_BITS(pnode) | offset);
296 static inline void uv_write_global_mmr32(int pnode, unsigned long offset, unsigned long val)
298 writeq(val, uv_global_mmr32_address(pnode, offset));
301 static inline unsigned long uv_read_global_mmr32(int pnode, unsigned long offset)
303 return readq(uv_global_mmr32_address(pnode, offset));
310 static inline volatile void __iomem *uv_global_mmr64_address(int pnode, unsigned long offset)
313 UV_GLOBAL_MMR64_PNODE_BITS(pnode) | offset);
316 static inline void uv_write_global_mmr64(int pnode, unsigned long offset, unsigned long val)
318 writeq(val, uv_global_mmr64_address(pnode, offset));
321 static inline unsigned long uv_read_global_mmr64(int pnode, unsigned long offset)
323 return readq(uv_global_mmr64_address(pnode, offset));
330 static inline unsigned long uv_global_gru_mmr_address(int pnode, unsigned long offset)
332 return UV_GLOBAL_GRU_MMR_BASE | offset |
336 static inline void uv_write_global_mmr8(int pnode, unsigned long offset, unsigned char val)
338 writeb(val, uv_global_mmr64_address(pnode, offset));
341 static inline unsigned char uv_read_global_mmr8(int pnode, unsigned long offset)
343 return readb(uv_global_mmr64_address(pnode, offset));
350 static inline unsigned long *uv_local_mmr_address(unsigned long offset)
352 return __va(UV_LOCAL_MMR_BASE | offset);
355 static inline unsigned long uv_read_local_mmr(unsigned long offset)
357 return readq(uv_local_mmr_address(offset));
360 static inline void uv_write_local_mmr(unsigned long offset, unsigned long val)
362 writeq(val, uv_local_mmr_address(offset));
365 static inline unsigned char uv_read_local_mmr8(unsigned long offset)
367 return readb(uv_local_mmr_address(offset));
370 static inline void uv_write_local_mmr8(unsigned long offset, unsigned char val)
372 writeb(val, uv_local_mmr_address(offset));
461 uv_write_local_mmr8(uv_hub_info->scir.offset, value);
474 uv_cpu_hub_info(cpu)->scir.offset, value);