/titanic_50/usr/src/cmd/dumpadm/ |
H A D | minfree.c | 100 int pct; in minfree_compute() local 106 if (!valid_str2int(s, &pct) || pct > 100) { in minfree_compute() 117 (u_longlong_t)pct / 100ULL / 1024ULL; in minfree_compute()
|
/titanic_50/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 165 uint8_t pct; member 432 lp->pct += np->pct; in merge_name_list() 434 } else if (np->pct > lp->pct) { in merge_name_list() 435 lp->pct = np->pct; in merge_name_list() 487 alloc_name_list(char *name, uint8_t pct) in alloc_name_list() argument 493 nlp->pct = pct; in alloc_name_list() 494 nlp->max_pct = pct; in alloc_name_list() 702 get_serial_no(nvlist_t *nvl, name_list_t **serial_p, uint8_t pct) in get_serial_no() argument 719 nlp = alloc_name_list(buf, pct); in get_serial_no() 725 nlp = alloc_name_list(lserial[0], pct); in get_serial_no() [all …]
|
/titanic_50/usr/src/lib/efcode/engine/ |
H A D | env.c | 533 char *fmptr, *pct; in fmt_str() local 539 if ((pct = strchr(fmt, '%')) != 0) { in fmt_str() 543 l = strlen(pct++); in fmt_str() 544 vferr = validfmt(pct, &cfstr); in fmt_str() 556 bytes = pct - fmt; in fmt_str() 572 bytes = pct - fmt + fw; in fmt_str() 578 bytes = pct - fmt - fw; in fmt_str() 582 bytes = pct - fmt - fw - 2; in fmt_str() 592 fmt_str(env, pct+abs(fw), (tbuf + strlen(tbuf)), in fmt_str()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/libzpool/common/ |
H A D | taskq.c | 236 int pct; in taskq_create() local 239 pct = MIN(nthreads, 100); in taskq_create() 240 pct = MAX(pct, 0); in taskq_create() 242 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create()
|
/titanic_50/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) {
|
/titanic_50/usr/src/lib/libfakekernel/common/ |
H A D | taskq.c | 275 int pct; in taskq_create_proc() local 278 pct = MIN(nthreads, 100); in taskq_create_proc() 279 pct = MAX(pct, 0); in taskq_create_proc() 281 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create_proc()
|
/titanic_50/usr/src/lib/libzfs/common/ |
H A D | libzfs_iter.c | 364 char *pct = strchr(comma_separated, '%'); in zfs_iter_snapspec() local 365 if (pct != NULL) { in zfs_iter_snapspec() 370 if (pct == comma_separated) in zfs_iter_snapspec() 374 *pct = '\0'; in zfs_iter_snapspec() 375 ssa.ssa_last = pct + 1; in zfs_iter_snapspec()
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | taskq_impl.h | 160 #define TASKQ_THREADS_PCT(ncpus, pct) MAX(((ncpus) * (pct)) / 100, 1) argument
|
/titanic_50/usr/src/cmd/avs/sdbc/ |
H A D | sd_trace.c | 539 float pct; in dual_stats() local 726 pct = segs ? in dual_stats() 728 stars = (int)(pct * 20.0); in dual_stats() 737 (void) mvprintw(k, 39, "%6.2f%%", pct * 100.0); in dual_stats() 740 pct = ((float)rdc_info[rdcindex].sync_pos / in dual_stats() 743 pct = 0.0; in dual_stats() 744 stars = (int)(pct * 20.0); in dual_stats() 753 (void) mvprintw(k, 70, "%6.2f%%", pct * 100.0); in dual_stats()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/os/ |
H A D | msacct.c | 526 cpu_decay(uint32_t pct, hrtime_t nsec) in cpu_decay() argument 531 return ((pct * exp_x(delta)) >> LSHIFT); in cpu_decay() 539 cpu_grow(uint32_t pct, hrtime_t nsec) in cpu_grow() argument 541 return (LSI_ONE - cpu_decay(LSI_ONE - pct, nsec)); in cpu_grow()
|
H A D | taskq.c | 1900 uint_t pct; in taskq_create_common() local 1902 pct = nthreads; in taskq_create_common() 1904 if (pct > taskq_cpupct_max_percent) in taskq_create_common() 1905 pct = taskq_cpupct_max_percent; in taskq_create_common() 1915 tq->tq_threads_ncpus_pct = pct; in taskq_create_common() 1917 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()
|
/titanic_50/usr/src/cmd/avs/dsstat/ |
H A D | sndr_stats.c | 743 float pct; in getSyncNeeded() local 751 pct = segs ? ((float)bits/(float)segs) : 0.0; in getSyncNeeded() 752 pct *= 100; in getSyncNeeded() 754 return (pct); in getSyncNeeded()
|
H A D | ii_stats.c | 446 float pct; in ii_report() local 461 pct = ((float)*chkbits / *volsize) * 100.0; in ii_report() 463 (void) sprintf(snpct, DATA_F62, pct); in ii_report()
|
/titanic_50/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 2193 prgetpctcpu(uint64_t pct) in prgetpctcpu() argument 2206 pct /= nonline; in prgetpctcpu() 2207 pct >>= 16; /* convert to 16-bit scaled integer */ in prgetpctcpu() 2208 if (pct > 0x8000) /* might happen, due to rounding */ in prgetpctcpu() 2209 pct = 0x8000; in prgetpctcpu() 2210 return ((ushort_t)pct); in prgetpctcpu() 2322 uint64_t pct = 0; in prgetpsinfo() local 2327 pct += cpu_update_pct(t, cur_time); in prgetpsinfo() 2330 psp->pr_pctcpu = prgetpctcpu(pct); in prgetpsinfo() 2454 uint64_t pct = 0; in prgetpsinfo32() local [all …]
|
H A D | prioctl.c | 1500 uint64_t pct; in oprgetpsinfo32() local 1639 pct = 0; in oprgetpsinfo32() 1644 pct += cpu_update_pct(t, cur_time); in oprgetpsinfo32() 1649 psp->pr_pctcpu = prgetpctcpu(pct); in oprgetpsinfo32() 3339 uint64_t pct; in oprgetpsinfo() local 3478 pct = 0; in oprgetpsinfo() 3483 pct += cpu_update_pct(t, cur_time); in oprgetpsinfo() 3488 psp->pr_pctcpu = prgetpctcpu(pct); in oprgetpsinfo()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | problem.c | 963 uint8_t pct = 0; in sunFmFaultEventTable_return() local 967 &pct); in sunFmFaultEventTable_return() 968 pl = (ulong_t)pct; in sunFmFaultEventTable_return()
|
/titanic_50/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()
|
/titanic_50/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 532 int pct; in kmem_slabs() local 617 pct = 0; in kmem_slabs() 621 pct = (int)(n / c.cache_buftotal); in kmem_slabs() 622 tenths_pct = pct - ((pct / 100) * 100); in kmem_slabs() 625 pct += 100; in kmem_slabs() 630 pct /= 100; in kmem_slabs() 633 stats.ks_unused_buffers, pct, tenths_pct); in kmem_slabs()
|
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | bound.c | 434 fuzzify(uint32_t sec, double pct) in fuzzify() argument 436 return (sec * (pct + (drand48() - 0.5) / 25.0)); in fuzzify()
|
/titanic_50/usr/src/cmd/ps/ |
H A D | ucbps.c | 831 prtpct(ushort_t pct) in prtpct() argument 833 uint_t value = pct; /* need 32 bits to compute with */ in prtpct()
|
/titanic_50/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 2441 char comp[NICENUM_BUFLEN], pct[NICENUM_BUFLEN]; in zfs_blkstats() local 2489 (void) snprintfrac(pct, NICENUM_BUFLEN, in zfs_blkstats() 2494 csize, lsize, psize, asize, avg, comp, pct); in zfs_blkstats()
|