• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/i386/

Lines Matching defs:topoParms

63 x86_topology_parameters_t	topoParms;
124 topoParms.nCoresSharingLLC = 1;
125 topoParms.nLCPUsSharingLLC = 2;
126 topoParms.maxSharingLLC = 2;
128 topoParms.nCoresSharingLLC = 1;
129 topoParms.nLCPUsSharingLLC = 1;
130 topoParms.maxSharingLLC = 1;
173 topoParms.LLCDepth = cache_level - 1;
179 topoParms.maxSharingLLC = nCPUsSharing;
181 topoParms.nCoresSharingLLC = nCPUsSharing;
182 topoParms.nLCPUsSharingLLC = nCPUsSharing;
189 topoParms.nCoresSharingLLC = cpuinfo->core_count;
191 topoParms.nLCPUsSharingLLC = cpuinfo->thread_count;
209 topoParms.nLThreadsPerCore = cpuinfo->thread_count / cpuinfo->core_count;
210 topoParms.nPThreadsPerCore = cpuinfo->cpuid_logical_per_package / cpuinfo->cpuid_cores_per_package;
215 topoParms.nLDiesPerPackage = cpuinfo->core_count / topoParms.nCoresSharingLLC;
216 topoParms.nPDiesPerPackage = cpuinfo->cpuid_cores_per_package / (topoParms.maxSharingLLC / topoParms.nPThreadsPerCore);
221 topoParms.nLCoresPerDie = topoParms.nCoresSharingLLC;
222 topoParms.nPCoresPerDie = (topoParms.maxSharingLLC / topoParms.nPThreadsPerCore);
227 topoParms.nLThreadsPerDie = topoParms.nLThreadsPerCore * topoParms.nLCoresPerDie;
228 topoParms.nPThreadsPerDie = topoParms.nPThreadsPerCore * topoParms.nPCoresPerDie;
233 topoParms.nLCoresPerPackage = topoParms.nLCoresPerDie * topoParms.nLDiesPerPackage;
234 topoParms.nPCoresPerPackage = topoParms.nPCoresPerDie * topoParms.nPDiesPerPackage;
239 topoParms.nLThreadsPerPackage = topoParms.nLThreadsPerCore * topoParms.nLCoresPerPackage;
240 topoParms.nPThreadsPerPackage = topoParms.nPThreadsPerCore * topoParms.nPCoresPerPackage;
243 DBG("\tThreads per Core: %d\n", topoParms.nLThreadsPerCore);
244 DBG("\tCores per Die: %d\n", topoParms.nLCoresPerDie);
245 DBG("\tThreads per Die: %d\n", topoParms.nLThreadsPerDie);
246 DBG("\tDies per Package: %d\n", topoParms.nLDiesPerPackage);
247 DBG("\tCores per Package: %d\n", topoParms.nLCoresPerPackage);
248 DBG("\tThreads per Package: %d\n", topoParms.nLThreadsPerPackage);
251 DBG("\tThreads per Core: %d\n", topoParms.nPThreadsPerCore);
252 DBG("\tCores per Die: %d\n", topoParms.nPCoresPerDie);
253 DBG("\tThreads per Die: %d\n", topoParms.nPThreadsPerDie);
254 DBG("\tDies per Package: %d\n", topoParms.nPDiesPerPackage);
255 DBG("\tCores per Package: %d\n", topoParms.nPCoresPerPackage);
256 DBG("\tThreads per Package: %d\n", topoParms.nPThreadsPerPackage);
387 lcpu->primary = (lcpu->pnum % topoParms.nPThreadsPerPackage) == 0;
413 core->pcore_num = cpup->cpu_phys_number / topoParms.nPThreadsPerCore;
414 core->lcore_num = core->pcore_num % topoParms.nPCoresPerPackage;
440 pkg_num = cpup->cpu_phys_number / topoParms.nPThreadsPerPackage;
462 die_num = cpup->cpu_phys_number / topoParms.nPThreadsPerDie;
488 core_num = cpup->cpu_phys_number / topoParms.nPThreadsPerCore;
507 lcpu->lnum = lcpu->cpu_num % topoParms.nLThreadsPerCore;
513 core->pcore_num = lcpu->cpu_num / topoParms.nLThreadsPerCore;
514 core->lcore_num = core->pcore_num % topoParms.nLCoresPerDie;
520 die->pdie_num = lcpu->cpu_num / (topoParms.nLThreadsPerCore * topoParms.nLCoresPerDie);
521 die->ldie_num = die->pdie_num % topoParms.nLDiesPerPackage;
527 pkg->ppkg_num = lcpu->cpu_num / topoParms.nLThreadsPerPackage;
554 die->pdie_num = cpup->cpu_phys_number / topoParms.nPThreadsPerDie;
596 pkg->ppkg_num = cpup->cpu_phys_number / topoParms.nPThreadsPerPackage;
598 pkg->lpkg_num = topoParms.nPackages;
599 atomic_incl((long *) &topoParms.nPackages, 1);
611 atomic_decl((long *) &topoParms.nPackages, 1);
694 if (level < topoParms.LLCDepth) {
1067 nCPUs = topoParms.nPackages * topoParms.nLThreadsPerPackage;
1108 if (nCores != topoParms.nLCoresPerDie)
1110 topoParms.nLCoresPerDie, nCores, die->pdie_num);
1131 if (nCPUs != topoParms.nLThreadsPerDie)
1133 topoParms.nLThreadsPerDie, nCPUs, die->pdie_num);
1139 if (nDies != topoParms.nLDiesPerPackage)
1141 topoParms.nLDiesPerPackage, nDies, pkg->lpkg_num);
1177 if (nCPUs != topoParms.nLThreadsPerCore)
1179 topoParms.nLThreadsPerCore, nCPUs, core->pcore_num);
1184 if (nCores != topoParms.nLCoresPerPackage)
1186 topoParms.nLCoresPerPackage, nCores, pkg->lpkg_num);
1206 if (nCPUs != topoParms.nLThreadsPerPackage)
1208 topoParms.nLThreadsPerPackage, nCPUs, pkg->lpkg_num);