/freebsd-10-stable/sys/sys/ |
H A D | smp.h | 85 extern u_int mp_maxid; 108 for ((i) = 0; (i) <= mp_maxid; (i)++) \ 127 if (i > mp_maxid) 153 * so that the MD code may set mp_maxid to provide an upper bound on CPU IDs 155 * the exact maximum ID that early, then it may set mp_maxid to MAXCPU - 1.
|
/freebsd-10-stable/sys/arm/samsung/exynos/ |
H A D | exynos5_mp.c | 53 mp_maxid = 1;
|
/freebsd-10-stable/sys/arm/ti/omap4/ |
H A D | omap4_mp.c | 51 mp_maxid = 1;
|
/freebsd-10-stable/tools/tools/umastat/ |
H A D | umastat.c | 292 int all_cpus, cpu, mp_maxcpus, mp_maxid, ret, ub_cnt, ub_entries; local 337 ret = kread_symbol(kvm, X_MP_MAXID, &mp_maxid, sizeof(mp_maxid), 0); 341 printf("mp_maxid = %d\n", mp_maxid); 354 * uma_zone_t ends in an array of mp_maxid cache entries. However, 358 uzp_userspace_len = sizeof(struct uma_zone) + mp_maxid * 439 for (cpu = 0; cpu <= mp_maxid; cpu++) {
|
/freebsd-10-stable/lib/libmemstat/ |
H A D | memstat_uma.c | 304 int hint_dontsearch, i, mp_maxid, ret; local 321 ret = kread_symbol(kvm, X_MP_MAXID, &mp_maxid, sizeof(mp_maxid), 0); 342 ucp_array = malloc(sizeof(struct uma_cache) * (mp_maxid + 1)); 366 sizeof(struct uma_cache) * (mp_maxid + 1), 389 name, mp_maxid + 1); 399 _memstat_mt_reset_stats(mtp, mp_maxid + 1); 406 for (i = 0; i < mp_maxid + 1; i++) {
|
/freebsd-10-stable/sys/arm/xilinx/ |
H A D | zy7_mp.c | 56 mp_maxid = 1;
|
/freebsd-10-stable/sys/kern/ |
H A D | subr_smp.c | 73 u_int mp_maxid; variable 78 SYSCTL_INT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD|CTLFLAG_CAPRD, &mp_maxid, 0, 125 * Let the MD SMP code initialize mp_maxid very early if it can. 776 mp_maxid = PCPU_GET(cpuid); 777 CPU_SETOF(mp_maxid, &all_cpus); 807 for (cpu = 0; cpu <= mp_maxid; cpu++) { 813 for (cpu = 0; cpu <= mp_maxid; cpu++) {
|
H A D | subr_lock.c | 261 for (cpu = 0; cpu <= mp_maxid; cpu++) { 304 for (cpu = 0; cpu <= mp_maxid; cpu++) { 311 for (cpu = 0; cpu <= mp_maxid; cpu++) { 352 for (cpu = 0; cpu <= mp_maxid; cpu++) { 412 for (cpu = 0; cpu <= mp_maxid; cpu++) {
|
H A D | kern_pmc.c | 190 return (mp_maxid+1);
|
H A D | kern_clock.c | 146 return SYSCTL_OUT(req, 0, sizeof(cp_time32) * (mp_maxid + 1)); 149 return SYSCTL_OUT(req, 0, sizeof(long) * CPUSTATES * (mp_maxid + 1)); 151 for (error = 0, c = 0; error == 0 && c <= mp_maxid; c++) {
|
H A D | subr_pcpu.c | 410 for (id = 0; id <= mp_maxid; id++) {
|
/freebsd-10-stable/sys/arm/freescale/imx/ |
H A D | imx6_mp.c | 95 mp_maxid = ncpu - 1;
|
/freebsd-10-stable/sys/arm/allwinner/a20/ |
H A D | a20_mp.c | 77 mp_maxid = ncpu - 1;
|
/freebsd-10-stable/sys/powerpc/powerpc/ |
H A D | mp_machdep.c | 130 mp_maxid = min(mp_ncpus, MAXCPU) - 1; 192 for (i = 0; i <= mp_maxid; i++) {
|
/freebsd-10-stable/sys/i386/i386/ |
H A D | mp_machdep.c | 499 mp_maxid = mp_ncpus - 1; 511 * mp_maxid should be already set by calls to cpu_add(). 515 KASSERT(mp_maxid == 0, 516 ("%s: mp_ncpus is zero, but mp_maxid is not", __func__)); 518 mp_maxid = 0; 520 KASSERT(mp_maxid >= mp_ncpus - 1, 522 mp_maxid, mp_ncpus)); 550 mp_maxid = 0; 922 KASSERT(mp_maxid >= mp_ncpus - 1, 923 ("%s: counters out of sync: max %d, count %d", __func__, mp_maxid, [all...] |
/freebsd-10-stable/sys/x86/x86/ |
H A D | tsc.c | 371 size = (mp_maxid + 1) * 3; 398 size = (mp_maxid + 1) * 3; 436 size = (mp_maxid + 1) * 3;
|
H A D | mca.c | 739 cmc_state = malloc((mp_maxid + 1) * sizeof(struct cmc_state *), M_MCA, 741 for (i = 0; i <= mp_maxid; i++)
|
/freebsd-10-stable/sys/arm/rockchip/ |
H A D | rk30xx_mp.c | 103 mp_maxid = ncpu - 1;
|
/freebsd-10-stable/sys/arm/mv/armadaxp/ |
H A D | armadaxp_mp.c | 84 mp_maxid = 3;
|
/freebsd-10-stable/sys/amd64/amd64/ |
H A D | mp_machdep.c | 462 mp_maxid = mp_ncpus - 1; 474 * mp_maxid should be already set by calls to cpu_add(). 478 KASSERT(mp_maxid == 0, 479 ("%s: mp_ncpus is zero, but mp_maxid is not", __func__)); 481 mp_maxid = 0; 483 KASSERT(mp_maxid >= mp_ncpus - 1, 485 mp_maxid, mp_ncpus)); 513 mp_maxid = 0; 916 KASSERT(mp_maxid >= mp_ncpus - 1, 917 ("%s: counters out of sync: max %d, count %d", __func__, mp_maxid, [all...] |
/freebsd-10-stable/sys/sparc64/sparc64/ |
H A D | mp_machdep.c | 175 if (mp_maxid > 0 && cpuids > mp_maxid) 215 mp_maxid = mp_ncpus - 1; 229 return (mp_maxid > 0); 311 if (cpuids > mp_maxid)
|
/freebsd-10-stable/sys/ia64/ia64/ |
H A D | mp_machdep.c | 284 mp_maxid = min(mp_ncpus, MAXCPU) - 1; 339 for (i = 0; i <= mp_maxid; i++) {
|
/freebsd-10-stable/sys/crypto/aesni/ |
H A D | aesni.c | 146 ctx_mtx = malloc(sizeof *ctx_mtx * (mp_maxid + 1), M_AESNI, 148 ctx_fpu = malloc(sizeof *ctx_fpu * (mp_maxid + 1), M_AESNI,
|
/freebsd-10-stable/sys/mips/mips/ |
H A D | mp_machdep.c | 221 mp_maxid = min(last, MAXCPU) - 1;
|
/freebsd-10-stable/sys/cddl/dev/profile/ |
H A D | profile.c | 574 prof->prof_pcpus = kmem_zalloc((mp_maxid + 1) * sizeof(pcpu), KM_SLEEP); 603 kmem_free(prof->prof_pcpus, (mp_maxid + 1) * sizeof(pcpu));
|