/freebsd/usr.sbin/pmcstat/ |
H A D | pmcstat.c | 120 pmcstat_get_cpumask(const char *cpuspec, cpuset_t *cpumask) in pmcstat_get_cpumask() argument 126 CPU_ZERO(cpumask); in pmcstat_get_cpumask() 135 CPU_SET(cpu, cpumask); in pmcstat_get_cpumask() 138 assert(!CPU_EMPTY(cpumask)); in pmcstat_get_cpumask() 441 cpuset_t cpumask, dommask, rootmask; in main() local 506 CPU_ZERO(&cpumask); in main() 519 CPU_COPY(&rootmask, &cpumask); in main() 541 CPU_COPY(&rootmask, &cpumask); in main() 543 pmcstat_get_cpumask(optarg, &cpumask); in main() 686 ev->ev_cpu = CPU_FFS(&cpumask) - 1; in main() [all …]
|
/freebsd/lib/libpmcstat/ |
H A D | libpmcstat_event.c | 39 pmcstat_clone_event_descriptor(struct pmcstat_ev *ev, const cpuset_t *cpumask, in pmcstat_clone_event_descriptor() argument 46 if (!CPU_ISSET(cpu, cpumask)) in pmcstat_clone_event_descriptor()
|
H A D | libpmcstat.h | 361 void pmcstat_clone_event_descriptor(struct pmcstat_ev *ev, const cpuset_t *cpumask, struct pmcstat_…
|
/freebsd/usr.sbin/pmc/ |
H A D | cmd_pmc_stat.c | 166 cpuset_t cpumask, rootmask; in pmc_stat_setup_stat() local 171 CPU_COPY(&rootmask, &cpumask); in pmc_stat_setup_stat() 232 ev->ev_cpu = CPU_FFS(&cpumask) - 1; in pmc_stat_setup_stat() 233 CPU_CLR(ev->ev_cpu, &cpumask); in pmc_stat_setup_stat() 234 pmcstat_clone_event_descriptor(ev, &cpumask, &pmc_args); in pmc_stat_setup_stat() 235 CPU_SET(ev->ev_cpu, &cpumask); in pmc_stat_setup_stat()
|
/freebsd/sys/i386/i386/ |
H A D | vm_machdep.c | 586 if (!CPU_ISSET(cpuid, &sf->cpumask)) { in sf_buf_shootdown() 587 CPU_SET(cpuid, &sf->cpumask); in sf_buf_shootdown() 593 CPU_ANDNOT(&other_cpus, &other_cpus, &sf->cpumask); in sf_buf_shootdown() 595 CPU_OR(&sf->cpumask, &sf->cpumask, &other_cpus); in sf_buf_shootdown()
|
H A D | pmap.c | 6101 CPU_ZERO(&sf->cpumask); in __CONCAT()
|
/freebsd/usr.bin/vmstat/ |
H A D | vmstat.c | 642 u_long cpumask; in dovmstat() local 651 cpumask = 0; in dovmstat() 688 getcpuinfo(&cpumask, &maxid); in dovmstat() 695 printhdr(maxid, cpumask); in dovmstat() 744 printhdr(maxid, cpumask); in dovmstat() 796 pcpustats(cpumask, maxid); in dovmstat() 820 printhdr(int maxid, u_long cpumask) in printhdr() argument 833 if (cpumask & (1ul << i)) in printhdr() 849 if (cpumask & (1ul << i)) in printhdr() 1145 pcpustats(u_long cpumask, int maxid) in pcpustats() argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/thermal/ |
H A D | zx2967-thermal.txt | 31 cpumask = <0xf>; 37 cpumask = <0x30>;
|
/freebsd/usr.sbin/bhyve/ |
H A D | bhyverun.c | 109 static cpuset_t cpumask; variable 414 CPU_SET_ATOMIC(vcpuid, &cpumask); in fbsdrun_addcpu() 430 if (!CPU_ISSET(vcpu, &cpumask)) { in fbsdrun_deletecpu() 435 CPU_CLR(vcpu, &cpumask); in fbsdrun_deletecpu() 444 while (!CPU_EMPTY(&cpumask)) { in fbsdrun_deletecpu()
|
/freebsd/sys/powerpc/pseries/ |
H A D | xics.c | 69 static void xicp_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv); 317 xicp_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv) in xicp_bind() argument 336 if (CPU_ISSET(cpu, &cpumask)) ncpus++; in xicp_bind() 341 if (!CPU_ISSET(cpu, &cpumask)) in xicp_bind()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | openpic.c | 229 openpic_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv __unused) in openpic_bind() argument 244 mask = cpumask.__bits[0] & 0xffffffff; in openpic_bind() 246 int i = mftb() % CPU_COUNT(&cpumask); in openpic_bind()
|
H A D | pic_if.m | 49 cpuset_t cpumask;
|
/freebsd/sys/powerpc/include/ |
H A D | openpicvar.h | 78 void openpic_bind(device_t dev, u_int irq, cpuset_t cpumask, void **);
|
/freebsd/sys/sys/ |
H A D | sf_buf.h | 97 cpuset_t cpumask; /* where mapping is valid */ member
|
H A D | intr.h | 111 u_int intr_irq_next_cpu(u_int current_cpu, cpuset_t *cpumask);
|
/freebsd/sys/powerpc/powernv/ |
H A D | xive.c | 436 xive_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv) in xive_bind() argument 453 if (CPU_ISSET(cpu, &cpumask)) ncpus++; in xive_bind() 458 if (!CPU_ISSET(cpu, &cpumask)) in xive_bind()
|
/freebsd/sys/kern/ |
H A D | subr_intr.c | 1254 intr_irq_next_cpu(u_int last_cpu, cpuset_t *cpumask) argument 1258 KASSERT(!CPU_EMPTY(cpumask), ("%s: Empty CPU mask", __func__)); 1262 if (CPU_ISSET(cpu, cpumask)) 1265 return (CPU_FFS(cpumask) - 1); 1272 } while (!CPU_ISSET(last_cpu, cpumask)); 1321 intr_irq_next_cpu(u_int current_cpu, cpuset_t *cpumask) argument
|
H A D | kern_ktr.c | 130 SYSCTL_PROC(_debug_ktr, OID_AUTO, cpumask,
|
/freebsd/usr.bin/top/ |
H A D | machine.c | 206 static cpuset_t cpumask; variable 368 CPU_ZERO(&cpumask); in machine_init() 376 CPU_SET(i, &cpumask); in machine_init() 378 ncpus = CPU_COUNT(&cpumask); in machine_init() 476 if (!CPU_ISSET(i, &cpumask)) in get_system_info()
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 647 cpuset_t cpumask; in setaffinity() local 654 CPU_ZERO(&cpumask); in setaffinity() 655 CPU_SET(i, &cpumask); in setaffinity() 657 if (pthread_setaffinity_np(pthread_self(), sizeof(cpuset_t), &cpumask) != 0) { in setaffinity()
|
H A D | pkt-gen.c | 717 cpuset_t cpumask; in setaffinity() local 723 CPU_ZERO(&cpumask); in setaffinity() 724 CPU_SET(i, &cpumask); in setaffinity() 726 if (pthread_setaffinity_np(me, sizeof(cpuset_t), &cpumask) != 0) { in setaffinity()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | pci.c | 751 const struct cpumask *m) in ath11k_pci_set_irq_affinity_hint()
|