Lines Matching defs:topoParms

60 x86_topology_parameters_t	topoParms;
143 topoParms.LLCDepth = cache_level - 1;
149 topoParms.maxSharingLLC = nCPUsSharing;
151 topoParms.nCoresSharingLLC = nCPUsSharing / (cpuinfo->thread_count /
153 topoParms.nLCPUsSharingLLC = nCPUsSharing;
160 topoParms.nCoresSharingLLC = cpuinfo->core_count;
162 topoParms.nLCPUsSharingLLC = cpuinfo->thread_count;
170 topoParms.stable = FALSE;
185 topoParms.nLThreadsPerCore = cpuinfo->thread_count / cpuinfo->core_count;
187 topoParms.nPThreadsPerCore = cpuinfo->cpuid_logical_per_package / cpuinfo->cpuid_cores_per_package;
192 DIVISOR_GUARD(topoParms.nCoresSharingLLC);
193 topoParms.nLDiesPerPackage = cpuinfo->core_count / topoParms.nCoresSharingLLC;
194 DIVISOR_GUARD(topoParms.nPThreadsPerCore);
195 DIVISOR_GUARD(topoParms.maxSharingLLC / topoParms.nPThreadsPerCore);
196 topoParms.nPDiesPerPackage = cpuinfo->cpuid_cores_per_package / (topoParms.maxSharingLLC / topoParms.nPThreadsPerCore);
202 topoParms.nLCoresPerDie = topoParms.nCoresSharingLLC;
203 topoParms.nPCoresPerDie = (topoParms.maxSharingLLC / topoParms.nPThreadsPerCore);
208 topoParms.nLThreadsPerDie = topoParms.nLThreadsPerCore * topoParms.nLCoresPerDie;
209 topoParms.nPThreadsPerDie = topoParms.nPThreadsPerCore * topoParms.nPCoresPerDie;
214 topoParms.nLCoresPerPackage = topoParms.nLCoresPerDie * topoParms.nLDiesPerPackage;
215 topoParms.nPCoresPerPackage = topoParms.nPCoresPerDie * topoParms.nPDiesPerPackage;
220 topoParms.nLThreadsPerPackage = topoParms.nLThreadsPerCore * topoParms.nLCoresPerPackage;
221 topoParms.nPThreadsPerPackage = topoParms.nPThreadsPerCore * topoParms.nPCoresPerPackage;
224 TOPO_DBG("\tLLC Depth: %d\n", topoParms.LLCDepth);
225 TOPO_DBG("\tCores Sharing LLC: %d\n", topoParms.nCoresSharingLLC);
226 TOPO_DBG("\tThreads Sharing LLC: %d\n", topoParms.nLCPUsSharingLLC);
227 TOPO_DBG("\tmax Sharing of LLC: %d\n", topoParms.maxSharingLLC);
230 TOPO_DBG("\tThreads per Core: %d\n", topoParms.nLThreadsPerCore);
231 TOPO_DBG("\tCores per Die: %d\n", topoParms.nLCoresPerDie);
232 TOPO_DBG("\tThreads per Die: %d\n", topoParms.nLThreadsPerDie);
233 TOPO_DBG("\tDies per Package: %d\n", topoParms.nLDiesPerPackage);
234 TOPO_DBG("\tCores per Package: %d\n", topoParms.nLCoresPerPackage);
235 TOPO_DBG("\tThreads per Package: %d\n", topoParms.nLThreadsPerPackage);
238 TOPO_DBG("\tThreads per Core: %d\n", topoParms.nPThreadsPerCore);
239 TOPO_DBG("\tCores per Die: %d\n", topoParms.nPCoresPerDie);
240 TOPO_DBG("\tThreads per Die: %d\n", topoParms.nPThreadsPerDie);
241 TOPO_DBG("\tDies per Package: %d\n", topoParms.nPDiesPerPackage);
242 TOPO_DBG("\tCores per Package: %d\n", topoParms.nPCoresPerPackage);
243 TOPO_DBG("\tThreads per Package: %d\n", topoParms.nPThreadsPerPackage);
353 lcpu->primary = (lcpu->pnum % topoParms.nPThreadsPerPackage) == 0;
379 core->pcore_num = cpup->cpu_phys_number / topoParms.nPThreadsPerCore;
380 core->lcore_num = core->pcore_num % topoParms.nPCoresPerPackage;
406 pkg_num = cpup->cpu_phys_number / topoParms.nPThreadsPerPackage;
428 die_num = cpup->cpu_phys_number / topoParms.nPThreadsPerDie;
454 core_num = cpup->cpu_phys_number / topoParms.nPThreadsPerCore;
473 lcpu->lnum = lcpu->cpu_num % topoParms.nLThreadsPerCore;
479 core->pcore_num = lcpu->cpu_num / topoParms.nLThreadsPerCore;
480 core->lcore_num = core->pcore_num % topoParms.nLCoresPerDie;
486 die->pdie_num = lcpu->cpu_num / (topoParms.nLThreadsPerCore * topoParms.nLCoresPerDie);
487 die->ldie_num = die->pdie_num % topoParms.nLDiesPerPackage;
493 pkg->ppkg_num = lcpu->cpu_num / topoParms.nLThreadsPerPackage;
520 die->pdie_num = cpup->cpu_phys_number / topoParms.nPThreadsPerDie;
562 pkg->ppkg_num = cpup->cpu_phys_number / topoParms.nPThreadsPerPackage;
564 pkg->lpkg_num = topoParms.nPackages;
565 atomic_incl((long *) &topoParms.nPackages, 1);
577 atomic_decl((long *) &topoParms.nPackages, 1);
660 if (level < topoParms.LLCDepth) {
1029 nCPUs = topoParms.nPackages * topoParms.nLThreadsPerPackage;
1070 if (nCores != topoParms.nLCoresPerDie)
1072 topoParms.nLCoresPerDie, nCores, die->pdie_num);
1093 if (nCPUs != topoParms.nLThreadsPerDie)
1095 topoParms.nLThreadsPerDie, nCPUs, die->pdie_num);
1101 if (nDies != topoParms.nLDiesPerPackage)
1103 topoParms.nLDiesPerPackage, nDies, pkg->lpkg_num);
1139 if (nCPUs != topoParms.nLThreadsPerCore)
1141 topoParms.nLThreadsPerCore, nCPUs, core->pcore_num);
1146 if (nCores != topoParms.nLCoresPerPackage)
1148 topoParms.nLCoresPerPackage, nCores, pkg->lpkg_num);
1168 if (nCPUs != topoParms.nLThreadsPerPackage)
1170 topoParms.nLThreadsPerPackage, nCPUs, pkg->lpkg_num);