/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mlsetup.c | 461 max_ncpus = boot_max_ncpus = boot_ncpus; in mlsetup() 464 max_ncpus = NCPU; in mlsetup() 466 max_ncpus = (int)prop_value; in mlsetup() 467 if (max_ncpus <= 0 || max_ncpus > NCPU) { in mlsetup() 468 max_ncpus = NCPU; in mlsetup() 470 if (boot_ncpus > max_ncpus) { in mlsetup() 471 boot_ncpus = max_ncpus; in mlsetup() 481 } else if (boot_max_ncpus > max_ncpus) { in mlsetup() 482 boot_max_ncpus = max_ncpus; in mlsetup()
|
H A D | x_call.c | 208 for (c = 0; c < max_ncpus; ++c) { in xc_init_cpu() 491 for (c = 0; c < max_ncpus; ++c) { in xc_common() 562 for (c = 0; c < max_ncpus; ++c) { in xc_priority_common() 602 for (c = 0; c < max_ncpus; ++c) { in xc_priority_common()
|
H A D | cpr_impl.c | 339 for (who = 0; who < max_ncpus; who++) { in i_cpr_pre_resume_cpus() 483 for (who = 0; who < max_ncpus; who++) { in prt_other_cpus() 1002 wc_other_cpus = kmem_zalloc(max_ncpus * sizeof (wc_cpu_t), in i_cpr_alloc_cpus() 1015 for (index = 0; index < max_ncpus; index++) { in i_cpr_free_cpus() 1024 max_ncpus * sizeof (wc_cpu_t)); in i_cpr_free_cpus()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 308 sz = sizeof (cpu_idle_cb_state_t) * max_ncpus; in cpu_event_init() 315 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { in cpu_event_init() 351 ASSERT(cp->cpu_seqid < max_ncpus); in cpu_event_init_cpu() 363 ASSERT(cp->cpu_seqid < max_ncpus); in cpu_event_fini_cpu() 488 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { in cpu_idle_remove_callback() 511 ASSERT(CPU->cpu_seqid < max_ncpus); in cpu_idle_register_callback() 569 ASSERT(CPU->cpu_seqid < max_ncpus); in cpu_idle_unregister_callback() 643 ASSERT(CPU->cpu_seqid < max_ncpus); in cpu_idle_enter() 745 ASSERT(CPU->cpu_seqid < max_ncpus); in cpu_idle_exit() 834 sz = sizeof (*valp) * CPU_IDLE_VALUE_GROUP_SIZE * max_ncpus; in cpu_idle_prop_allocate_impl() [all …]
|
H A D | clock_tick.c | 208 if (clock_tick_ncpus > max_ncpus) in clock_tick_init_pre() 209 clock_tick_ncpus = max_ncpus; in clock_tick_init_pre() 214 n = (max_ncpus + clock_tick_ncpus - 1)/clock_tick_ncpus; in clock_tick_init_pre() 237 clock_tick_threshold = max_ncpus; in clock_tick_init_post() 245 clock_tick_ncpus = max_ncpus; in clock_tick_init_post()
|
H A D | callout.c | 1640 for (f = 0; f < max_ncpus; f++) { in callout_suspend() 1676 for (f = 0; f < max_ncpus; f++) { in callout_resume() 1802 for (f = 0; f < max_ncpus; f++) { in callout_hrestime() 2100 for (fanout = 1; (fanout < max_ncpus); fanout <<= 1) in callout_init() 2135 size = sizeof (callout_table_t) * CALLOUT_NTYPES * max_ncpus; in callout_init() 2144 for (f = 0; f < max_ncpus; f++) { in callout_init()
|
H A D | kmem.c | 1400 int nchunks = 4 * max_ncpus; in kmem_log_init() 1401 size_t lhsize = (size_t)&((kmem_log_header_t *)0)->lh_cpu[max_ncpus]; in kmem_log_init() 1422 for (i = 0; i < max_ncpus; i++) { in kmem_log_init() 1428 for (i = max_ncpus; i < nchunks; i++) in kmem_log_init() 1431 lhp->lh_head = max_ncpus; in kmem_log_init() 3215 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { in kmem_cache_magazine_purge() 3251 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { in kmem_cache_magazine_enable() 3476 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { in kmem_cache_kstat_update() 3726 size_t csize = KMEM_CACHE_SIZE(max_ncpus); in kmem_cache_create() 3983 for (cpu_seqid = 0; cpu_seqid < max_ncpus; cpu_seqid++) { in kmem_cache_create() [all …]
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | ecc.c | 212 MAX_ASYNC_FLTS * (max_ncpus + 1), size, PIL_2, ERRORQ_VITAL); in error_init() 215 MAX_CE_FLTS * (max_ncpus + 1), size, PIL_1, 0); in error_init() 245 (max_ncpus + 1)); in error_init()
|
H A D | fillsysinfo.c | 1025 max_ncpus = set_max_ncpus(); in check_cpus_set() 1026 if (max_ncpus < ncpunode) in check_cpus_set() 1027 max_ncpus = ncpunode; in check_cpus_set() 1030 max_ncpus = ncpunode; in check_cpus_set() 1045 max_ncpus = 1; in check_cpus_set()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | txg.c | 124 tx->tx_cpu = kmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init() 126 for (c = 0; c < max_ncpus; c++) { in txg_init() 171 for (c = 0; c < max_ncpus; c++) { in txg_fini() 185 kmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); in txg_fini() 363 for (c = 0; c < max_ncpus; c++) in txg_quiesce() 377 for (c = 0; c < max_ncpus; c++) in txg_quiesce() 383 for (c = 0; c < max_ncpus; c++) { in txg_quiesce() 415 for (c = 0; c < max_ncpus; c++) { in txg_dispatch_callbacks() 432 max_ncpus, minclsyspri, max_ncpus, max_ncpus * 2, in txg_dispatch_callbacks()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 93 return (TRAP_TSIZE * (max_ncpus - 1)); in calc_traptrace_sz() 304 ASSERT(ncpus <= max_ncpus); in setup_cpu_common() 316 for (tt_index = 0; tt_index < (max_ncpus-1); tt_index++) in setup_cpu_common() 319 ASSERT(tt_index < max_ncpus - 1); in setup_cpu_common() 505 ((i >= 0) && (i < (max_ncpus-1)))) { in cleanup_cpu_common()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vpm.c | 198 vpm_nfreelist = max_ncpus; in vpm_init() 199 } else if (vpm_nfreelist < 0 || vpm_nfreelist > 2 * max_ncpus) { in vpm_init() 201 "vpm_nfreelist %d using %d", vpm_nfreelist, max_ncpus); in vpm_init() 202 vpm_nfreelist = 2 * max_ncpus; in vpm_init() 217 vpmd_cpu = kmem_zalloc(sizeof (union vpm_cpu) * max_ncpus, KM_SLEEP); in vpm_init() 219 for (i = 0; i < max_ncpus; i++) { in vpm_init()
|
H A D | seg_map.c | 282 for (i = 0; i < max_ncpus; i++) { in segmap_kstat_update() 312 extern int max_ncpus; in segmap_create() 335 nfreelist = max_ncpus; in segmap_create() 336 else if (nfreelist > 4 * max_ncpus) { in segmap_create() 338 "%d, using %d", nfreelist, max_ncpus); in segmap_create() 339 nfreelist = max_ncpus; in segmap_create() 459 kmem_zalloc(sizeof (union segmap_cpu) * max_ncpus, KM_SLEEP); in segmap_create() 460 for (i = 0, scpu = smd_cpu; i < max_ncpus; i++, scpu++) { in segmap_create()
|
/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++) \ 272 me_mutexes = kmem_zalloc(max_ncpus * sizeof (kcf_lock_withpad_t), in kcf_init_mech_tabs() 274 for (i = 0; i < max_ncpus; i++) { in kcf_init_mech_tabs()
|
/illumos-gate/usr/src/lib/libzpool/common/sys/ |
H A D | zfs_context.h | 283 #define max_ncpus 64 macro 298 #define CPU_SEQID (thr_self() & (max_ncpus - 1))
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_consume.c | 2757 static int max_ncpus; in dt_consume_begin() local 2804 if (max_ncpus == 0) in dt_consume_begin() 2805 max_ncpus = dt_sysconf(dtp, _SC_CPUID_MAX) + 1; in dt_consume_begin() 2807 for (i = 0; i < max_ncpus; i++) { in dt_consume_begin() 2878 static int max_ncpus; in dtrace_consume() local 2895 if (max_ncpus == 0) in dtrace_consume() 2896 max_ncpus = dt_sysconf(dtp, _SC_CPUID_MAX) + 1; in dtrace_consume() 2919 for (i = 0; i < max_ncpus; i++) { in dtrace_consume() 2975 uint64_t *drops = alloca(max_ncpus * sizeof (uint64_t)); in dtrace_consume() 2980 bzero(drops, max_ncpus * sizeof (uint64_t)); in dtrace_consume() [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_startup.c | 294 size = MMFSA_SIZE * max_ncpus; in ndata_alloc_mmfsa() 461 ASSERT(cpuid < max_ncpus); in mach_htraptrace_cleanup()
|
H A D | error.c | 791 MAX_ASYNC_FLTS * (max_ncpus + 1), size, PIL_2, ERRORQ_VITAL); in error_init() 794 MAX_CE_FLTS * (max_ncpus + 1), size, PIL_1, 0); in error_init()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode.c | 220 for (processorid_t id = 0; id < max_ncpus; id++) { in ucode_update() 468 for (i = 0; i < max_ncpus; i++) { in ucode_get_rev()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | hpet_acpi.c | 1215 for (id = 0; id < max_ncpus; ++id) { in hpet_expire_all() 1256 for (id = 0; id < max_ncpus; ++id) { in hpet_guaranteed_schedule() 1444 for (id = 0; id < max_ncpus; ++id) { in hpet_use_hpet_timer() 1507 hpet_proxy_users = kmem_zalloc(max_ncpus * sizeof (*hpet_proxy_users), in hpet_init_proxy_data() 1513 for (id = 0; id < max_ncpus; ++id) in hpet_init_proxy_data()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | stats.c | 172 nr_cpus = max_ncpus; in rdsv3_stats_init()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sysconfig.c | 114 return (max_ncpus); in sysconfig()
|
H A D | pset.c | 191 if (user_ncpus > max_ncpus) /* sanity check */ in pset_info() 192 user_ncpus = max_ncpus; in pset_info()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 292 cp_max_numparts = max_ncpus * 2 + 1; in cpupart_initialize_default() 318 bitset_resize(&cp_default.cp_haltset, max_ncpus); in cpupart_initialize_default() 859 bitset_resize(&pp->cp_haltset, max_ncpus); in cpupart_create()
|
H A D | fss.c | 542 for (i = 0; i < max_ncpus; i++) { in fss_find_fsspset() 555 for (i = 0; i < max_ncpus; i++) { in fss_find_fsspset() 855 fsspsets = kmem_zalloc(sizeof (fsspset_t) * max_ncpus, KM_SLEEP); in fss_init() 1051 for (psetid = 0; psetid < max_ncpus; psetid++) { in fss_decay_usage()
|