/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mlsetup.c | 424 * Set max_ncpus and boot_max_ncpus to boot_ncpus if platform doesn't 428 max_ncpus = boot_max_ncpus = boot_ncpus; 431 max_ncpus = NCPU; 433 max_ncpus = (int)prop_value; 434 if (max_ncpus <= 0 || max_ncpus > NCPU) { 435 max_ncpus = NCPU; 437 if (boot_ncpus > max_ncpus) { 438 boot_ncpus = max_ncpus; 448 } else if (boot_max_ncpus > max_ncpus) { [all...] |
H A D | x_call.c | 209 for (c = 0; c < max_ncpus; ++c) { 491 for (c = 0; c < max_ncpus; ++c) { 562 for (c = 0; c < max_ncpus; ++c) { 602 for (c = 0; c < max_ncpus; ++c) {
|
H A D | cpr_impl.c | 341 for (who = 0; who < max_ncpus; who++) { 489 for (who = 0; who < max_ncpus; who++) { 1025 wc_other_cpus = kmem_zalloc(max_ncpus * sizeof (wc_cpu_t), 1038 for (index = 0; index < max_ncpus; index++) { 1047 max_ncpus * sizeof (wc_cpu_t));
|
H A D | mp_pc.c | 446 } else if (cpuid < 0 || cpuid >= max_ncpus) {
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 308 sz = sizeof (cpu_idle_cb_state_t) * max_ncpus; 315 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { 351 ASSERT(cp->cpu_seqid < max_ncpus); 363 ASSERT(cp->cpu_seqid < max_ncpus); 488 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { 511 ASSERT(CPU->cpu_seqid < max_ncpus); 569 ASSERT(CPU->cpu_seqid < max_ncpus); 643 ASSERT(CPU->cpu_seqid < max_ncpus); 745 ASSERT(CPU->cpu_seqid < max_ncpus); 834 sz = sizeof (*valp) * CPU_IDLE_VALUE_GROUP_SIZE * max_ncpus; [all...] |
H A D | clock_tick.c | 208 if (clock_tick_ncpus > max_ncpus) 209 clock_tick_ncpus = max_ncpus; 214 n = (max_ncpus + clock_tick_ncpus - 1)/clock_tick_ncpus; 237 clock_tick_threshold = max_ncpus; 245 clock_tick_ncpus = max_ncpus;
|
H A D | callout.c | 1639 for (f = 0; f < max_ncpus; f++) { 1675 for (f = 0; f < max_ncpus; f++) { 1801 for (f = 0; f < max_ncpus; f++) { 2099 for (fanout = 1; (fanout < max_ncpus); fanout <<= 1) 2119 * Allocate all the callout tables based on max_ncpus. We have chosen 2134 size = sizeof (callout_table_t) * CALLOUT_NTYPES * max_ncpus; 2143 for (f = 0; f < max_ncpus; f++) {
|
H A D | kmem.c | 1431 int nchunks = 4 * max_ncpus; 1432 size_t lhsize = (size_t)&((kmem_log_header_t *)0)->lh_cpu[max_ncpus]; 1453 for (i = 0; i < max_ncpus; i++) { 1459 for (i = max_ncpus; i < nchunks; i++) 1462 lhp->lh_head = max_ncpus; 3259 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { 3295 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { 3503 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { 3753 size_t csize = KMEM_CACHE_SIZE(max_ncpus); 4009 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqi [all...] |
H A D | pghw.c | 528 pg_cpulist_maxlen = CPUSTR_LEN(max_ncpus);
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | ecc.c | 197 * Allocate error queue sizes based on max_ncpus. max_ncpus is set just 212 MAX_ASYNC_FLTS * (max_ncpus + 1), size, PIL_2, ERRORQ_VITAL); 215 MAX_CE_FLTS * (max_ncpus + 1), size, PIL_1, 0); 245 (max_ncpus + 1));
|
H A D | fillsysinfo.c | 1025 max_ncpus = set_max_ncpus(); 1026 if (max_ncpus < ncpunode) 1027 max_ncpus = ncpunode; 1030 max_ncpus = ncpunode; 1044 max_ncpus = 1;
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | stats.c | 172 nr_cpus = max_ncpus;
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 88 return (TRAP_TSIZE * (max_ncpus - 1)); 295 ASSERT(ncpus <= max_ncpus); 307 for (tt_index = 0; tt_index < (max_ncpus-1); tt_index++) 310 ASSERT(tt_index < max_ncpus - 1); 496 ((i >= 0) && (i < (max_ncpus-1)))) {
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | txg.c | 123 tx->tx_cpu = kmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); 125 for (c = 0; c < max_ncpus; c++) { 170 for (c = 0; c < max_ncpus; c++) { 184 kmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); 362 for (c = 0; c < max_ncpus; c++) 376 for (c = 0; c < max_ncpus; c++) 382 for (c = 0; c < max_ncpus; c++) { 414 for (c = 0; c < max_ncpus; c++) { 431 max_ncpus, minclsyspri, max_ncpus, max_ncpu [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sysconfig.c | 112 return (max_ncpus);
|
H A D | pset.c | 191 if (user_ncpus > max_ncpus) /* sanity check */ 192 user_ncpus = max_ncpus;
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_startup.c | 294 size = MMFSA_SIZE * max_ncpus; 461 ASSERT(cpuid < max_ncpus);
|
H A D | error.c | 776 * Allocate error queue sizes based on max_ncpus. max_ncpus is set just 791 MAX_ASYNC_FLTS * (max_ncpus + 1), size, PIL_2, ERRORQ_VITAL); 794 MAX_CE_FLTS * (max_ncpus + 1), size, PIL_1, 0);
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_mech_tabs.c | 116 for (int i = 0; i < max_ncpus; i++) \ 120 for (int i = 0; i < max_ncpus; i++) \ 268 me_mutexes = kmem_zalloc(max_ncpus * sizeof (kcf_lock_withpad_t), 270 for (i = 0; i < max_ncpus; i++) {
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vpm.c | 198 vpm_nfreelist = max_ncpus; 199 } else if (vpm_nfreelist < 0 || vpm_nfreelist > 2 * max_ncpus) { 201 "vpm_nfreelist %d using %d", vpm_nfreelist, max_ncpus); 202 vpm_nfreelist = 2 * max_ncpus; 217 vpmd_cpu = kmem_zalloc(sizeof (union vpm_cpu) * max_ncpus, KM_SLEEP); 219 for (i = 0; i < max_ncpus; i++) {
|
H A D | seg_map.c | 282 for (i = 0; i < max_ncpus; i++) { 312 extern int max_ncpus; 329 * proportional to max_ncpus * number of virtual colors. 335 nfreelist = max_ncpus; 336 else if (nfreelist < 0 || nfreelist > 4 * max_ncpus) { 338 "%d, using %d", nfreelist, max_ncpus); 339 nfreelist = max_ncpus; 459 kmem_zalloc(sizeof (union segmap_cpu) * max_ncpus, KM_SLEEP); 460 for (i = 0, scpu = smd_cpu; i < max_ncpus; i++, scpu++) {
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_consume.c | 2755 static int max_ncpus; local 2802 if (max_ncpus == 0) 2803 max_ncpus = dt_sysconf(dtp, _SC_CPUID_MAX) + 1; 2805 for (i = 0; i < max_ncpus; i++) { 2876 static int max_ncpus; local 2893 if (max_ncpus == 0) 2894 max_ncpus = dt_sysconf(dtp, _SC_CPUID_MAX) + 1; 2917 for (i = 0; i < max_ncpus; i++) { 2973 uint64_t *drops = alloca(max_ncpus * sizeof (uint64_t)); 2978 bzero(drops, max_ncpus * sizeo [all...] |
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | hpet_acpi.c | 1080 for (id = 0; id < max_ncpus; ++id) { 1121 for (id = 0; id < max_ncpus; ++id) { 1311 for (id = 0; id < max_ncpus; ++id) { 1373 * Use max_ncpus for hot plug compliance. 1375 hpet_proxy_users = kmem_zalloc(max_ncpus * sizeof (*hpet_proxy_users), 1381 for (id = 0; id < max_ncpus; ++id)
|
/illumos-gate/usr/src/lib/libzpool/common/sys/ |
H A D | zfs_context.h | 521 #define max_ncpus 64 macro 527 #define CPU_SEQID (thr_self() & (max_ncpus - 1))
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 77 * max_ncpus so it shouldn't be a problem unless there are large 289 cp_max_numparts = max_ncpus * 2 + 1; 315 bitset_resize(&cp_default.cp_haltset, max_ncpus); 861 bitset_resize(&pp->cp_haltset, max_ncpus);
|