Home
last modified time | relevance | path

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

12345678910>>...27

/linux/tools/perf/tests/
H A Dparse-metric.c121 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric()
123 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
135 double ratio; in test_ipc()
143 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
145 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
146 ratio == 1.5); in test_ipc()
152 double ratio; in test_frontend()
162 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
164 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
165 ratio in test_frontend()
120 compute_metric(const char * name,struct value * vals,double * ratio) compute_metric() argument
134 double ratio; test_ipc() local
151 double ratio; test_frontend() local
170 double ratio; test_cache_miss_cycles() local
210 double ratio; test_dcache_l2() local
237 double ratio; test_recursion_fail() local
254 double ratio; test_memory_bandwidth() local
[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/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/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/tools/perf/tests/shell/
H A Drecord.sh449 echo "ratio-to-prev test"
450 if ! perf record -o /dev/null -e "{instructions, cycles/period=100000,ratio-to-prev=0.5/}" \
453 echo "ratio-to-prev [Skipped not supported]"
456 if ! perf record -o /dev/null -e "instructions, cycles/period=100000,ratio-to-prev=0.5/" \
457 true |& grep -q 'Invalid use of ratio-to-prev term without preceding element in group'
459 echo "ratio-to-prev test [Failed elements must be in same group]"
463 if ! perf record -o /dev/null -e "{instructions,dummy,cycles/period=100000,ratio-to-prev=0.5/}" \
466 echo "ratio-to-prev test [Failed elements must have same PMU]"
470 if ! perf record -o /dev/null -e "{instructions,cycles/ratio-to-prev=0.5/}" \
471 true |& grep -q 'Event period term or count (-c) must be set when using ratio
[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/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/sound/soc/codecs/
H A Dcs4270.c150 * struct cs4270_mode_ratios - clock ratio tables
151 * @ratio: the ratio of MCLK to the sample rate
153 * this ratio
154 * @mclk: the Ratio Select bits to set in the Mode Control register for this
155 * ratio
170 * In situations where a single ratio is represented by multiple speed
171 * modes, we favor the slowest speed. E.g, for a ratio of 128, we pick
182 unsigned int ratio; member
229 * by the CS4270. The ratio of MCLK / Fs must be equal to one of nine
325 unsigned int ratio; in cs4270_hw_params() local
[all …]
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, ratio; in nau8325_clksrc_choose() local
403 ratio = nau8325_clksrc_n2(nau8325, *srate_table, nau8325->mclk, n2_sel); in nau8325_clksrc_choose()
404 if (ratio ! in nau8325_clksrc_choose()
[all...]
H A Dwm8974.c378 unsigned int ratio = 2 * f_in / f_out; in wm8974_get_mclkdiv() local
380 if (ratio <= 2) { in wm8974_get_mclkdiv()
382 ratio = 2; in wm8974_get_mclkdiv()
383 } else if (ratio == 3) { in wm8974_get_mclkdiv()
385 } else if (ratio == 4) { in wm8974_get_mclkdiv()
387 } else if (ratio <= 6) { in wm8974_get_mclkdiv()
389 ratio = 6; in wm8974_get_mclkdiv()
390 } else if (ratio <= 8) { in wm8974_get_mclkdiv()
392 ratio = 8; in wm8974_get_mclkdiv()
393 } else if (ratio < in wm8974_get_mclkdiv()
[all...]
/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/media/v4l2-core/
H A Dv4l2-dv-timings.c380 struct v4l2_fract ratio = { 1, 1 }; in v4l2_dv_timings_aspect_ratio() local
384 return ratio; in v4l2_dv_timings_aspect_ratio()
386 return ratio; in v4l2_dv_timings_aspect_ratio()
388 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio()
389 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio()
391 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio()
392 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio()
393 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio()
394 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio()
395 return ratio; in v4l2_dv_timings_aspect_ratio()
[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/perf/util/
H A Dstat-shadow.c148 double ratio, scale, threshold; in generic_metric()
167 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
181 ratio *= scale; in generic_metric()
191 metric_bf, ratio); in generic_metric()
197 ratio); in generic_metric()
216 double ratio = 0.0; in test_generic_metric()
225 if (expr__parse(&ratio, pctx, mexp->metric_expr))
226 ratio = 0.0; in perf_stat__print_metricgroup_header()
230 return ratio; in perf_stat__print_metricgroup_header()
141 double ratio, scale, threshold; generic_metric() local
209 double ratio = 0.0; test_generic_metric() local
/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/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>;
/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 …]

12345678910>>...27