Home
last modified time | relevance | path

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

12345678910>>...34

/Linux-v5.15/tools/perf/tests/
Dparse-metric.c199 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
201 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
213 double ratio; in test_ipc() local
221 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
223 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
224 ratio == 1.5); in test_ipc()
230 double ratio; in test_frontend() local
240 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
242 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
243 ratio == 0.45); in test_frontend()
[all …]
/Linux-v5.15/tools/perf/util/
Dstat-shadow.c337 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
346 if (ratio > grc_table[type][0]) in get_ratio_color()
348 else if (ratio > grc_table[type][1]) in get_ratio_color()
350 else if (ratio > grc_table[type][2]) in get_ratio_color()
491 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
497 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
499 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
501 if (ratio) in print_stalled_cycles_frontend()
503 ratio); in print_stalled_cycles_frontend()
514 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
/Linux-v5.15/drivers/thermal/intel/
Dintel_powerclamp.c48 * we increment the confidence counter for the given target ratio.
54 * idle ratio. Similar to frequency modulation.
173 "\tpowerclamp controls idle ratio within this window. larger\n"
261 static unsigned int get_compensation(int ratio) in get_compensation() argument
266 if (ratio == 1 && in get_compensation()
267 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
268 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
269 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
270 comp = (cal_data[ratio].steady_comp + in get_compensation()
271 cal_data[ratio + 1].steady_comp + in get_compensation()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c530 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 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-v5.15/sound/soc/codecs/
Dcs42xx8.c183 unsigned int ratio[3]; member
267 u32 ratio[2]; in cs42xx8_hw_params() local
279 ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; in cs42xx8_hw_params()
280 ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; in cs42xx8_hw_params()
302 /* Is the ratio[tx] valid ? */ in cs42xx8_hw_params()
304 (cs42xx8_ratios[i].ratio[0] == ratio[tx] || in cs42xx8_hw_params()
305 cs42xx8_ratios[i].ratio[1] == ratio[tx] || in cs42xx8_hw_params()
306 cs42xx8_ratios[i].ratio[2] == ratio[tx]) : in cs42xx8_hw_params()
307 (cs42xx8_ratios[i].ratio[fm[tx]] == ratio[tx])) && in cs42xx8_hw_params()
311 if (!ratio[tx]) in cs42xx8_hw_params()
[all …]
Dcs4270.c162 * struct cs4270_mode_ratios - clock ratio tables
163 * @ratio: the ratio of MCLK to the sample rate
165 * this ratio
166 * @mclk: the Ratio Select bits to set in the Mode Control register for this
167 * ratio
182 * In situations where a single ratio is represented by multiple speed
183 * modes, we favor the slowest speed. E.g, for a ratio of 128, we pick
194 unsigned int ratio; member
241 * by the CS4270. The ratio of MCLK / Fs must be equal to one of nine
337 unsigned int ratio; in cs4270_hw_params() local
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_cdclk.c1183 { .refclk = 19200, .cdclk = 144000, .divider = 8, .ratio = 60 },
1184 { .refclk = 19200, .cdclk = 288000, .divider = 4, .ratio = 60 },
1185 { .refclk = 19200, .cdclk = 384000, .divider = 3, .ratio = 60 },
1186 { .refclk = 19200, .cdclk = 576000, .divider = 2, .ratio = 60 },
1187 { .refclk = 19200, .cdclk = 624000, .divider = 2, .ratio = 65 },
1192 { .refclk = 19200, .cdclk = 79200, .divider = 8, .ratio = 33 },
1193 { .refclk = 19200, .cdclk = 158400, .divider = 4, .ratio = 33 },
1194 { .refclk = 19200, .cdclk = 316800, .divider = 2, .ratio = 33 },
1199 { .refclk = 19200, .cdclk = 172800, .divider = 2, .ratio = 18 },
1200 { .refclk = 19200, .cdclk = 192000, .divider = 2, .ratio = 20 },
[all …]
/Linux-v5.15/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh139 # Run with default of ratio=2 for Kselftest run
140 ratio=2
156 ratio=$OPTARG
157 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
172 echo "Test scope: $ratio% hotplug memory"
191 # Offline $ratio percent of hot-pluggable memory
194 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc`
195 echo -e "\t offline $ratio% hot-pluggable memory in online state"
255 # Offline $ratio percent of hot-pluggable memory
259 if [ $((RANDOM % 100)) -lt $ratio ]; then
[all …]
/Linux-v5.15/drivers/clk/
Dclk-cs2000-cp.c135 /* FIXME: for Static ratio mode */ in cs2000_enable_dev_config()
194 u64 ratio; in cs2000_rate_to_ratio() local
197 * ratio = rate_out / rate_in * 2^20 in cs2000_rate_to_ratio()
202 ratio = (u64)rate_out << 20; in cs2000_rate_to_ratio()
203 do_div(ratio, rate_in); in cs2000_rate_to_ratio()
205 return ratio; in cs2000_rate_to_ratio()
208 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in) in cs2000_ratio_to_rate() argument
213 * ratio = rate_out / rate_in * 2^20 in cs2000_ratio_to_rate()
219 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
273 * this driver supports static ratio mode only at this point. in cs2000_ratio_select()
[all …]
/Linux-v5.15/drivers/media/platform/omap3isp/
Dispresizer.c52 * Constants for ratio calculation
305 * @ratio: Structure for ratio parameters.
310 const struct resizer_ratio *ratio) in resizer_set_ratio() argument
318 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio()
320 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) in resizer_set_ratio()
325 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio()
331 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio()
683 * @ratio : return calculated ratios
687 * has a fixed number of phases that depend on the resizing ratio. As the ratio
691 * The input/output/ratio relationship is given by the OMAP34xx TRM:
[all …]
/Linux-v5.15/sound/soc/fsl/
Dfsl_esai.c161 * @ratio: desired overall ratio for the paticipating dividers
165 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
176 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal()
177 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", in fsl_esai_divisor_cal()
180 } else if (ratio % 2) { in fsl_esai_divisor_cal()
185 ratio /= 2; in fsl_esai_divisor_cal()
187 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal()
189 /* Do not loop-search if PM (1 ~ 256) alone can serve the ratio */ in fsl_esai_divisor_cal()
190 if (ratio <= 256) { in fsl_esai_divisor_cal()
191 pm = ratio; in fsl_esai_divisor_cal()
[all …]
/Linux-v5.15/Documentation/driver-api/thermal/
Dintel_powerclamp.rst72 ratio (based on power reduction), and the error is the difference
73 between the actual package level C-state residency ratio and the target idle
74 ratio.
80 clamping actions of controlled duty ratio and duration. Each per-CPU
127 instantly as given input (target idle ratio). After injection,
150 a) determine the effective range of idle injection ratio
151 b) determine the amount of compensation needed at each target ratio
153 Compensation to each target ratio consists of two parts:
161 additional idle ratio can be added to quiet interrupts, by
211 we have a simple algorithm to double the injection ratio. A possible
[all …]
/Linux-v5.15/tools/testing/selftests/net/forwarding/
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-v5.15/drivers/media/dvb-frontends/
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 …]
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-v5.15/drivers/gpu/drm/amd/display/dc/inc/hw/
Dtransform.h69 /* Active format aspect ratio */
266 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio);
267 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio);
268 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio);
269 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio);
270 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio);
271 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio);
272 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio);
273 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio);
/Linux-v5.15/drivers/media/platform/vsp1/
Dvsp1_uds.c50 * uds_output_size - Return the output size for an input size and scaling ratio
52 * @ratio: scaling ratio in U4.12 fixed-point format
54 static unsigned int uds_output_size(unsigned int input, unsigned int ratio) in uds_output_size() argument
56 if (ratio > 4096) { in uds_output_size()
60 mp = ratio / 4096; in uds_output_size()
63 return (input - 1) / mp * mp * 4096 / ratio + 1; in uds_output_size()
66 return (input - 1) * 4096 / ratio + 1; in uds_output_size()
84 * uds_passband_width - Return the passband filter width for a scaling ratio
85 * @ratio: scaling ratio in U4.12 fixed-point format
87 static unsigned int uds_passband_width(unsigned int ratio) in uds_passband_width() argument
[all …]
/Linux-v5.15/Documentation/ABI/testing/
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-v5.15/drivers/media/v4l2-core/
Dv4l2-dv-timings.c358 struct v4l2_fract ratio = { 1, 1 }; in v4l2_dv_timings_aspect_ratio() local
362 return ratio; in v4l2_dv_timings_aspect_ratio()
364 return ratio; in v4l2_dv_timings_aspect_ratio()
366 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio()
367 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio()
369 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio()
370 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio()
371 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio()
372 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio()
373 return ratio; in v4l2_dv_timings_aspect_ratio()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/iio/adc/
Dti,tsc2046.yaml55 oversampling-ratio: true
87 oversampling-ratio = <5>;
95 oversampling-ratio = <5>;
100 oversampling-ratio = <5>;
105 oversampling-ratio = <5>;
/Linux-v5.15/Documentation/devicetree/bindings/rng/
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-v5.15/arch/arm/mach-omap2/
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-v5.15/drivers/video/backlight/
Dktd253-backlight.c21 /* Current ratio is n/32 from 1/32 to 32/32 */
35 u16 ratio; member
80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status()
83 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
98 ktd253->ratio = 0; in ktd253_backlight_update_status()
131 ktd253->ratio = current_ratio; in ktd253_backlight_update_status()
133 dev_dbg(ktd253->dev, "new ratio set to %d/32\n", target_ratio); in ktd253_backlight_update_status()
/Linux-v5.15/drivers/staging/fbtft/
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-v5.15/tools/power/x86/turbostat/
Dturbostat.c2340 unsigned int ratio; in dump_nhm_platform_info() local
2346 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
2347 fprintf(outf, "%d * %.1f = %.1f MHz max efficiency frequency\n", ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2349 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
2350 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2366 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local
2372 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
2373 if (ratio) in dump_hsw_turbo_ratio_limits()
2374 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 18 active cores\n", ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2376 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits()
[all …]

12345678910>>...34