| /linux/tools/perf/tests/ |
| H A D | parse-metric.c | 120 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 122 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 134 double ratio; in test_ipc() local 142 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() 144 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc() 145 ratio == 1.5); in test_ipc() 151 double ratio; in test_frontend() local 161 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend() 163 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend() 164 ratio == 0.45); in test_frontend() [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_cdclk.c | 83 * reference clock and a ratio parameter. 1316 u8 ratio; member 1320 { .refclk = 19200, .cdclk = 144000, .ratio = 60 }, 1321 { .refclk = 19200, .cdclk = 288000, .ratio = 60 }, 1322 { .refclk = 19200, .cdclk = 384000, .ratio = 60 }, 1323 { .refclk = 19200, .cdclk = 576000, .ratio = 60 }, 1324 { .refclk = 19200, .cdclk = 624000, .ratio = 65 }, 1329 { .refclk = 19200, .cdclk = 79200, .ratio = 33 }, 1330 { .refclk = 19200, .cdclk = 158400, .ratio = 33 }, 1331 { .refclk = 19200, .cdclk = 316800, .ratio = 33 }, [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | intel-acr.txt | 34 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 D | mem-on-off-test.sh | 148 # 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 D | intel_powerclamp.rst | 74 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/drivers/media/dvb-frontends/ |
| H A D | ves1x93.c | 165 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 D | tda8083.c | 124 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/testing/selftests/net/forwarding/ |
| H A D | sch_ets_tests.sh | 54 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/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/ |
| H A D | metrics.json | 12 …"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/tests/shell/ |
| H A D | record.sh | 406 echo "ratio-to-prev test" 407 if ! perf record -o /dev/null -e "{instructions, cycles/period=100000,ratio-to-prev=0.5/}" \ 410 echo "ratio-to-prev [Skipped not supported]" 413 if ! perf record -o /dev/null -e "instructions, cycles/period=100000,ratio-to-prev=0.5/" \ 414 true |& grep -q 'Invalid use of ratio-to-prev term without preceding element in group' 416 echo "ratio-to-prev test [Failed elements must be in same group]" 420 if ! perf record -o /dev/null -e "{instructions,dummy,cycles/period=100000,ratio-to-prev=0.5/}" \ 423 echo "ratio-to-prev test [Failed elements must have same PMU]" 427 if ! perf record -o /dev/null -e "{instructions,cycles/ratio-to-prev=0.5/}" \ 428 true |& grep -q 'Event period term or count (-c) must be set when using ratio-to-prev term.' [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/ |
| H A D | metrics.json | 19 …"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 D | clk-cs2000-cp.c | 202 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 D | sysfs-firmware-opal-psr | 4 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 D | ti,tsc2046.yaml | 56 oversampling-ratio: true 91 oversampling-ratio = <5>; 99 oversampling-ratio = <5>; 104 oversampling-ratio = <5>; 109 oversampling-ratio = <5>;
|
| /linux/arch/arm/mach-omap2/ |
| H A D | opp2xxx.h | 13 * 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 D | v4l2-dv-timings.c | 380 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/Documentation/devicetree/bindings/rng/ |
| H A D | arm-cctrng.yaml | 27 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/drivers/staging/fbtft/ |
| H A D | fb_uc1611.c | 26 * 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 D | ktd253-backlight.c | 20 /* 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 D | stat-shadow.c | 140 double ratio, scale, threshold; in generic_metric() 159 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric() 173 ratio *= scale; in generic_metric() 183 metric_bf, ratio); in generic_metric() 189 ratio); in generic_metric() 208 double ratio = 0.0; in test_generic_metric() 217 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric() 218 ratio = 0.0; in test_generic_metric() 222 return ratio; in test_generic_metric() 141 double ratio, scale, threshold; generic_metric() local 209 double ratio = 0.0; test_generic_metric() local
|
| /linux/tools/power/cpupower/utils/ |
| H A D | cpufreq-info.c | 173 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 D | nau8325.c | 346 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 != NAU8325_MCLK_FS_RATIO_NUM) { in nau8325_clksrc_choose() [all …]
|
| H A D | wm8974.c | 378 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/tools/perf/pmu-events/arch/x86/grandridge/ |
| H A D | grr-metrics.json | 77 …"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/arm/boot/dts/nxp/imx/ |
| H A D | imx6qdl-skov-cpu-revc.dtsi | 39 oversampling-ratio = <5>; 45 oversampling-ratio = <5>; 51 oversampling-ratio = <5>; 57 oversampling-ratio = <5>;
|