Lines Matching refs:dom
20 void topology_set_dom(struct topo_scan *tscan, enum x86_topology_domains dom,
26 static inline u32 topo_shift_apicid(u32 apicid, enum x86_topology_domains dom) in topo_shift_apicid() argument
28 if (dom == TOPO_SMT_DOMAIN) in topo_shift_apicid()
30 return apicid >> x86_topo_system.dom_shifts[dom - 1]; in topo_shift_apicid()
33 static inline u32 topo_relative_domain_id(u32 apicid, enum x86_topology_domains dom) in topo_relative_domain_id() argument
35 if (dom != TOPO_SMT_DOMAIN) in topo_relative_domain_id()
36 apicid >>= x86_topo_system.dom_shifts[dom - 1]; in topo_relative_domain_id()
37 return apicid & (x86_topo_system.dom_size[dom] - 1); in topo_relative_domain_id()
40 static inline u32 topo_domain_mask(enum x86_topology_domains dom) in topo_domain_mask() argument
42 return (1U << x86_topo_system.dom_shifts[dom]) - 1; in topo_domain_mask()
49 static inline void topology_update_dom(struct topo_scan *tscan, enum x86_topology_domains dom, in topology_update_dom() argument
52 tscan->dom_shifts[dom] = shift; in topology_update_dom()
53 tscan->dom_ncpus[dom] = ncpus; in topology_update_dom()