/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | cachetocache.c | 33 * solaris features to find and bind to cpus in the current 62 static processorid_t cpus[1024]; variable 101 if (pset_info(PS_MYID, NULL, &ncpu, cpus) < 0) { 126 cpu = cpus[(pthread_self() - 1) % ncpu],
|
/xnu-2422.115.4/osfmk/i386/commpage/ |
H A D | commpage.c | 188 int cpus; local 190 cpus = ml_get_max_cpus(); // NB: this call can block 192 if (cpus == 0) 193 panic("commpage cpus==0"); 194 if (cpus > 0xFF) 195 cpus = 0xFF; 197 return cpus; 206 int cpus; local 252 cpus = commpage_cpus(); // how many CPUs do we have 254 bits |= (cpus << kNumCPUsShif [all...] |
/xnu-2422.115.4/osfmk/i386/ |
H A D | i386_init.c | 401 unsigned int cpus = 0; local 451 if (PE_parse_boot_argn("cpus", &cpus, sizeof (cpus))) { 452 if ((0 < cpus) && (cpus < max_ncpus)) 453 max_ncpus = cpus; 479 * The maximum number of cpus must be set beforehand.
|
H A D | mp.h | 91 extern unsigned int real_ncpus; /* real number of cpus */ 92 extern unsigned int max_ncpus; /* max number of cpus */ 133 * Called from thread context, this blocks until all active cpus have 160 * Invoke a function (possibly NULL) on a set of cpus specified by a mask. 163 * - ASYNC: other cpus make their calls in parallel 167 * called on all specified cpus. 168 * The return value is the number of cpus where the call was made or queued. 172 cpumask_t cpus, 177 cpumask_t cpus,
|
H A D | cpu_topology.h | 49 uint8_t maxcpus; /* maximum # of cpus that can share */ 50 uint8_t nlcpus; /* # of logical cpus sharing this cache */ 57 struct x86_lcpu *cpus[0]; /* cpus sharing this cache */ member in struct:x86_cpu_cache 163 struct x86_lcpu *lcpus; /* list of logical cpus in core */ 167 uint32_t num_lcpus; /* Number of logical cpus */ 168 uint32_t active_lcpus; /* Number of {running, idle} cpus */ 200 struct x86_lcpu *lcpus; /* list of logical cpus in package */
|
H A D | mp.c | 731 * Send event to all running cpus. 750 * Return the number of running cpus. 796 * - rendezvous (i.e. all cpus reach a barrier), 1111 * mp_cpus_call() runs a given function on cpus specified in a given cpu mask. 1113 * SYNC: function is called serially on target cpus in logical cpu order 1115 * ASYNC: function call is queued to the specified cpus 1120 * The cpu mask may include the local cpu. Offline cpus are ignored. 1121 * The return value is the number of cpus on which the call was made or queued. 1125 cpumask_t cpus, 1131 cpus, 1124 mp_cpus_call( cpumask_t cpus, mp_sync_t mode, void (*action_func)(void *), void *arg) argument 1163 mp_cpus_call1( cpumask_t cpus, mp_sync_t mode, void (*action_func)(void *, void *), void *arg0, void *arg1, cpumask_t *cpus_calledp, cpumask_t *cpus_notcalledp) argument [all...] |
H A D | cpu_threads.c | 102 cache->cpus[i] = NULL; 594 if (cache->cpus[i] == NULL) { 595 cache->cpus[i] = lcpu; 830 * Assume that all cpus have the same features. 1020 * number of CPUs. However, when specifying cpus=n the topology is only 1024 * indicated by cpus=n. Until that happens, this code will not check the 1025 * topology if the number of cpus defined is < that described the the
|
/xnu-2422.115.4/bsd/conf/ |
H A D | MASTER | 255 pseudo-device cpus 64 # <multi64> 256 pseudo-device cpus 32 # <multi32> 257 pseudo-device cpus 16 # <multi16> 258 pseudo-device cpus 2 # <multi2> 259 pseudo-device cpus 1 # <!multi64,multi32,multi16,multi2>
|
/xnu-2422.115.4/tools/tests/libMicro/apple/ |
H A D | lmbench_lat_ctx.c | 172 int cpus, retval; 174 retval=sysctlbyname(name, &cpus, &len, NULL, 0); 176 debug("cpus = %d retval = %d", cpus, retval); 177 return cpus;
|
/xnu-2422.115.4/iokit/IOKit/ |
H A D | IOCPU.h | 125 IOCPU **cpus; member in class:IOCPUInterruptController
|
/xnu-2422.115.4/SETUP/config/ |
H A D | doconf | 171 cputypes.h cpus.h vice.h\
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kdebug.c | 85 * cpus. There is an effort made to synchronize the IOP timebase with the 221 * number of active cpus. We capture the iops list head at initialization 222 * which we could use to calculate the number of cpus we allocated data for, 1423 * will need to read "now" state to get the number of cpus, which would be in 1452 kd_cpumap* cpus = (kd_cpumap*)&header[1]; local 1456 cpus[index].cpu_id = iops->cpu_id; 1457 cpus[index].flags = KDBG_CPUMAP_IS_IOP; 1458 bzero(cpus[index].name, sizeof(cpus->name)); 1459 strlcpy(cpus[inde [all...] |
/xnu-2422.115.4/iokit/Kernel/ |
H A D | IOCPU.cpp | 617 cpus = (IOCPU **)IOMalloc(numCPUs * sizeof(IOCPU *)); 618 if (cpus == 0) return kIOReturnNoMemory; 619 bzero(cpus, numCPUs * sizeof(IOCPU *));
|
H A D | IOPlatformExpert.cpp | 1115 IORegistryEntry * cpus; local 1142 // Publish the cpus. 1143 cpus = rootEntry->childFromPath( "cpus", gIODTPlane); 1144 if ( cpus) 1145 createNubs( this, IODTFindMatchingEntries( cpus, kIODTExclusive, 0));
|