Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/acct/
H A Dacctcms.c303 double ratio; in dofile() local
365 pcmt.pcm_cpu[PRIME] = dtmp * ratio; in dofile()
370 pcmt.pcm_real[PRIME] = dtmp * ratio; in dofile()
375 pcmt.pcm_kcore[PRIME] = dtmp * ratio; in dofile()
379 pcmt.pcm_io[PRIME] = (double)ltmp * ratio; in dofile()
383 pcmt.pcm_rw[PRIME] = (double)ltmp * ratio; in dofile()
413 pcmt.pcm_cpu[PRIME] = dtmp * ratio; in dofile()
418 pcmt.pcm_real[PRIME] = dtmp * ratio; in dofile()
423 pcmt.pcm_kcore[PRIME] = dtmp * ratio; in dofile()
427 pcmt.pcm_io[PRIME] = (double)ltmp * ratio; in dofile()
[all …]
/illumos-gate/usr/src/cmd/powertop/common/
H A Dturbo.c200 double ratio; in pt_turbo_stat_collect() local
220 ratio = 1.0; in pt_turbo_stat_collect()
222 ratio = (double)delta_acnt / (double)delta_mcnt; in pt_turbo_stat_collect()
223 g_turbo_ratio += ratio; in pt_turbo_stat_collect()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/
H A Dpppstats.c207 creq.stats.c.ratio = 0.0;
209 creq.stats.c.ratio = 256.0 * creq.stats.c.in_count /
217 creq.stats.d.ratio = 0.0;
219 creq.stats.d.ratio = 256.0 * creq.stats.d.in_count /
375 ccs.d.ratio / 256.0); in intpr()
381 ccs.c.ratio / 256.0); in intpr()
388 ccs.d.ratio / 256.0); in intpr()
394 ccs.c.ratio / 256.0); in intpr()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c96 long ratio; in sctp_listener_conf_add() local
107 if (ddi_strtol(colon + 1, NULL, 10, &ratio) != 0 || ratio <= 0) in sctp_listener_conf_add()
115 sl->sl_ratio = ratio; in sctp_listener_conf_add()
128 new_sl->sl_ratio = ratio; in sctp_listener_conf_add()
H A Dsctp_misc.c116 uint32_t ratio = 0; in sctp_find_listener_conf() local
122 ratio = sl->sl_ratio; in sctp_find_listener_conf()
127 return (ratio); in sctp_find_listener_conf()
H A Dsctp_bind.c177 uint32_t ratio; in sctp_listen() local
179 ratio = sctp_find_listener_conf(sctps, in sctp_listen()
181 if (ratio != 0) { in sctp_listen()
197 slc->slc_max = maxusers / ratio * mem_ratio; in sctp_listen()
200 slc->slc_max = maxusers / ratio / mem_ratio; in sctp_listen()
/illumos-gate/usr/src/uts/i86pc/io/vmm/intel/
H A Dvmx_msr.c269 uint64_t bus_freq, ratio; in vmx_msr_init() local
297 ratio = (tsc_freq / bus_freq) & 0xff; in vmx_msr_init()
310 platform_info = (ratio << 8) | (ratio << 40); in vmx_msr_init()
323 turbo_ratio_limit = (turbo_ratio_limit << 8) | ratio; in vmx_msr_init()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c96 u_int ratio; /* recent compression ratio */ member
185 db->ratio = 0;
232 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) {
236 db->ratio = new_ratio;
259 stats->ratio = db->in_count;
261 if (stats->ratio <= 0x7fffff)
262 stats->ratio <<= 8;
266 stats->ratio /= out;
H A Ddeflate.c117 stats->ratio = stats->unc_bytes;
119 if (stats->ratio <= 0x7ffffff)
120 stats->ratio <<= 8;
124 stats->ratio /= out;
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_mem.c121 gmem_serd_record(fmd_hdl_t *hdl, const char *serdbaser, uint32_t ratio, in gmem_serd_record() argument
125 if (ratio == 0) in gmem_serd_record()
127 for (i = 0; i < ratio; i++) { in gmem_serd_record()
H A Dgmem_memerr.c281 double ratio; in check_bad_rw_retired_pages() local
294 ratio = lret * GMEM_MQ_RATIO; in check_bad_rw_retired_pages()
296 if (sret > ratio) { in check_bad_rw_retired_pages()
298 sret, lret, ratio); in check_bad_rw_retired_pages()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c122 long ratio; in tcp_listener_conf_add() local
133 if (ddi_strtol(colon + 1, NULL, 10, &ratio) != 0 || ratio <= 0) in tcp_listener_conf_add()
141 tl->tl_ratio = ratio; in tcp_listener_conf_add()
154 new_tl->tl_ratio = ratio; in tcp_listener_conf_add()
H A Dtcp_misc.c620 uint32_t ratio = 0; in tcp_find_listener_conf() local
626 ratio = tl->tl_ratio; in tcp_find_listener_conf()
631 return (ratio); in tcp_find_listener_conf()
H A Dtcp.c4470 uint32_t ratio; in tcp_do_listen() local
4472 ratio = tcp_find_listener_conf(tcps, in tcp_do_listen()
4474 if (ratio != 0) { in tcp_do_listen()
4491 tlc->tlc_max = maxusers / ratio * in tcp_do_listen()
4495 tlc->tlc_max = maxusers / ratio / in tcp_do_listen()
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Daudiotest.c230 float ratio; in testdsp() local
335 ratio = ((float)total_bytes / (float)sample_rate) * 100.0; in testdsp()
337 (float)sample_rate * ratio / 100.0, ratio - 100.0); in testdsp()
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c112 uint_t ratio; /* recent compression ratio */ member
223 db->ratio = 0; in bsd_clear()
277 if (new_ratio < db->ratio || in bsd_check()
283 db->ratio = new_ratio; in bsd_check()
307 stats->ratio = db->in_count; in bsd_comp_stats()
311 if (stats->ratio <= 0x7fffff) { in bsd_comp_stats()
312 stats->ratio <<= 8; in bsd_comp_stats()
318 stats->ratio /= out; in bsd_comp_stats()
H A Ddeflate.c628 stats->ratio = stats->unc_bytes; in z_comp_stats()
631 if (stats->ratio <= 0x7ffffff) { in z_comp_stats()
632 stats->ratio <<= 8; in z_comp_stats()
638 stats->ratio /= out; in z_comp_stats()
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_memerr_arch.c847 int i, ratio, type, fault_cpu, max_rpt; in cmd_gen_datapath_fault() local
898 ratio = (fault_list[i]->count * 100) / (cmd.cmd_nupos * 2); in cmd_gen_datapath_fault()
908 ratio, asru, fru, asru); in cmd_gen_datapath_fault()
915 ratio, fru, fru, fru); in cmd_gen_datapath_fault()
/illumos-gate/usr/src/cmd/compress/
H A Dcompress.c187 static long int ratio = 0; variable
1001 ratio = 0; in compress()
1762 if (rat > ratio) { in cl_block()
1763 ratio = rat; in cl_block()
1765 ratio = 0; in cl_block()
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_memerr.c121 double ratio; in check_bad_rw_retired_pages() local
144 ratio = lret * CMD_PAGE_RATIO; in check_bad_rw_retired_pages()
146 if (sret > ratio) { in check_bad_rw_retired_pages()
148 sret, lret, ratio); in check_bad_rw_retired_pages()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c868 double ratio; in reconfig() local
870 ratio = (double)abs((int) in reconfig()
873 if (ratio <= SAMPLE_RATE_THRESHOLD) { in reconfig()
/illumos-gate/usr/src/uts/common/net/
H A Dppp_defs.h243 u_int32_t ratio; /* recent compression ratio << 8 */ member
/illumos-gate/usr/src/boot/sys/boot/forth/
H A Dbrand-illumos.4th38 \ and 0, 7 for lower right to preserve aspect ratio
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dlibtest.shlib792 typeset -i ratio=0
793 ratio=$(prtvtoc /dev/rdsk/${disk}s2 | \
797 if ((ratio == 0)); then
804 ((endcyl = (endcyl + 1) / ratio))
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdc.c8256 uint32_t ratio, n; in vdc_update_vio_bsize() local
8267 ratio = blk_size / DEV_BSIZE; in vdc_update_vio_bsize()
8269 for (n = ratio; n > 1; n >>= 1) { in vdc_update_vio_bsize()
8278 vdc->vio_bmask = ratio - 1; in vdc_update_vio_bsize()

12