/illumos-gate/usr/src/cmd/dumpadm/ |
H A D | minfree.c | 98 int pct; in minfree_compute() local 104 if (!valid_str2int(s, &pct) || pct > 100) { in minfree_compute() 115 (u_longlong_t)pct / 100ULL / 1024ULL; in minfree_compute()
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 166 uint8_t pct; member 433 lp->pct += np->pct; in merge_name_list() 435 } else if (np->pct > lp->pct) { in merge_name_list() 436 lp->pct = np->pct; in merge_name_list() 488 alloc_name_list(char *name, uint8_t pct) in alloc_name_list() argument 494 nlp->pct = pct; in alloc_name_list() 495 nlp->max_pct = pct; in alloc_name_list() 703 get_serial_no(nvlist_t *nvl, name_list_t **serial_p, uint8_t pct) in get_serial_no() argument 720 nlp = alloc_name_list(buf, pct); in get_serial_no() 726 nlp = alloc_name_list(lserial[0], pct); in get_serial_no() [all …]
|
/illumos-gate/usr/src/cmd/zonestat/zonestat/ |
H A D | zonestat.c | 706 format_pct(uint_t pct, char *str, size_t len) in format_pct() argument 711 if (pct == ZS_PCT_NONE) { in format_pct() 726 if (pct <= 999 || opt_parseable) { in format_pct() 727 high = pct / 100; in format_pct() 728 low = pct - (high * 100); in format_pct() 730 } else if (pct <= 9999) { in format_pct() 731 pct = pct / 10; in format_pct() 732 high = pct / 10; in format_pct() 733 low = pct - (high * 10); in format_pct() 736 pct = pct / 100; in format_pct() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_sync.c | 442 memp_trickle(dbmp, pct, nwrotep) in memp_trickle() argument 444 int pct, *nwrotep; 459 if (pct < 1 || pct > 100) 476 (mp->stat.st_page_clean * 100) / total >= (u_long)pct) {
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | taskq.c | 307 int pct; in taskq_create_proc() local 310 pct = MIN(nthreads, 100); in taskq_create_proc() 311 pct = MAX(pct, 0); in taskq_create_proc() 313 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create_proc()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_iter.c | 368 char *pct = strchr(comma_separated, '%'); in zfs_iter_snapspec() local 369 if (pct != NULL) { in zfs_iter_snapspec() 374 if (pct == comma_separated) in zfs_iter_snapspec() 378 *pct = '\0'; in zfs_iter_snapspec() 379 ssa.ssa_last = pct + 1; in zfs_iter_snapspec()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | taskq_impl.h | 163 #define TASKQ_THREADS_PCT(ncpus, pct) MAX(((ncpus) * (pct)) / 100, 1) argument
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | fault.c | 92 uint8_t pct = 0; in flt_verb1() local 94 (void) nvlist_lookup_uint8(nva[i], FM_FAULT_CERTAINTY, &pct); in flt_verb1() 115 pct, class ? class : "-"); in flt_verb1()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | msacct.c | 535 cpu_decay(uint32_t pct, hrtime_t nsec) in cpu_decay() argument 540 return ((pct * exp_x(delta)) >> LSHIFT); in cpu_decay() 548 cpu_grow(uint32_t pct, hrtime_t nsec) in cpu_grow() argument 550 return (LSI_ONE - cpu_decay(LSI_ONE - pct, nsec)); in cpu_grow()
|
H A D | taskq.c | 1947 uint_t pct; in taskq_create_common() local 1949 pct = nthreads; in taskq_create_common() 1951 if (pct > taskq_cpupct_max_percent) in taskq_create_common() 1952 pct = taskq_cpupct_max_percent; in taskq_create_common() 1962 tq->tq_threads_ncpus_pct = pct; in taskq_create_common() 1964 max_nthreads = TASKQ_THREADS_PCT(max_ncpus, pct); in taskq_create_common()
|
H A D | bio.c | 1122 unsigned int i, pct; in binit() local 1141 pct = BIO_BUF_PERCENT; in binit() 1143 ((pct = 100 / bufhwm_pct) < BIO_MAX_PERCENT)) { in binit() 1144 pct = BIO_BUF_PERCENT; in binit() 1154 bio_default_hwm = MIN(physmem / pct, in binit()
|
/illumos-gate/usr/src/lib/libzonestat/common/ |
H A D | libzonestat.c | 734 double dtotal, dused, pct, dscale; in zs_ts_used_scale() local 746 pct = dused / dtotal * dscale; in zs_ts_used_scale() 747 if (cap_at_100 && pct > dscale) in zs_ts_used_scale() 748 pct = dscale; in zs_ts_used_scale() 750 return ((uint_t)pct); in zs_ts_used_scale() 844 double dtotal, dused, pct, dscale; in zs_uint64_used_scale() local 854 pct = dused / dtotal * dscale; in zs_uint64_used_scale() 855 if (cap_at_100 && pct > dscale) in zs_uint64_used_scale() 856 pct = dscale; in zs_uint64_used_scale() 858 return ((uint64_t)pct); in zs_uint64_used_scale() [all …]
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 2447 prgetpctcpu(uint64_t pct) in prgetpctcpu() argument 2460 pct /= nonline; in prgetpctcpu() 2461 pct >>= 16; /* convert to 16-bit scaled integer */ in prgetpctcpu() 2462 if (pct > 0x8000) /* might happen, due to rounding */ in prgetpctcpu() 2463 pct = 0x8000; in prgetpctcpu() 2464 return ((ushort_t)pct); in prgetpctcpu() 2576 uint64_t pct = 0; in prgetpsinfo() local 2581 pct += cpu_update_pct(t, cur_time); in prgetpsinfo() 2584 psp->pr_pctcpu = prgetpctcpu(pct); in prgetpsinfo() 3239 uint64_t pct = 0; in prgetpsinfo32() local [all …]
|
H A D | prioctl.c | 1453 uint64_t pct; in oprgetpsinfo32() local 1592 pct = 0; in oprgetpsinfo32() 1597 pct += cpu_update_pct(t, cur_time); in oprgetpsinfo32() 1602 psp->pr_pctcpu = prgetpctcpu(pct); in oprgetpsinfo32() 3240 uint64_t pct; in oprgetpsinfo() local 3379 pct = 0; in oprgetpsinfo() 3384 pct += cpu_update_pct(t, cur_time); in oprgetpsinfo() 3389 psp->pr_pctcpu = prgetpctcpu(pct); in oprgetpsinfo()
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | problem.c | 961 uint8_t pct = 0; in sunFmFaultEventTable_return() local 965 &pct); in sunFmFaultEventTable_return() 966 pl = (ulong_t)pct; in sunFmFaultEventTable_return()
|
/illumos-gate/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpu_acpi.c | 186 cpu_acpi_pct_t *pct; in cpu_acpi_cache_pct() local 190 pct = &CPU_ACPI_PCT(handle)[0]; in cpu_acpi_cache_pct() 191 if ((ret = cpu_acpi_cache_ctrl_regs(handle, PCT_OBJ, pct)) == 0) in cpu_acpi_cache_pct()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 533 int pct; in kmem_slabs() local 618 pct = 0; in kmem_slabs() 622 pct = (int)(n / c.cache_buftotal); in kmem_slabs() 623 tenths_pct = pct - ((pct / 100) * 100); in kmem_slabs() 626 pct += 100; in kmem_slabs() 631 pct /= 100; in kmem_slabs() 634 stats.ks_unused_buffers, pct, tenths_pct); in kmem_slabs()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | bound.c | 437 fuzzify(uint32_t sec, double pct) in fuzzify() argument 439 return (sec * (pct + (drand48() - 0.5) / 25.0)); in fuzzify()
|
/illumos-gate/usr/src/cmd/ps/ |
H A D | ucbps.c | 833 prtpct(ushort_t pct) in prtpct() argument 835 uint_t value = pct; /* need 32 bits to compute with */ in prtpct()
|
H A D | ps.c | 1602 prtpct(ushort_t pct, int width) in prtpct() argument 1604 uint_t value = pct; /* need 32 bits to compute with */ in prtpct()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/ |
H A D | libc.c | 1209 pct_value(ushort_t pct) in pct_value() argument 1211 uint_t value = pct; in pct_value()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 3246 char comp[MDB_NICENUM_BUFLEN], pct[MDB_NICENUM_BUFLEN]; in zfs_blkstats() local 3294 (void) mdb_snprintfrac(pct, MDB_NICENUM_BUFLEN, in zfs_blkstats() 3299 csize, lsize, psize, asize, avg, comp, pct); in zfs_blkstats()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zil.c | 2494 int pct = MAX(zfs_commit_timeout_pct, 1); in zil_commit_waiter() local 2495 hrtime_t sleep = (zilog->zl_last_lwb_latency * pct) / 100; in zil_commit_waiter()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | magic.tab | 1616 |name match *.pct PICT Image image/pict
|