/freebsd-13-stable/lib/libkvm/ |
H A D | kvm_cptime.c | 90 int i, j, maxcpu; local 126 maxcpu = kvm_getmaxcpu(kd); 127 if (maxcpu < 0) 131 for (i = 0; i < maxcpu; i++) {
|
H A D | kvm_pcpu.c | 80 static int maxcpu; variable 141 maxcpu = max; 149 maxcpu = 0; 164 if (maxcpu == 0) 168 if (cpu >= maxcpu || pcpu_data[cpu] == NULL) 194 if (maxcpu == 0) 197 return (maxcpu);
|
/freebsd-13-stable/sys/powerpc/mpc85xx/ |
H A D | platform_mpc85xx.c | 90 static int cpu, maxcpu; variable 157 for (maxcpu = 0, child = OF_child(cpus); child != 0; 158 child = OF_peer(child), maxcpu++) 161 maxcpu = 1; 308 if (cpu >= maxcpu) 589 bus_write_4(sc->sc_mem, RCPM_CTBENR, (1 << maxcpu) - 1);
|
/freebsd-13-stable/crypto/heimdal/appl/login/ |
H A D | login.c | 409 const long maxcpu = 46116860184; /* some random constant */ local 414 if(t == 0 || t > maxcpu) 423 if(t == 0 || t > maxcpu)
|
/freebsd-13-stable/sys/dev/hwpmc/ |
H A D | hwpmc_tsc.c | 330 pmc_tsc_initialize(struct pmc_mdep *md, int maxcpu) argument 338 tsc_pcpu = malloc(sizeof(struct tsc_cpu *) * maxcpu, M_PMC,
|
H A D | hwpmc_uncore.c | 419 ucf_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth) argument 786 ucp_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth) argument 819 pmc_uncore_initialize(struct pmc_mdep *md, int maxcpu) argument 833 ucp_initialize(md, maxcpu, uncore_ucp_npmc, uncore_ucp_width); 842 ucf_initialize(md, maxcpu, uncore_ucf_npmc, uncore_ucf_width); 848 uncore_pcpu = malloc(sizeof(*uncore_pcpu) * maxcpu, M_PMC,
|
H A D | hwpmc_core.c | 530 iaf_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth) argument 1036 iap_initialize(struct pmc_mdep *md, int maxcpu, int npmc, int pmcwidth, argument 1259 pmc_core_initialize(struct pmc_mdep *md, int maxcpu, int version_override) argument 1271 core_cputype, maxcpu, ipa_version); 1306 iap_initialize(md, maxcpu, core_iap_npmc, core_iap_width, flags); 1316 iaf_initialize(md, maxcpu, core_iaf_npmc, core_iaf_width); 1323 core_pcpu = malloc(sizeof(*core_pcpu) * maxcpu, M_PMC,
|
H A D | hwpmc_mod.c | 5515 unsigned int maxcpu, domain; local 5610 maxcpu = pmc_cpu_max(); 5613 pmc_pcpu = malloc(maxcpu * sizeof(struct pmc_cpu *), M_PMC, 5617 pmc_pcpu_saved = malloc(sizeof(pmc_value_t) * maxcpu * md->pmd_npmc, 5623 for (cpu = 0; error == 0 && cpu < maxcpu; cpu++) { 5641 for (cpu = 0; cpu < maxcpu; cpu++) { 5768 unsigned int maxcpu; local 5856 maxcpu = pmc_cpu_max(); 5861 for (cpu = 0; cpu < maxcpu; cpu++) { 5884 for (cpu = 0; cpu < maxcpu; cp [all...] |
/freebsd-13-stable/usr.bin/vmstat/ |
H A D | vmstat.c | 613 int empty, i, j, maxcpu, maxid, ncpus; local 619 size = sizeof(maxcpu); 620 mysysctl("kern.smp.maxcpus", &maxcpu, &size); 621 if (size != sizeof(maxcpu)) 623 size = sizeof(long) * maxcpu * CPUSTATES;
|
/freebsd-13-stable/usr.bin/top/ |
H A D | machine.c | 204 static int maxcpu; variable 351 GETSYSCTL("kern.smp.maxcpus", maxcpu); 352 times = calloc(maxcpu * CPUSTATES, sizeof(long)); 355 size = sizeof(long) * maxcpu * CPUSTATES;
|