Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 68) sorted by relevance

123

/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_parse.c17 ssize_t size, scale, max; in ngx_parse_size() local
32 scale = 1024; in ngx_parse_size()
44 scale = 1; in ngx_parse_size()
52 size *= scale; in ngx_parse_size()
78 scale = 1024; in ngx_parse_offset()
97 scale = 1; in ngx_parse_offset()
105 offset *= scale; in ngx_parse_offset()
217 scale = 60; in ngx_parse_time()
226 scale = 1; in ngx_parse_time()
235 scale = 1; in ngx_parse_time()
[all …]
/f-stack/tools/libxo/libxo/
H A Dxo_humanize.h64 const char *suffix, int scale, int flags) in xo_humanize_number() argument
81 assert(scale >= 0); in xo_humanize_number()
102 #define SCALE2PREFIX(scale) (&prefixes[(scale) << 1]) in xo_humanize_number() argument
105 if (scale >= maxscale && in xo_humanize_number()
106 (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0) in xo_humanize_number()
135 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { in xo_humanize_number()
143 if (scale & HN_GETSCALE) in xo_humanize_number()
146 for (i = 0; i < scale && i < maxscale; i++) in xo_humanize_number()
/f-stack/tools/libutil/
H A Dhumanize_number.c52 const char *suffix, int scale, int flags) in humanize_number() argument
67 if (scale < 0) in humanize_number()
69 else if (scale > maxscale && in humanize_number()
70 ((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0)) in humanize_number()
114 #define SCALE2PREFIX(scale) (&prefixes[(scale) * 3]) in humanize_number() argument
136 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { in humanize_number()
154 if (scale & HN_GETSCALE) in humanize_number()
157 for (i = 0; i < scale && i < maxscale; i++) { in humanize_number()
/f-stack/dpdk/lib/librte_sched/
H A Drte_red.c37 double scale = 0.0; in __rte_red_init_tables() local
40 scale = (double)(1 << RTE_RED_SCALING); in __rte_red_init_tables()
46 rte_red_pow2_frac_inv[i] = (uint16_t) round(scale / pow(2, m / table_size)); in __rte_red_init_tables()
49 scale = 1024.0; in __rte_red_init_tables()
58 rte_red_log2_1_minus_Wq[index] = (uint16_t) round(-1.0 * scale * log2(1.0 - Wq)); in __rte_red_init_tables()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_browser_module.c261 ngx_uint_t i, version, ver, scale; in ngx_http_browser() local
306 scale = 1000000; in ngx_http_browser()
318 version += ver * scale; in ngx_http_browser()
329 scale /= 100; in ngx_http_browser()
336 version += ver * scale; in ngx_http_browser()
544 ngx_uint_t i, n, version, ver, scale; in ngx_http_modern_browser() local
597 scale = 1000000; in ngx_http_modern_browser()
609 version += ver * scale; in ngx_http_modern_browser()
611 scale /= 100; in ngx_http_modern_browser()
621 version += ver * scale; in ngx_http_modern_browser()
H A Dngx_http_autoindex_module.c435 u_char *last, scale; in ngx_http_autoindex_html() local
660 scale = 'G'; in ngx_http_autoindex_html()
667 scale = 'M'; in ngx_http_autoindex_html()
674 scale = 'K'; in ngx_http_autoindex_html()
678 scale = '\0'; in ngx_http_autoindex_html()
681 if (scale) { in ngx_http_autoindex_html()
682 b->last = ngx_sprintf(b->last, "%6i%c", size, scale); in ngx_http_autoindex_html()
/f-stack/tools/libutil/tests/
H A Dhumanize_number_test.c51 int scale; member
479 str_scale(int scale) { in str_scale() argument
482 if (scale == HN_AUTOSCALE || scale == HN_GETSCALE) in str_scale()
483 return str_flags(scale, ""); in str_scale()
487 snprintf(result, MAX_INT_STR_DIGITS, "%d", scale); in str_scale()
530 if (test_args[i].scale < 0 && ! includeNegScale) { in main()
542 test_args[i].scale, test_args[i].flags); in main()
544 scale_str = str_scale(test_args[i].scale); in main()
/f-stack/dpdk/lib/librte_ring/
H A Drte_ring_elem.h229 uint32_t idx, scale, nr_idx, nr_num, nr_size; in __rte_ring_enqueue_elems() local
232 scale = esize / sizeof(uint32_t); in __rte_ring_enqueue_elems()
233 nr_num = num * scale; in __rte_ring_enqueue_elems()
235 nr_idx = idx * scale; in __rte_ring_enqueue_elems()
236 nr_size = r->size * scale; in __rte_ring_enqueue_elems()
359 uint32_t idx, scale, nr_idx, nr_num, nr_size; in __rte_ring_dequeue_elems() local
362 scale = esize / sizeof(uint32_t); in __rte_ring_dequeue_elems()
363 nr_num = num * scale; in __rte_ring_dequeue_elems()
365 nr_idx = idx * scale; in __rte_ring_dequeue_elems()
366 nr_size = r->size * scale; in __rte_ring_dequeue_elems()
H A Drte_ring_peek_zc.h102 uint32_t idx, scale, nr_idx; in __rte_ring_get_elem_addr() local
106 scale = esize / sizeof(uint32_t); in __rte_ring_get_elem_addr()
108 nr_idx = idx * scale; in __rte_ring_get_elem_addr()
/f-stack/freebsd/tools/sound/
H A Dfeeder_rate_mkfilter.awk472 function genscale(bit, s1, s2, scale)
483 scale = "v";
485 scale = sprintf("(v) << %d", abs(s1));
487 scale = sprintf("(v) >> %d", s1);
489 scale = sprintf("(%s) * Z_SCALE_CAST(s)", scale);
492 scale = sprintf("(%s) >> %d", scale, s2);
495 bit, (bit < 10) ? "\t" : "", scale);
/f-stack/freebsd/arm64/arm64/
H A Ddisassem.c342 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; in disasm() local
351 shift = rd = rm = rn = imm = idx = option = amount = scale = 0; in disasm()
438 arm64_disasm_read_token(i_ptr, insn, "SCALE", &scale); in disasm()
495 if (scale != 0) in disasm()
/f-stack/freebsd/contrib/openzfs/cmd/arcstat/
H A Darcstat.in238 def prettynum(sz, scale, num=0):
244 if scale == -1:
251 while abs(num) > scale and index < 5:
253 num = num / scale
259 if abs(save / scale) < 10:
/f-stack/freebsd/contrib/device-tree/Bindings/sound/
H A Drt5651.txt34 - realtek,over-current-scale-factor
35 u32, micbias over-current detection scale-factor, valid values are:
H A Drt5640.txt53 - realtek,over-current-scale-factor
54 u32, micbias over-current detection scale-factor, valid values are:
/f-stack/freebsd/contrib/device-tree/src/arm64/nvidia/
H A Dtegra210-p3450-0000.dts269 regulator-ramp-delay-scale = <300>;
285 regulator-ramp-delay-scale = <300>;
301 regulator-ramp-delay-scale = <350>;
317 regulator-ramp-delay-scale = <360>;
333 regulator-ramp-delay-scale = <200>;
349 regulator-ramp-delay-scale = <200>;
363 regulator-ramp-delay-scale = <200>;
381 regulator-ramp-delay-scale = <200>;
406 regulator-ramp-delay-scale = <200>;
420 regulator-ramp-delay-scale = <200>;
/f-stack/freebsd/kern/
H A Dkern_tc.c218 uint64_t scale, x; in bintime_off() local
226 scale = th->th_scale; in bintime_off()
234 x = (scale >> 32) * delta; in bintime_off()
239 bintime_addx(bt, scale * delta); in bintime_off()
1295 uint64_t scale; in tc_windup() local
1421 scale = (uint64_t)1 << 63; in tc_windup()
1424 th->th_scale = scale * 2; in tc_windup()
1830 uint64_t scale; in pps_event() local
1840 scale = (uint64_t)1 << 63; in pps_event()
1842 scale *= 2; in pps_event()
[all …]
H A Dsubr_prof.c405 u_int scale; member
415 if (uap->scale > (1 << 16)) in sys_profil()
419 if (uap->scale == 0) { in sys_profil()
429 upp->pr_scale = uap->scale; in sys_profil()
/f-stack/freebsd/mips/atheros/
H A Duart_dev_ar933x.c109 ar933x_uart_get_baud(unsigned int clk, unsigned int scale, in ar933x_uart_get_baud() argument
115 div = (2 << 16) * (scale + 1); in ar933x_uart_get_baud()
130 unsigned int *scale, unsigned int *step) in ar933x_uart_get_scale_step() argument
137 *scale = 0; in ar933x_uart_get_scale_step()
155 *scale = tscale; in ar933x_uart_get_scale_step()
/f-stack/freebsd/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c184 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
198 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()
202 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
203 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
/f-stack/dpdk/doc/guides/prog_guide/
H A Dpower_man.rst78 So even though an application may request a scale down, the core frequency will
79 remain at the highest frequency until all Hyper-Threads on that core request a scale down.
86 * **Freq up**: Prompt the kernel to scale up the frequency of the specific lcore.
88 * **Freq down**: Prompt the kernel to scale down the frequency of the specific lcore.
90 * **Freq max**: Prompt the kernel to scale up the frequency of the specific lcore to the maximum.
92 * **Freq min**: Prompt the kernel to scale down the frequency of the specific lcore to the minimu…
/f-stack/freebsd/contrib/openzfs/cmd/dbufstat/
H A Ddbufstat.in197 def prettynum(sz, scale, num=0):
204 if raw or scale == -1:
211 while num > scale and index < 5:
213 num = num / scale
219 if (save / scale) < 10:
/f-stack/freebsd/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c227 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
241 scale = sc->cpu_def->speedo_scale; in freq_to_voltage()
244 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
245 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
/f-stack/dpdk/lib/librte_acl/
H A Dacl_run_avx512x8.h42 #define _M_GI_(name, idx, base, scale) _mm256_##name(base, idx, scale) argument
/f-stack/freebsd/contrib/device-tree/Bindings/spi/
H A Dspi_oc_tiny.txt8 - baud-width: width, in bits, of the programmable divider used to scale
/f-stack/app/redis-5.0.5/deps/jemalloc/test/include/test/
H A Dmath.h304 pt_gamma(double p, double shape, double scale, double ln_gamma_shape) { in pt_gamma() argument
305 return pt_chi2(p, shape * 2.0, ln_gamma_shape) * 0.5 * scale; in pt_gamma()

123