Home
last modified time | relevance | path

Searched full:ratio (Results 1 – 25 of 725) sorted by relevance

12345678910>>...29

/linux/tools/perf/tests/
H A Dparse-metric.c119 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
121 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
133 double ratio; in test_ipc() local
141 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
143 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
144 ratio == 1.5); in test_ipc()
150 double ratio; in test_frontend() local
160 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
162 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
163 ratio == 0.45); in test_frontend()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb_scl.c530 static const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_3tap_16p() argument
532 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_3tap_16p()
534 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_3tap_16p()
536 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_3tap_16p()
542 static const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_4tap_16p() argument
544 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_4tap_16p()
546 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_4tap_16p()
548 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_4tap_16p()
554 static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_5tap_16p() argument
556 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_5tap_16p()
[all …]
/linux/tools/perf/Documentation/
H A Dintel-acr.txt34 ratio-to-prev Event Term
36 To simplify this, an event term "ratio-to-prev" is provided which is used
39 ratio. Note: Both events compared must belong to the same PMU.
44 cpu_atom/cycles,period=100000,ratio-to-prev=0.5/} -- true
46 ratio-to-prev is the ratio of the event using the term relative
48 for a 1:0.5 or 2:1 ratio.
53 cpu_atom/instructions,period=200000,ratio-to-prev=2.0/} -- true
/linux/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh148 # Run with default of ratio=2 for Kselftest run
149 ratio=2
165 ratio=$OPTARG
166 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
181 echo "Test scope: $ratio% hotplug memory"
200 # Offline $ratio percent of hot-pluggable memory
203 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc`
204 echo -e "\t offline $ratio% hot-pluggable memory in online state"
267 # Offline $ratio percent of hot-pluggable memory
271 if [ $((RANDOM % 100)) -lt $ratio ]; then
[all …]
/linux/drivers/media/platform/ti/omap3isp/
H A Dispresizer.c52 * Constants for ratio calculation
304 * @ratio: Structure for ratio parameters.
309 const struct resizer_ratio *ratio) in resizer_set_ratio() argument
317 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio()
319 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) in resizer_set_ratio()
324 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio()
330 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio()
682 * @ratio : return calculated ratios
686 * has a fixed number of phases that depend on the resizing ratio. As the ratio
690 * The input/output/ratio relationship is given by the OMAP34xx TRM:
[all …]
/linux/Documentation/admin-guide/thermal/
H A Dintel_powerclamp.rst74 ratio (based on power reduction), and the error is the difference
75 between the actual package level C-state residency ratio and the target idle
76 ratio.
82 clamping actions of controlled duty ratio and duration. Each per-CPU
129 instantly as given input (target idle ratio). After injection,
152 a) determine the effective range of idle injection ratio
153 b) determine the amount of compensation needed at each target ratio
155 Compensation to each target ratio consists of two parts:
165 additional idle ratio can be added to quiet interrupts, by
215 we have a simple algorithm to double the injection ratio. A possible
[all …]
/linux/tools/perf/tests/shell/
H A Drecord.sh392 echo "ratio-to-prev test"
393 if ! perf record -o /dev/null -e "{instructions, cycles/period=100000,ratio-to-prev=0.5/}" \
396 echo "ratio-to-prev [Skipped not supported]"
399 if ! perf record -o /dev/null -e "instructions, cycles/period=100000,ratio-to-prev=0.5/" \
400 true |& grep -q 'Invalid use of ratio-to-prev term without preceding element in group'
402 echo "ratio-to-prev test [Failed elements must be in same group]"
406 if ! perf record -o /dev/null -e "{instructions,dummy,cycles/period=100000,ratio-to-prev=0.5/}" \
409 echo "ratio-to-prev test [Failed elements must have same PMU]"
413 if ! perf record -o /dev/null -e "{instructions,cycles/ratio-to-prev=0.5/}" \
414 true |& grep -q 'Event period term or count (-c) must be set when using ratio-to-prev term.'
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dsch_ets_tests.sh54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l)
56 test $(echo "$ratio > 95.0" | bc -l) -eq 1
59 log_info "Expected ratio >95% Measured ratio $ratio"
61 test $(echo "$ratio < 5" | bc -l) -eq 1
64 log_info "Expected ratio <5% Measured ratio $ratio"
/linux/drivers/media/dvb-frontends/
H A Dves1x93.c165 u32 ratio; in ves1x93_set_symbolrate() local
184 ratio = tmp / FIN; in ves1x93_set_symbolrate()
187 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
190 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
194 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate()
195 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate()
196 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate()
197 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate()
198 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate()
199 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]
H A Dtda8083.c124 u32 ratio; in tda8083_set_symbolrate() local
140 ratio = tmp / srate; in tda8083_set_symbolrate()
143 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
146 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
148 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); in tda8083_set_symbolrate()
151 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); in tda8083_set_symbolrate()
152 tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); in tda8083_set_symbolrate()
153 tda8083_writereg (state, 0x04, (ratio ) & 0xff); in tda8083_set_symbolrate()
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/
H A Dmetrics.json12 …"BriefDescription": "This metric measures the ratio of branches mispredicted to the total number o…
47 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o…
82 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o…
89 …"BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the t…
103 …"BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the tot…
117 …"BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed t…
131 …"BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to …
145 …"BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total …
159 …"BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the …
173 …"BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the c…
[all …]
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/
H A Dmetrics.json19 …"BriefDescription": "This metric measures the ratio of branches mispredicted to the total number o…
54 …"BriefDescription": "This metric measures the ratio of data TLB Walks to the total number of data …
93 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o…
100 …"BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the t…
114 …"BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the tot…
128 …"BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed t…
142 …"BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to …
156 …"BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total …
170 …"BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the …
184 …"BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the c…
[all …]
/linux/drivers/clk/
H A Dclk-cs2000-cp.c202 u64 ratio; in cs2000_rate_to_ratio() local
206 * ratio = rate_out / rate_in * 2^multiplier in cs2000_rate_to_ratio()
211 ratio = (u64)rate_out << multiplier; in cs2000_rate_to_ratio()
212 do_div(ratio, rate_in); in cs2000_rate_to_ratio()
214 return ratio; in cs2000_rate_to_ratio()
217 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in, bool lf_ratio) in cs2000_ratio_to_rate() argument
223 * ratio = rate_out / rate_in * 2^multiplier in cs2000_ratio_to_rate()
229 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
301 u32 ratio; in cs2000_recalc_rate() local
303 ratio = cs2000_ratio_get(priv, ch); in cs2000_recalc_rate()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-opal-psr4 Description: Power-Shift-Ratio directory for Powernv P9 servers
6 Power-Shift-Ratio allows to provide hints the firmware
16 Power-Shift-Ratio between CPU and GPU for a given chip
17 with chip-id X. This file gives the ratio (0-100)
/linux/tools/perf/util/
H A Dstat-shadow.c199 double ratio = 0; in print_ratio() local
205 ratio = numerator / denominator * 100.0; in print_ratio()
206 thresh = get_ratio_thresh(thresh_ratios, ratio); in print_ratio()
210 out->print_metric(config, out->ctx, thresh, fmt, unit, ratio); in print_ratio()
346 double ratio = cycles / nsecs; in print_cycles() local
349 "GHz", ratio); in print_cycles()
501 double ratio, scale, threshold; in generic_metric() local
520 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
534 ratio *= scale; in generic_metric()
544 metric_bf, ratio); in generic_metric()
[all …]
/linux/Documentation/devicetree/bindings/iio/adc/
H A Dti,tsc2046.yaml56 oversampling-ratio: true
91 oversampling-ratio = <5>;
99 oversampling-ratio = <5>;
104 oversampling-ratio = <5>;
109 oversampling-ratio = <5>;
/linux/Documentation/devicetree/bindings/rng/
H A Darm-cctrng.yaml27 arm,rosc-ratio:
30 Sampling ratio values for these 4 ring oscillators. (from calibration)
41 - arm,rosc-ratio
51 arm,rosc-ratio = <5000 1000 500 0>;
/linux/arch/arm/mach-omap2/
H A Dopp2xxx.h13 * these combinations is via the 'ratio's' which the clocks operate with
14 * respect to each other. These ratio sets are for a given voltage/DPLL
15 * setting. All configurations can be described by a DPLL setting and a ratio
16 * There are 3 ratio sets for the 2430 and X ratio sets for 2420.
36 * Key dividers which make up a PRCM set. Ratio's for a PRCM are mandated.
59 /* Core fields for cm_clksel, not ratio governed */
68 /* 2430 Ratio's, 2430-Ratio Config 1 */
85 /* 2430-Ratio Config 2 */
102 /* 2430-Ratio Bootm (BYPASS) */
119 /* 2420 Ratio Equivalents */
[all …]
/linux/drivers/staging/fbtft/
H A Dfb_uc1611.c26 * LCD voltage is a combination of ratio, gain, pot and temp
28 * V_LCD = V_BIAS * ratio
30 * C_V0 and C_PM depend on ratio and gain
34 /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */
35 static unsigned int ratio = 2; variable
36 module_param(ratio, uint, 0000);
37 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)");
57 /* PC[3:2] -> V_LCD: 0, 1, 3 -> ext., int. with ratio = 5, int. standard */
83 /* Set bias ratio */ in init_display()
84 write_reg(par, 0xE8 | (ratio & 0x03)); in init_display()
/linux/drivers/video/backlight/
H A Dktd253-backlight.c20 /* Current ratio is n/32 from 1/32 to 32/32 */
34 u16 ratio; member
79 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status()
82 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
97 ktd253->ratio = 0; in ktd253_backlight_update_status()
130 ktd253->ratio = current_ratio; in ktd253_backlight_update_status()
132 dev_dbg(ktd253->dev, "new ratio set to %d/32\n", target_ratio); in ktd253_backlight_update_status()
/linux/tools/power/cpupower/utils/
H A Dcpufreq-info.c173 unsigned int ratio; in get_boost_mode_x86() local
181 dprint (" Ratio: 0x%llx - bclk: %f\n", in get_boost_mode_x86()
184 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode_x86()
185 if (ratio) in get_boost_mode_x86()
187 ratio * bclk); in get_boost_mode_x86()
189 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode_x86()
190 if (ratio) in get_boost_mode_x86()
192 ratio * bclk); in get_boost_mode_x86()
194 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode_x86()
195 if (ratio) in get_boost_mode_x86()
[all …]
/linux/sound/soc/codecs/
H A Dnau8325.c346 int i, mclk_src, ratio; in nau8325_clksrc_n2() local
348 ratio = NAU8325_MCLK_FS_RATIO_NUM; in nau8325_clksrc_n2()
352 ratio = NAU8325_MCLK_FS_RATIO_256; in nau8325_clksrc_n2()
355 ratio = NAU8325_MCLK_FS_RATIO_400; in nau8325_clksrc_n2()
358 ratio = NAU8325_MCLK_FS_RATIO_500; in nau8325_clksrc_n2()
362 if (ratio != NAU8325_MCLK_FS_RATIO_NUM) in nau8325_clksrc_n2()
365 return ratio; in nau8325_clksrc_n2()
389 int i, j, mclk, mclk_max, ratio, ratio_sel, n2_max; in nau8325_clksrc_choose() local
402 ratio = nau8325_clksrc_n2(nau8325, *srate_table, nau8325->mclk, n2_sel); in nau8325_clksrc_choose()
403 if (ratio != NAU8325_MCLK_FS_RATIO_NUM) { in nau8325_clksrc_choose()
[all …]
/linux/tools/perf/pmu-events/arch/x86/grandridge/
H A Dgrr-metrics.json77 …"BriefDescription": "Ratio of number of completed page walks (for 2 megabyte page sizes) caused by…
80 …"PublicDescription": "Ratio of number of completed page walks (for 2 megabyte page sizes) caused b…
84 …"BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand…
87 …"PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by deman…
91 …"BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand…
94 …"PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by deman…
134 …"BriefDescription": "Ratio of number of completed page walks (for 2 megabyte and 4 megabyte page s…
137 …"PublicDescription": "Ratio of number of completed page walks (for 2 megabyte and 4 megabyte page …
141 …"BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by a code…
144 …"PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by a cod…
[all …]
/linux/arch/riscv/kernel/
H A Dunaligned_access_speed.c39 int ratio; in check_unaligned_access() local
107 ratio = div_u64((byte_cycles * 100), word_cycles); in check_unaligned_access()
108 …pr_info("cpu%d: Ratio of byte access time to unaligned word access is %d.%02d, unaligned accesses … in check_unaligned_access()
110 ratio / 100, in check_unaligned_access()
111 ratio % 100, in check_unaligned_access()
287 int ratio; in check_vector_unaligned_access() local
365 ratio = div_u64((byte_cycles * 100), word_cycles); in check_vector_unaligned_access()
366 …pr_info("cpu%d: Ratio of vector byte access time to vector unaligned word access is %d.%02d, unali… in check_vector_unaligned_access()
368 ratio / 100, in check_vector_unaligned_access()
369 ratio % 100, in check_vector_unaligned_access()
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-skov-cpu-revc.dtsi39 oversampling-ratio = <5>;
45 oversampling-ratio = <5>;
51 oversampling-ratio = <5>;
57 oversampling-ratio = <5>;

12345678910>>...29