Home
last modified time | relevance | path

Searched refs:pct (Results 1 – 25 of 26) sorted by relevance

12

/titanic_50/usr/src/cmd/dumpadm/
H A Dminfree.c100 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 Dfaulty.c165 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 Denv.c533 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 Dzonestat.c706 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 Dtaskq.c236 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 Dmp_sync.c442 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 Dtaskq.c275 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 Dlibzfs_iter.c364 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 Dtaskq_impl.h160 #define TASKQ_THREADS_PCT(ncpus, pct) MAX(((ncpus) * (pct)) / 100, 1) argument
/titanic_50/usr/src/cmd/avs/sdbc/
H A Dsd_trace.c539 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 Dfault.c92 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 Dmsacct.c526 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 Dtaskq.c1900 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 Dbio.c1122 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 Dsndr_stats.c743 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 Dii_stats.c446 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 Dprsubr.c2193 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 Dprioctl.c1500 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 Dlibzonestat.c734 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 Dproblem.c963 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 Dcpu_acpi.c186 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 Dkmem.c532 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 Dbound.c434 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 Ducbps.c831 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 Dzfs.c2441 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()

12