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