Lines Matching refs:total

430 			 * For total utilization, add pset time to zone that
731 zs_ts_used_scale(timestruc_t *total, timestruc_t *used, uint64_t scale,
737 if (total->tv_sec == 0 && total->tv_nsec == 0)
740 dtotal = (double)total->tv_sec +
741 ((double)total->tv_nsec / (double)NANOSEC);
754 * Convert total and used time into percent used.
757 zs_ts_used_pct(timestruc_t *total, timestruc_t *used, boolean_t cap_at_100)
759 return ((uint_t)zs_ts_used_scale(total, used, ZSD_PCT_INT, cap_at_100));
763 * Convert total and used time, plus number of cpus, into number of cpus
767 zs_ts_used_cpus(timestruc_t *total, timestruc_t *used, uint_t ncpus,
770 return (zs_ts_used_scale(total, used, ncpus * ZSD_ONE_CPU, cap_at_100));
841 zs_uint64_used_scale(uint64_t total, uint64_t used, uint64_t scale,
847 if (total == 0)
850 dtotal = (double)total;
862 * Convert a total and used value into a percent used.
865 zs_uint64_used_pct(uint64_t total, uint64_t used, boolean_t cap_at_100)
867 return ((uint_t)zs_uint64_used_scale(total, used, ZSD_PCT_INT,
1162 * Return the fraction of total shares for a pset allocated to the zone.
1198 double total;
1220 total = (double)time.tv_sec +
1222 total = total * (sharefactor / ZSD_PCT_DOUBLE);
1226 pct = used / total * ZSD_PCT_DOUBLE;
2374 * Add cpus. The total report will divide this by the
2762 * Get total available resource on system
3029 * Get used resource as a percent of total resource.
3346 * Get total time available for a resource
3372 * Get total time used for a resource
3413 * Get total resource time used for a particular zone
3918 * Get total time used for pset