Searched refs:mp_maxid (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-10-stable/sys/sys/
H A Dsmp.h85 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 Dexynos5_mp.c53 mp_maxid = 1;
/freebsd-10-stable/sys/arm/ti/omap4/
H A Domap4_mp.c51 mp_maxid = 1;
/freebsd-10-stable/tools/tools/umastat/
H A Dumastat.c292 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 Dmemstat_uma.c304 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 Dzy7_mp.c56 mp_maxid = 1;
/freebsd-10-stable/sys/kern/
H A Dsubr_smp.c73 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 Dsubr_lock.c261 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 Dkern_pmc.c190 return (mp_maxid+1);
H A Dkern_clock.c146 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 Dsubr_pcpu.c410 for (id = 0; id <= mp_maxid; id++) {
/freebsd-10-stable/sys/arm/freescale/imx/
H A Dimx6_mp.c95 mp_maxid = ncpu - 1;
/freebsd-10-stable/sys/arm/allwinner/a20/
H A Da20_mp.c77 mp_maxid = ncpu - 1;
/freebsd-10-stable/sys/powerpc/powerpc/
H A Dmp_machdep.c130 mp_maxid = min(mp_ncpus, MAXCPU) - 1;
192 for (i = 0; i <= mp_maxid; i++) {
/freebsd-10-stable/sys/i386/i386/
H A Dmp_machdep.c499 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 Dtsc.c371 size = (mp_maxid + 1) * 3;
398 size = (mp_maxid + 1) * 3;
436 size = (mp_maxid + 1) * 3;
H A Dmca.c739 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 Drk30xx_mp.c103 mp_maxid = ncpu - 1;
/freebsd-10-stable/sys/arm/mv/armadaxp/
H A Darmadaxp_mp.c84 mp_maxid = 3;
/freebsd-10-stable/sys/amd64/amd64/
H A Dmp_machdep.c462 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 Dmp_machdep.c175 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 Dmp_machdep.c284 mp_maxid = min(mp_ncpus, MAXCPU) - 1;
339 for (i = 0; i <= mp_maxid; i++) {
/freebsd-10-stable/sys/crypto/aesni/
H A Daesni.c146 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 Dmp_machdep.c221 mp_maxid = min(last, MAXCPU) - 1;
/freebsd-10-stable/sys/cddl/dev/profile/
H A Dprofile.c574 prof->prof_pcpus = kmem_zalloc((mp_maxid + 1) * sizeof(pcpu), KM_SLEEP);
603 kmem_free(prof->prof_pcpus, (mp_maxid + 1) * sizeof(pcpu));

Completed in 613 milliseconds

12