Lines Matching refs:topo_ids

130                                                  const X86CPUTopoIDs *topo_ids)  in x86_apicid_from_topo_ids()  argument
132 return (topo_ids->pkg_id << apicid_pkg_offset(topo_info)) | in x86_apicid_from_topo_ids()
133 (topo_ids->die_id << apicid_die_offset(topo_info)) | in x86_apicid_from_topo_ids()
134 (topo_ids->module_id << apicid_module_offset(topo_info)) | in x86_apicid_from_topo_ids()
135 (topo_ids->core_id << apicid_core_offset(topo_info)) | in x86_apicid_from_topo_ids()
136 topo_ids->smt_id; in x86_apicid_from_topo_ids()
145 X86CPUTopoIDs *topo_ids) in x86_topo_ids_from_idx() argument
152 topo_ids->pkg_id = cpu_index / (nr_dies * nr_modules * in x86_topo_ids_from_idx()
154 topo_ids->die_id = cpu_index / (nr_modules * nr_cores * in x86_topo_ids_from_idx()
156 topo_ids->module_id = cpu_index / (nr_cores * nr_threads) % in x86_topo_ids_from_idx()
158 topo_ids->core_id = cpu_index / nr_threads % nr_cores; in x86_topo_ids_from_idx()
159 topo_ids->smt_id = cpu_index % nr_threads; in x86_topo_ids_from_idx()
168 X86CPUTopoIDs *topo_ids) in x86_topo_ids_from_apicid() argument
170 topo_ids->smt_id = apicid & in x86_topo_ids_from_apicid()
172 topo_ids->core_id = in x86_topo_ids_from_apicid()
175 topo_ids->module_id = in x86_topo_ids_from_apicid()
178 topo_ids->die_id = in x86_topo_ids_from_apicid()
181 topo_ids->pkg_id = apicid >> apicid_pkg_offset(topo_info); in x86_topo_ids_from_apicid()
192 X86CPUTopoIDs topo_ids; in x86_apicid_from_cpu_idx() local
193 x86_topo_ids_from_idx(topo_info, cpu_index, &topo_ids); in x86_apicid_from_cpu_idx()
194 return x86_apicid_from_topo_ids(topo_info, &topo_ids); in x86_apicid_from_cpu_idx()