Home
last modified time | relevance | path

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

12

/freebsd/tests/sys/kern/
H A Dsched_affinity.c17 static uint32_t maxcpus; variable
47 for (i = 1; i < maxcpus; i++) { in support_getmaxcpuid()
83 cpusetsize = CPU_ALLOC_SIZE(maxcpus + 1); in ATF_TC_BODY()
84 set = CPU_ALLOC(maxcpus + 1); in ATF_TC_BODY()
102 ATF_REQUIRE(maxcpuid < maxcpus); in ATF_TC_BODY()
105 cpusetsize = CPU_ALLOC_SIZE(maxcpus + 1); in ATF_TC_BODY()
106 set = CPU_ALLOC(maxcpus + 1); in ATF_TC_BODY()
153 cpusetsize = CPU_ALLOC_SIZE(maxcpus * 2); in ATF_TC_BODY()
154 set = CPU_ALLOC(maxcpus * 2); in ATF_TC_BODY()
228 cpusetsize = CPU_ALLOC_SIZE(maxcpus * 2); in ATF_TC_BODY()
[all …]
/freebsd/lib/libmemstat/
H A Dmemstat_malloc.c83 int count, hint_dontsearch, i, j, maxcpus; in memstat_sysctl_malloc() local
97 size = sizeof(maxcpus); in memstat_sysctl_malloc()
98 if (sysctlbyname("kern.smp.maxcpus", &maxcpus, &size, NULL, 0) < 0) { in memstat_sysctl_malloc()
105 if (size != sizeof(maxcpus)) { in memstat_sysctl_malloc()
129 maxcpus); in memstat_sysctl_malloc()
179 maxcpus = mtshp->mtsh_maxcpus; in memstat_sysctl_malloc()
192 mthp->mth_name, maxcpus); in memstat_sysctl_malloc()
203 _memstat_mt_reset_stats(mtp, maxcpus); in memstat_sysctl_malloc()
205 for (j = 0; j < maxcpus; j++) { in memstat_sysctl_malloc()
H A Dmemstat.c151 const char *name, int maxcpus) in _memstat_mt_allocate() argument
163 maxcpus); in _memstat_mt_allocate()
165 maxcpus); in _memstat_mt_allocate()
179 _memstat_mt_reset_stats(struct memory_type *mtp, int maxcpus) in _memstat_mt_reset_stats() argument
201 for (i = 0; i < maxcpus; i++) { in _memstat_mt_reset_stats()
H A Dmemstat_internal.h124 int allocator, const char *name, int maxcpus);
126 int maxcpus);
H A Dmemstat_uma.c83 int count, hint_dontsearch, i, j, maxcpus, maxid; in memstat_sysctl_uma() local
174 maxcpus = ushp->ush_maxcpus; in memstat_sysctl_uma()
206 for (j = 0; j < maxcpus; j++) { in memstat_sysctl_uma()
/freebsd/sys/riscv/vmm/
H A Dvmm.c134 uint16_t maxcpus; /* (o) max pluggable cpus */ member
185 KASSERT(vcpu_id >= 0 && vcpu_id < vm->maxcpus, in vcpu_alloc()
300 for (i = 0; i < vm->maxcpus; i++) { in vm_init()
390 vm->maxcpus = vm_maxcpu; in vm_create()
392 vm->vcpu = malloc(sizeof(*vm->vcpu) * vm->maxcpus, M_VMM, in vm_create()
403 uint16_t *threads, uint16_t *maxcpus) in vm_get_topology() argument
408 *maxcpus = vm->maxcpus; in vm_get_topology()
414 return (vm->maxcpus); in vm_get_maxcpus()
419 uint16_t threads, uint16_t maxcpus) in vm_set_topology() argument
422 if ((sockets * cores * threads) > vm->maxcpus) in vm_set_topology()
[all …]
H A Dvmm_fence.c146 uint16_t maxcpus; in vmm_fence_add() local
154 maxcpus = vm_get_maxcpus(vm); in vmm_fence_add()
155 for (i = 0; i < maxcpus; i++) { in vmm_fence_add()
H A Dvmm_sbi.c51 uint16_t maxcpus; in vmm_sbi_handle_rfnc() local
83 maxcpus = vm_get_maxcpus(hyp->vm); in vmm_sbi_handle_rfnc()
84 for (i = 0; i < maxcpus; i++) { in vmm_sbi_handle_rfnc()
H A Dvmm_riscv.c541 uint16_t maxcpus; in riscv_send_ipi() local
546 maxcpus = vm_get_maxcpus(hyp->vm); in riscv_send_ipi()
547 for (i = 0; i < maxcpus; i++) { in riscv_send_ipi()
730 int i, maxcpus; in riscv_pcpu_vmcleanup() local
733 maxcpus = vm_get_maxcpus(hyp->vm); in riscv_pcpu_vmcleanup()
734 for (i = 0; i < maxcpus; i++) { in riscv_pcpu_vmcleanup()
/freebsd/sys/amd64/vmm/
H A Dx86.c85 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local
141 &maxcpus); in x86_emulate_cpuid()
239 &maxcpus); in x86_emulate_cpuid()
287 &maxcpus); in x86_emulate_cpuid()
387 &maxcpus); in x86_emulate_cpuid()
399 &maxcpus); in x86_emulate_cpuid()
489 &maxcpus); in x86_emulate_cpuid()
H A Dvmm.c174 uint16_t maxcpus; /* (o) max pluggable cpus */ member
350 KASSERT(vcpu_id >= 0 && vcpu_id < vm->maxcpus, in vcpu_alloc()
520 for (int i = 0; i < vm->maxcpus; i++) { in vm_init()
616 vm->maxcpus = vm_maxcpu; in vm_create()
626 uint16_t *threads, uint16_t *maxcpus) in vm_get_topology() argument
631 *maxcpus = vm->maxcpus; in vm_get_topology()
637 return (vm->maxcpus); in vm_get_maxcpus()
642 uint16_t threads, uint16_t maxcpus __unused) in vm_set_topology()
645 if ((sockets * cores * threads) > vm->maxcpus) in vm_set_topology()
676 for (int i = 0; i < vm->maxcpus; i++) { in vm_cleanup()
[all …]
/freebsd/sys/arm64/vmm/
H A Dvmm.c140 uint16_t maxcpus; /* (o) max pluggable cpus */ member
284 KASSERT(vcpu_id >= 0 && vcpu_id < vm->maxcpus, in vcpu_alloc()
405 for (i = 0; i < vm->maxcpus; i++) { in vm_init()
495 vm->maxcpus = vm_maxcpu; in vm_create()
497 vm->vcpu = malloc(sizeof(*vm->vcpu) * vm->maxcpus, M_VMM, in vm_create()
508 uint16_t *threads, uint16_t *maxcpus) in vm_get_topology() argument
513 *maxcpus = vm->maxcpus; in vm_get_topology()
519 return (vm->maxcpus); in vm_get_maxcpus()
524 uint16_t threads, uint16_t maxcpus) in vm_set_topology() argument
527 if ((sockets * cores * threads) > vm->maxcpus) in vm_set_topology()
[all …]
H A Dvmm_arm64.c1184 int i, maxcpus; in arm_pcpu_vmcleanup() local
1187 maxcpus = vm_get_maxcpus(hyp->vm); in arm_pcpu_vmcleanup()
1188 for (i = 0; i < maxcpus; i++) { in arm_pcpu_vmcleanup()
/freebsd/sys/dev/vmm/
H A Dvmm_dev.c112 uint16_t i, j, maxcpus; in vcpu_lock_all() local
116 maxcpus = vm_get_maxcpus(sc->vm); in vcpu_lock_all()
117 for (i = 0; i < maxcpus; i++) { in vcpu_lock_all()
143 uint16_t i, maxcpus; in vcpu_unlock_all() local
145 maxcpus = vm_get_maxcpus(sc->vm); in vcpu_unlock_all()
146 for (i = 0; i < maxcpus; i++) { in vcpu_unlock_all()
642 topology->cores, topology->threads, topology->maxcpus); in vmmdev_ioctl()
650 &topology->threads, &topology->maxcpus); in vmmdev_ioctl()
/freebsd/usr.sbin/bhyvectl/
H A Dbhyvectl.c484 uint16_t sockets, cores, threads, maxcpus; in main() local
486 vm_get_topology(ctx, &sockets, &cores, &threads, &maxcpus); in main()
488 "maxcpus=%hu\n", sockets, cores, threads, maxcpus); in main()
/freebsd/sys/riscv/include/
H A Dvmm.h136 uint16_t *threads, uint16_t *maxcpus);
138 uint16_t threads, uint16_t maxcpus);
H A Dvmm_dev.h153 uint16_t maxcpus; member
/freebsd/sys/arm64/include/
H A Dvmm.h155 uint16_t *threads, uint16_t *maxcpus);
157 uint16_t threads, uint16_t maxcpus);
H A Dvmm_dev.h159 uint16_t maxcpus; member
/freebsd/lib/libvmmapi/
H A Dvmmapi.c1168 uint16_t sockets, uint16_t cores, uint16_t threads, uint16_t maxcpus) in vm_set_topology() argument
1176 topology.maxcpus = maxcpus; in vm_set_topology()
1182 uint16_t *sockets, uint16_t *cores, uint16_t *threads, uint16_t *maxcpus) in vm_get_topology() argument
1193 *maxcpus = topology.maxcpus; in vm_get_topology()
H A Dvmmapi.h274 uint16_t threads, uint16_t maxcpus);
276 uint16_t *threads, uint16_t *maxcpus);
/freebsd/usr.sbin/bhyve/
H A Dbhyverun.c501 uint16_t sockets, cores, threads, maxcpus; in num_vcpus_allowed() local
512 error = vm_get_topology(ctx, &sockets, &cores, &threads, &maxcpus); in num_vcpus_allowed()
514 return (maxcpus); in num_vcpus_allowed()
/freebsd/sys/amd64/include/
H A Dvmm.h238 uint16_t *threads, uint16_t *maxcpus);
240 uint16_t threads, uint16_t maxcpus);
H A Dvmm_dev.h237 uint16_t maxcpus; member
/freebsd/sys/net/
H A Drss_config.c117 SYSCTL_INT(_net_inet_rss, OID_AUTO, maxcpus, CTLFLAG_RD,

12