Home
last modified time | relevance | path

Searched refs:NCPU (Results 1 – 25 of 120) sorted by relevance

12345

/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachparam.h68 #ifndef NCPU
69 #define NCPU 32 macro
72 #if (NCPU <= 1)
74 #elif (NCPU <= 2)
76 #elif (NCPU <= 4)
78 #elif (NCPU <= 8)
80 #elif (NCPU <= 16)
82 #elif (NCPU <= 32)
84 #elif (NCPU <= 64)
86 #elif (NCPU <= 128)
[all …]
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/apix/
H A Dapix.c33 static apix_impl_t *d_apixs[NCPU];
34 static int d_ncpus = NCPU;
65 d_ncpus = NCPU; in interrupt_dump_apix()
67 if (d_ncpus == 0 || d_ncpus > NCPU) in interrupt_dump_apix()
68 d_ncpus = NCPU; in interrupt_dump_apix()
/illumos-gate/usr/src/uts/sun4/os/
H A Dmp_states.c45 static int kern_idle[NCPU]; /* kernel's idle loop */
96 ASSERT(cpuid < NCPU); in idle_other_cpus()
107 for (i = 0; i < NCPU; i++) { in idle_other_cpus()
143 ASSERT(cpuid < NCPU); in resume_other_cpus()
146 for (i = 0; i < NCPU; i++) { in resume_other_cpus()
154 for (i = 0; i < NCPU; i++) { in resume_other_cpus()
H A Dmp_startup.c57 struct cpu *cpu[NCPU]; /* pointers to all CPUs */
58 uint64_t cpu_pa[NCPU]; /* pointers to all CPUs in PA */
59 cpu_core_t cpu_core[NCPU]; /* cpu_core structures */
279 int trap_trace_inuse[NCPU];
560 ASSERT(cpuid < NCPU && cpu[cpuid] != NULL); in restart_other_cpu()
670 extern struct cpu *cpu[NCPU]; /* pointers to all CPUs */
745 for (cpuid = 0; cpuid < NCPU; cpuid++) { in start_other_cpus()
H A Dx_call.c43 uint_t x_dstat[NCPU][XC_LOOP_EXIT+1];
44 uint_t x_rstat[NCPU][4];
50 int xc_spl_enter[NCPU]; /* protect sending x-call */
62 } xc_mbox[NCPU];
132 for (pix = 0; pix < NCPU; pix++) { in xc_init()
155 for (pix = 0; pix < NCPU; pix++) { in xc_init()
778 for (pix = 0; pix < NCPU; pix++) { in xc_attention()
858 for (pix = 0; pix < NCPU; pix++) { in xc_dismissed()
874 for (pix = 0; pix < NCPU; pix++) { in xc_dismissed()
/illumos-gate/usr/src/uts/sun4/sys/
H A Dxc_impl.h125 for (pix = 0; pix < NCPU; pix++) { \
147 for (pix = 0; pix < NCPU; pix++) { \
168 for (pix = 0; pix < NCPU; pix++) { \
195 for (pix = 0; pix < NCPU; pix++) { \
278 extern uint_t x_dstat[NCPU][XC_LOOP_EXIT+1];
279 extern uint_t x_rstat[NCPU][4];
H A Divintr.h48 #define MAX_RSVD_IV ((NCPU * 3) + 256) /* HW and Single target SW intrs */
102 intr_vec_t *iv_pil_xnext[NCPU -1]; /* For CPU1 through N-1 */
/illumos-gate/usr/src/uts/intel/os/
H A Dhma.c55 static hma_cpu_state_t hma_cpu_status[NCPU];
65 static void *hma_vmx_vmxon_page[NCPU];
66 static uintptr_t hma_vmx_vmxon_pa[NCPU];
75 static void *hma_svm_hsave_page[NCPU];
76 static uintptr_t hma_svm_hsave_pa[NCPU];
78 static hma_svm_asid_t hma_svm_cpu_asid[NCPU];
200 #define HMA_VPID_RESERVED NCPU
316 ASSERT(id >= 0 && id < NCPU); in hma_vmx_cpu_setup()
610 ASSERT(id >= 0 && id < NCPU); in hma_svm_cpu_setup()
732 for (uint_t i = 0; i < NCPU; i++) { in hma_svm_init()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachparam.h59 #ifndef NCPU
60 #define NCPU 512 macro
75 #define MAX_CPU_CHIPID NCPU
225 #define PPMAP_FAST_SIZE (MAXPP_SLOTS * PAGESIZE * NCPU)
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmlsetup.c449 boot_ncpus = NCPU; in mlsetup()
452 if (boot_ncpus <= 0 || boot_ncpus > NCPU) in mlsetup()
453 boot_ncpus = NCPU; in mlsetup()
464 max_ncpus = NCPU; in mlsetup()
467 if (max_ncpus <= 0 || max_ncpus > NCPU) { in mlsetup()
468 max_ncpus = NCPU; in mlsetup()
479 if (boot_max_ncpus <= 0 || boot_max_ncpus > NCPU) { in mlsetup()
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dcomm_page.S36 hrtime_t tsc_sync_tick_delta[NCPU];
82 DGDEF2(tsc_sync_tick_delta, _MUL(NCPU, 8))
83 .fill _CONST(NCPU), 8, 0
/illumos-gate/usr/src/uts/sun4v/os/
H A Dfillsysinfo.c54 struct cpu_node cpunodes[NCPU];
120 if (cpuid >= NCPU) { in fill_cpu()
258 if (lcpuid >= NCPU) in setup_chip_mappings()
327 idx = NCPU + i; in setup_exec_unit_mappings()
343 if (lcpuid >= NCPU) in setup_exec_unit_mappings()
880 ncpu_guest_max = NCPU; in get_q_sizes()
1278 ASSERT(cpids[cp_idx] < NCPU); in load_tlb_cpu_mappings()
1305 kmem_free(cpids, sizeof (uint64_t) * NCPU); in load_tlb_cpu_mappings()
1358 for (idx = 0; idx < NCPU; idx++) { in plat_cpuid_to_mmu_ctx_info()
1367 ASSERT(id < NCPU); in plat_cpuid_to_mmu_ctx_info()
[all …]
H A Dsuspend.c358 cpu_pg_t *pgps[NCPU]; in update_cpu_mappings()
371 for (id = 0; id < NCPU; id++) { in update_cpu_mappings()
393 for (id = 0; id < NCPU; id++) { in update_cpu_mappings()
409 for (id = 0; id < NCPU; id++) { in update_cpu_mappings()
421 for (id = 0; id < NCPU; id++) { in update_cpu_mappings()
434 for (id = 0; id < NCPU; id++) { in update_cpu_mappings()
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dxcall.c36 struct xc_msg xd_msgs[NCPU];
81 if (data->xd_msg_index >= NCPU) { in xcall_copy_msg()
83 data->xd_msg_index, NCPU); in xcall_copy_msg()
192 if (addr < NCPU && cpu_id_to_addr((processorid_t)addr, &addr) != 0) { in xcall_dcmd()
H A Dunix.c51 static apix_impl_t *d_apixs[NCPU];
87 size_t ttc_size = sizeof (trap_trace_ctl_t) * NCPU; in ttrace_walk_init()
115 for (i = 0; i < NCPU; i++) { in ttrace_walk_init()
146 for (i = 0; i < NCPU; i++) { in ttrace_walk_step()
189 mdb_free(wsp->walk_data, sizeof (trap_trace_ctl_t) * NCPU); in ttrace_walk_fini()
415 trap_trace_ctl_t ttd_ttc[NCPU];
471 for (i = 0; i < NCPU; i++) { in ttrace_walk()
534 size_t ttc_size = sizeof (trap_trace_ctl_t) * NCPU; in ttrace()
561 if (addr >= NCPU) { in ttrace()
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dcomm_page.h67 hrtime_t cp_tsc_sync_tick_delta[NCPU];
89 extern hrtime_t tsc_sync_tick_delta[NCPU];
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_cheetah.c162 #if (NCPU > IDSR_BN_SETS) in send_mondo_set()
174 #if (NCPU <= IDSR_BN_SETS) in send_mondo_set()
175 for (i = 0; i < NCPU; i++) in send_mondo_set()
186 for (i = 0; i < NCPU; i++) in send_mondo_set()
215 #if (NCPU <= IDSR_BN_SETS) in send_mondo_set()
278 #if (NCPU > IDSR_BN_SETS) in send_mondo_set()
/illumos-gate/usr/src/uts/sun4u/opl/sys/
H A Ddrmach.h218 volatile uchar_t stat[NCPU];
231 volatile ushort_t error[NCPU];
233 struct memlist *cpu_ml[NCPU];
246 uint64_t nbytes[NCPU];
/illumos-gate/usr/src/uts/i86pc/io/
H A Dmp_platform_common.c718 } else if (apic_nproc < NCPU && use_mp && in acpi_probe()
723 } else if (apic_nproc == NCPU && !warned) { in acpi_probe()
726 psm_name, NCPU); in acpi_probe()
815 } else if (apic_nproc < NCPU && use_mp && in acpi_probe()
821 } else if (apic_nproc == NCPU && !warned) { in acpi_probe()
824 psm_name, NCPU); in acpi_probe()
1076 kmem_free(proc_ids, NCPU * sizeof (uint32_t)); in acpi_probe()
1164 if (apic_nproc < NCPU && use_mp && in apic_parse_mpct()
1168 } else if (apic_nproc == NCPU && !warned) { in apic_parse_mpct()
1171 psm_name, NCPU); in apic_parse_mpct()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dftrace.c272 for (i = 0; i < NCPU; i++) { in ftrace_init()
287 for (i = 0; i < NCPU; i++) in ftrace_init()
313 for (i = 0; i < NCPU; i++) in ftrace_start()
334 for (i = 0; i < NCPU; i++) in ftrace_stop()
H A Dclock_tick.c139 cpu_t *clock_tick_cpus[NCPU];
140 clock_tick_cpu_t *clock_tick_cpu[NCPU];
179 buf = (uintptr_t)kmem_zalloc(size * NCPU + CLOCK_TICK_ALIGN, KM_SLEEP); in clock_tick_init_pre()
189 for (i = 0; i < NCPU; i++, buf += size) { in clock_tick_init_pre()
/illumos-gate/usr/src/uts/sun4u/os/
H A Dfillsysinfo.c100 struct cpu_node cpunodes[NCPU];
463 if (cpuid < 0 || cpuid >= NCPU) { in fill_cpu()
687 if (cpuid < 0 || cpuid >= NCPU) { in fill_cpu_ddi()
868 for (i = 0; i < NCPU; i++) { in check_cpus_ver()
943 for (i = 0; i < NCPU; i++) { in check_cpus_set()
965 for (i = 0; i < NCPU; i++) { in check_cpus_set()
983 for (i = 0; i < NCPU; i++) { in check_cpus_set()
1037 for (i = 0; i < NCPU; i++) { in check_cpus_set()
H A Dcmp.c107 for (i = 0; i < NCPU; i++) { in cmp_error_resteer()
120 if (i == NCPU) { in cmp_error_resteer()
H A Dmach_startup.c132 chkfngrpsallocsz = NCPU * sizeof (struct fpras_chkfngrp); in mach_fpras()
153 for (i = 1; i < NCPU; ++i) in mach_fpras()
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_kpm.c195 kmem_zalloc(NCPU * b->nvcolors * sizeof (ushort_t), KM_SLEEP); in segkpm_create()
197 for (i = 0; i < NCPU; i++) in segkpm_create()

12345