/freebsd/lib/libutil/ |
H A D | quotafile.c | 262 int maxid; in quota_maxid() local 268 maxid = st.st_size / sizeof(struct dqblk32) - 1; in quota_maxid() 271 maxid = st.st_size / sizeof(struct dqblk64) - 2; in quota_maxid() 274 maxid = 0; in quota_maxid() 277 return (maxid > 0 ? maxid : 0); in quota_maxid() 521 int serrno, maxid, id, fd; in quota_convert() local 536 maxid = quota_maxid(qf); in quota_convert() 568 for (id = 0; id <= maxid; id++) { in quota_convert() 585 if (id < maxid) { in quota_convert()
|
/freebsd/lib/libmemstat/ |
H A D | memstat_uma.c | 83 int count, hint_dontsearch, i, j, maxcpus, maxid; in memstat_sysctl_uma() local 97 size = sizeof(maxid); in memstat_sysctl_uma() 98 if (sysctlbyname("kern.smp.maxid", &maxid, &size, NULL, 0) < 0) { in memstat_sysctl_uma() 105 if (size != sizeof(maxid)) { in memstat_sysctl_uma() 124 (maxid + 1)); in memstat_sysctl_uma() 187 uthp->uth_name, maxid + 1); in memstat_sysctl_uma() 198 _memstat_mt_reset_stats(mtp, maxid + 1); in memstat_sysctl_uma()
|
/freebsd/usr.bin/vmstat/ |
H A D | vmstat.c | 606 int empty, i, j, maxcpu, maxid; in getcpuinfo() local 620 maxid = (size / CPUSTATES / sizeof(long)) - 1; in getcpuinfo() 621 for (i = 0; i <= maxid; i++) { in getcpuinfo() 633 *maxidp = maxid; in getcpuinfo() 645 int maxid, rate_adj, retval; in dovmstat() local 650 maxid = 0; in dovmstat() 688 getcpuinfo(&cpumask, &maxid); in dovmstat() 689 size_cp_times = sizeof(long) * (maxid + 1) * CPUSTATES; in dovmstat() 695 printhdr(maxid, cpumask); in dovmstat() 744 printhdr(maxid, cpumask); in dovmstat() [all …]
|
/freebsd/usr.sbin/repquota/ |
H A D | repquota.c | 190 u_long id, maxid; in repquota() local 213 maxid = quota_maxid(qf); in repquota() 214 for (id = 0; id <= maxid; id++) { in repquota()
|
/freebsd/sys/dev/xen/cpu/ |
H A D | xen_acpi_cpu.c | 510 unsigned int i, maxid; in is_processor_online() local 519 maxid = op.u.pcpu_info.max_present; in is_processor_online() 520 for (i = 0; i <= maxid; i++) { in is_processor_online()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_subr.c | 513 int maxid = 0; in dt_status() 514 size_t len = sizeof(maxid); in dt_status() 515 if (sysctlbyname("kern.smp.maxid", &maxid, &len, NULL, 0) != 0) in dt_status() 518 return (cpu <= maxid ? 1 : -1); in dt_status()
|
/freebsd/usr.bin/top/ |
H A D | machine.c | 204 static int maxid; variable 367 maxid = MIN(size / CPUSTATES / sizeof(long) - 1, CPU_SETSIZE - 1); in machine_init() 369 for (i = 0; i <= maxid; i++) { in machine_init() 463 size = (maxid + 1) * CPUSTATES * sizeof(long); in get_system_info() 475 for (i = j = 0; i <= maxid; i++) { in get_system_info()
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | ctf.c | 1058 caddr_t ctfdata, int maxid) in resurrect_types() argument 1085 if (maxid == 0) { in resurrect_types() 1086 maxid = version == CTF_VERSION_2 ? in resurrect_types() 1095 if (tid > maxid) in resurrect_types()
|
/freebsd/contrib/bsnmp/gensnmptree/ |
H A D | gensnmptree.c | 1307 asn_subid_t maxid = 0; in check_sub_order() local 1312 if (!first && sub->id <= maxid) in check_sub_order() 1314 maxid = sub->id; in check_sub_order()
|
/freebsd/sys/kern/ |
H A D | kern_jail.c | 2178 int jid, maxid; in get_next_prid() local 2194 for (maxid = JAIL_MAX; maxid != 0; ) { in get_next_prid() 2200 maxid = 0; in get_next_prid() 2203 if (++jid > maxid) { in get_next_prid() 2204 if (lastprid == maxid || lastprid == 0) in get_next_prid() 2214 maxid = lastprid; in get_next_prid()
|
H A D | subr_smp.c | 84 SYSCTL_INT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD|CTLFLAG_CAPRD, &mp_maxid, 0,
|
/freebsd/tools/tools/ath/athprom/ |
H A D | athprom.c | 226 token(FILE *fd, char id[], int maxid, const char *what) in token() argument 239 if (i == maxid-1) { in token()
|