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

12

/freebsd-10.1-release/sys/sys/
H A Dsmp.h82 extern u_int mp_maxid;
105 for ((i) = 0; (i) <= mp_maxid; (i)++) \
124 if (i > mp_maxid)
150 * so that the MD code may set mp_maxid to provide an upper bound on CPU IDs
152 * the exact maximum ID that early, then it may set mp_maxid to MAXCPU - 1.
/freebsd-10.1-release/sys/arm/samsung/exynos/
H A Dexynos5_mp.c53 mp_maxid = 1;
/freebsd-10.1-release/sys/arm/ti/omap4/
H A Domap4_mp.c51 mp_maxid = 1;
/freebsd-10.1-release/sys/arm/xilinx/
H A Dzy7_mp.c53 mp_maxid = 1;
/freebsd-10.1-release/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 *
440 for (cpu = 0; cpu <= mp_maxid; cpu++) {
/freebsd-10.1-release/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.1-release/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.
771 mp_maxid = PCPU_GET(cpuid);
772 CPU_SETOF(mp_maxid, &all_cpus);
802 for (cpu = 0; cpu <= mp_maxid; cpu++) {
808 for (cpu = 0; cpu <= mp_maxid; cpu++) {
H A Dsubr_lock.c232 for (cpu = 0; cpu <= mp_maxid; cpu++) {
275 for (cpu = 0; cpu <= mp_maxid; cpu++) {
282 for (cpu = 0; cpu <= mp_maxid; cpu++) {
323 for (cpu = 0; cpu <= mp_maxid; cpu++) {
383 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.1-release/sys/arm/allwinner/a20/
H A Da20_mp.c76 mp_maxid = ncpu - 1;
/freebsd-10.1-release/sys/arm/freescale/imx/
H A Dimx6_mp.c95 mp_maxid = ncpu - 1;
/freebsd-10.1-release/sys/i386/i386/
H A Dmp_machdep.c496 mp_maxid = mp_ncpus - 1;
508 * mp_maxid should be already set by calls to cpu_add().
512 KASSERT(mp_maxid == 0,
513 ("%s: mp_ncpus is zero, but mp_maxid is not", __func__));
515 mp_maxid = 0;
517 KASSERT(mp_maxid >= mp_ncpus - 1,
519 mp_maxid, mp_ncpus));
547 mp_maxid = 0;
927 KASSERT(mp_maxid >= mp_ncpus - 1,
928 ("%s: counters out of sync: max %d, count %d", __func__, mp_maxid,
[all...]
/freebsd-10.1-release/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.1-release/sys/sparc64/sparc64/
H A Dmp_machdep.c190 if (mp_maxid > 0 && mp_ncpus >= mp_maxid + 1)
227 mp_maxid = 0;
236 mp_maxid++;
243 return (mp_maxid > 0);
/freebsd-10.1-release/sys/arm/mv/armadaxp/
H A Darmadaxp_mp.c82 mp_maxid = 3;
/freebsd-10.1-release/sys/arm/rockchip/
H A Drk30xx_mp.c103 mp_maxid = ncpu - 1;
/freebsd-10.1-release/sys/amd64/amd64/
H A Dmp_machdep.c458 mp_maxid = mp_ncpus - 1;
470 * mp_maxid should be already set by calls to cpu_add().
474 KASSERT(mp_maxid == 0,
475 ("%s: mp_ncpus is zero, but mp_maxid is not", __func__));
477 mp_maxid = 0;
479 KASSERT(mp_maxid >= mp_ncpus - 1,
481 mp_maxid, mp_ncpus));
509 mp_maxid = 0;
903 KASSERT(mp_maxid >= mp_ncpus - 1,
904 ("%s: counters out of sync: max %d, count %d", __func__, mp_maxid,
[all...]
/freebsd-10.1-release/sys/x86/x86/
H A Dtsc.c397 size = (mp_maxid + 1) * 3;
424 size = (mp_maxid + 1) * 3;
462 size = (mp_maxid + 1) * 3;
H A Dmca.c730 cmc_state = malloc((mp_maxid + 1) * sizeof(struct cmc_state *), M_MCA,
732 for (i = 0; i <= mp_maxid; i++)
/freebsd-10.1-release/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.1-release/sys/mips/mips/
H A Dmp_machdep.c221 mp_maxid = min(last, MAXCPU) - 1;
/freebsd-10.1-release/sys/netinet/
H A Dtcp_timer.c131 #define INP_CPU(inp) (per_cpu_timers ? (!CPU_ABSENT(((inp)->inp_flowid % (mp_maxid+1))) ? \
132 ((inp)->inp_flowid % (mp_maxid+1)) : curcpu) : 0)
/freebsd-10.1-release/sys/ddb/
H A Ddb_sym.c84 if (*(int *)valuep < -1 && *(int *)valuep > mp_maxid) {

Completed in 427 milliseconds

12