Lines Matching refs:NCPU
54 struct cpu_node cpunodes[NCPU];
120 if (cpuid >= NCPU) {
258 if (lcpuid >= NCPU)
327 idx = NCPU + i;
343 if (lcpuid >= NCPU)
873 * available. Else, base it on NCPU.
880 ncpu_guest_max = NCPU;
1207 * Returned values: cpuid2pset[NCPU], nctxs[NCPU], md_gen
1245 cp = kmem_alloc(sizeof (mde_cookie_t) * NCPU, KM_SLEEP);
1246 cpids = kmem_alloc(sizeof (uint64_t) * NCPU, KM_SLEEP);
1278 ASSERT(cpids[cp_idx] < NCPU);
1303 kmem_free(cp, sizeof (mde_cookie_t) * NCPU);
1305 kmem_free(cpids, sizeof (uint64_t) * NCPU);
1353 cpuid2pset = kmem_zalloc(sizeof (cpuset_t *) * NCPU,
1355 nctxs = kmem_alloc(sizeof (uint_t) * NCPU, KM_SLEEP);
1357 /* clean cpuid2pset[NCPU], before loading new values */
1358 for (idx = 0; idx < NCPU; idx++) {
1367 ASSERT(id < NCPU);
1395 ASSERT(id < NCPU);