Home
last modified time | relevance | path

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

/freebsd-14.2/sys/sys/
H A Dcpuset.h41 #define _NCPUWORDS __bitset_words(CPU_SETSIZE)
45 #define CPU_CLR(n, p) __BIT_CLR(CPU_SETSIZE, n, p)
46 #define CPU_COPY(f, t) __BIT_COPY(CPU_SETSIZE, f, t)
47 #define CPU_ISSET(n, p) __BIT_ISSET(CPU_SETSIZE, n, p)
48 #define CPU_SET(n, p) __BIT_SET(CPU_SETSIZE, n, p)
49 #define CPU_ZERO(p) __BIT_ZERO(CPU_SETSIZE, p)
50 #define CPU_FILL(p) __BIT_FILL(CPU_SETSIZE, p)
53 #define CPU_EMPTY(p) __BIT_EMPTY(CPU_SETSIZE, p)
57 #define CPU_CMP(p, c) __BIT_CMP(CPU_SETSIZE, p, c)
69 #define CPU_FFS(p) __BIT_FFS(CPU_SETSIZE, p)
[all …]
H A D_cpuset.h38 #define CPU_SETSIZE MAXCPU macro
43 #ifndef CPU_SETSIZE
44 #define CPU_SETSIZE CPU_MAXSIZE macro
47 __BITSET_DEFINE(_cpuset, CPU_SETSIZE);
/freebsd-14.2/contrib/netbsd-tests/lib/libc/gen/
H A Dt_cpuset.c51 if (i > CPU_SETSIZE) in cpuset_set()
61 if (i > CPU_SETSIZE) in cpuset_clr()
71 if (i > CPU_SETSIZE) in cpuset_isset()
/freebsd-14.2/tools/tools/tscdrift/
H A Dtscdrift.c108 for (ncpu = 0, i = 0; i < CPU_SETSIZE; i++) { in main()
118 for (i = 0, j = 0; i < CPU_SETSIZE; i++) in main()
/freebsd-14.2/lib/libpmcstat/
H A Dlibpmcstat_event.c46 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) { in pmcstat_clone_event_descriptor()
/freebsd-14.2/lib/libutil/
H A Dcpuset.c57 if (curnum > CPU_SETSIZE) in cpuset_parselist()
H A Dlogin_class.c268 if (curnum > CPU_SETSIZE) in list2cpuset()
270 "Only %d cpus supported", CPU_SETSIZE); in list2cpuset()
/freebsd-14.2/lib/libutil/tests/
H A Dcpuset_test.c20 snprintf(testvalue, sizeof(testvalue), "%d", CPU_SETSIZE + 1); in ATF_TC_BODY()
/freebsd-14.2/usr.sbin/bhyve/
H A Dbhyverun.c297 if (pcpu < 0 || pcpu >= CPU_SETSIZE) { in pincpu_parse()
299 "0 to %d\n", pcpu, CPU_SETSIZE - 1); in pincpu_parse()
330 if (pcpu < 0 || pcpu >= CPU_SETSIZE) in parse_cpuset()
332 pcpu, CPU_SETSIZE - 1); in parse_cpuset()
/freebsd-14.2/tools/tools/netrate/tcpp/
H A Dtcpp_server.c197 #if defined(CPU_SETSIZE) && 0 in tcpp_server_worker()
212 if (sched_setaffinity(0, CPU_SETSIZE, &mask) < 0) in tcpp_server_worker()
H A Dtcpp_client.c214 #if defined(CPU_SETSIZE) && 0 in tcpp_client_worker()
229 if (sched_setaffinity(0, CPU_SETSIZE, &mask) < 0) in tcpp_client_worker()
H A Dtcpp.c179 #if defined(CPU_SETSIZE) && 0 in main()
/freebsd-14.2/contrib/xz/src/common/
H A Dtuklib_cpucores.c68 for (unsigned i = 0; i < CPU_SETSIZE; ++i) in tuklib_cpucores()
/freebsd-14.2/usr.bin/procstat/
H A Dprocstat_cs.c89 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) { in procstat_cs()
/freebsd-14.2/bin/cpuset/
H A Dcpuset.c173 parselist(list, (struct bitset *)mask, CPU_SETSIZE); in parsecpulist()
255 printset((struct bitset *)&mask, CPU_SETSIZE); in printaffinity()
/freebsd-14.2/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c2807 (2 * __bitset_words(CPU_SETSIZE) - 1) * (_BITSET_BITS / 8), in linux_compat_init()
2825 (__bitset_words(CPU_SETSIZE) - 1); in linux_compat_init()
2828 bwp += (2 * __bitset_words(CPU_SETSIZE) - 1); in linux_compat_init()
2838 bwp += (2 * __bitset_words(CPU_SETSIZE) - 1) * in linux_compat_init()
2840 __bitset_words(CPU_SETSIZE) - 1; in linux_compat_init()
/freebsd-14.2/tools/tools/crypto/
H A Dcryptotest.c612 if (maxthreads > CPU_SETSIZE) in main()
/freebsd-14.2/sys/kern/
H A Dkern_cpuset.c1427 CPU_SETSIZE); in cpusetobj_strprint()
1443 p = buf[bitset_strscan((struct bitset *)set, CPU_SETSIZE, buf)]; in cpusetobj_strscan()
2584 ddb_display_bitset((const struct bitset *)set, CPU_SETSIZE); in ddb_display_cpuset()
H A Dkern_intr.c459 for (n = 0; n < CPU_SETSIZE; n++) { in intr_setaffinity()
/freebsd-14.2/contrib/ofed/libmlx5/
H A Dmlx5.c333 } while (i < CPU_SETSIZE); in mlx5_local_cpu_set()
/freebsd-14.2/usr.bin/top/
H A Dmachine.c367 maxid = MIN(size / CPUSTATES / sizeof(long) - 1, CPU_SETSIZE - 1); in machine_init()
/freebsd-14.2/usr.sbin/bhyvectl/
H A Dbhyvectl.c422 for (i = 0; i < CPU_SETSIZE; i++) { in print_cpus()
/freebsd-14.2/sys/amd64/vmm/
H A Dvmm.c305 #define VM_MAXCPU MIN(0xffff - 1, CPU_SETSIZE)
/freebsd-14.2/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3437 for (int i = 0; i < __bitset_words(CPU_SETSIZE); i++) { in copyout32_set()
/freebsd-14.2/sys/net/
H A Diflib.c4966 for (i = 0; i < CPU_SETSIZE; i++) { in find_l2_neighbor()