Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/linux/drivers/gpu/drm/amd/display/dc/spl/
A Ddc_spl_scl_filters.c1323 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_3tap_16p()
1335 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_3tap_64p()
1347 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_4tap_16p()
1359 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_4tap_64p()
1371 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_5tap_64p()
1383 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_6tap_64p()
1395 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_7tap_64p()
1407 if (ratio.value < spl_fixpt_one.value) in spl_get_filter_8tap_64p()
1430 return spl_get_filter_8tap_64p(ratio); in spl_dscl_get_filter_coeffs_64p()
1432 return spl_get_filter_7tap_64p(ratio); in spl_dscl_get_filter_coeffs_64p()
[all …]
A Ddc_spl_scl_easf_filters.c1473 return spl_get_easf_filter_6tap_64p(ratio); in spl_dscl_get_easf_filter_coeffs_64p()
1475 return spl_get_easf_filter_4tap_64p(ratio); in spl_dscl_get_easf_filter_coeffs_64p()
1477 return spl_get_easf_filter_3tap_64p(ratio); in spl_dscl_get_easf_filter_coeffs_64p()
1538 if (ratio.value < spl_fixpt_from_fraction( in spl_easf_get_scale_ratio_to_reg_value()
1554 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_v_bf3_mode()
1563 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_h_bf3_mode()
1575 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_reducer_gain6()
1580 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_reducer_gain6()
1594 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_reducer_gain4()
1599 value = spl_easf_get_scale_ratio_to_reg_value(ratio, in spl_get_reducer_gain4()
[all …]
A Ddc_spl_scl_easf_filters.h17 uint16_t *spl_get_easf_filter_3tap_64p(struct spl_fixed31_32 ratio);
18 uint16_t *spl_get_easf_filter_4tap_64p(struct spl_fixed31_32 ratio);
19 uint16_t *spl_get_easf_filter_6tap_64p(struct spl_fixed31_32 ratio);
25 uint32_t spl_get_v_bf3_mode(struct spl_fixed31_32 ratio);
26 uint32_t spl_get_h_bf3_mode(struct spl_fixed31_32 ratio);
27 uint32_t spl_get_reducer_gain6(int taps, struct spl_fixed31_32 ratio);
28 uint32_t spl_get_reducer_gain4(int taps, struct spl_fixed31_32 ratio);
29 uint32_t spl_get_gainRing6(int taps, struct spl_fixed31_32 ratio);
30 uint32_t spl_get_gainRing4(int taps, struct spl_fixed31_32 ratio);
32 uint32_t spl_get_3tap_uptilt_maxval(int taps, struct spl_fixed31_32 ratio);
[all …]
A Ddc_spl_scl_filters.h10 const uint16_t *spl_get_filter_3tap_16p(struct spl_fixed31_32 ratio);
11 const uint16_t *spl_get_filter_3tap_64p(struct spl_fixed31_32 ratio);
12 const uint16_t *spl_get_filter_4tap_16p(struct spl_fixed31_32 ratio);
13 const uint16_t *spl_get_filter_4tap_64p(struct spl_fixed31_32 ratio);
14 const uint16_t *spl_get_filter_5tap_64p(struct spl_fixed31_32 ratio);
15 const uint16_t *spl_get_filter_6tap_64p(struct spl_fixed31_32 ratio);
16 const uint16_t *spl_get_filter_7tap_64p(struct spl_fixed31_32 ratio);
17 const uint16_t *spl_get_filter_8tap_64p(struct spl_fixed31_32 ratio);
20 const uint16_t *spl_dscl_get_filter_coeffs_64p(int taps, struct spl_fixed31_32 ratio);
A Ddc_spl_isharp_filters.c553 static unsigned int spl_calculate_sharpness_level_adj(struct spl_fixed31_32 ratio) in spl_calculate_sharpness_level_adj() argument
581 if (ratio.value >= ratio_level.value) { in spl_calculate_sharpness_level_adj()
591 static unsigned int spl_calculate_sharpness_level(struct spl_fixed31_32 ratio, in spl_calculate_sharpness_level() argument
618 sharpness_level_down_adj = spl_calculate_sharpness_level_adj(ratio); in spl_calculate_sharpness_level()
627 sharpness_level_down_adj = spl_calculate_sharpness_level_adj(ratio); in spl_calculate_sharpness_level()
635 sharpness_level_down_adj = spl_calculate_sharpness_level_adj(ratio); in spl_calculate_sharpness_level()
659 void spl_build_isharp_1dlut_from_reference_curve(struct spl_fixed31_32 ratio, enum system_setup set… in spl_build_isharp_1dlut_from_reference_curve() argument
670 unsigned int sharpnessX1000 = spl_calculate_sharpness_level(ratio, in spl_build_isharp_1dlut_from_reference_curve()
/linux/drivers/gpu/drm/amd/display/dc/dce/
A Ddce_scl_filters.c1343 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_16p()
1345 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_16p()
1347 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_16p()
1355 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_64p()
1357 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_64p()
1367 if (ratio.value < dc_fixpt_one.value) in get_filter_4tap_16p()
1379 if (ratio.value < dc_fixpt_one.value) in get_filter_4tap_64p()
1391 if (ratio.value < dc_fixpt_one.value) in get_filter_5tap_64p()
1403 if (ratio.value < dc_fixpt_one.value) in get_filter_6tap_64p()
1415 if (ratio.value < dc_fixpt_one.value) in get_filter_7tap_64p()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_dwb_scl.c532 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_3tap_16p()
544 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_4tap_16p()
556 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_5tap_16p()
568 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_6tap_16p()
580 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_7tap_16p()
592 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_8tap_16p()
604 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_9tap_16p()
615 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_10tap_16p()
627 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_11tap_16p()
639 if (ratio.value < dc_fixpt_one.value) in wbscl_get_filter_12tap_16p()
[all …]
/linux/tools/perf/tests/
A Dparse-metric.c139 double ratio; in test_ipc() local
150 ratio == 1.5); in test_ipc()
156 double ratio; in test_frontend() local
169 ratio == 0.45); in test_frontend()
175 double ratio; in test_cache_miss_cycles() local
187 ratio == 1.25); in test_cache_miss_cycles()
215 double ratio; in test_dcache_l2() local
230 ratio == 0.3); in test_dcache_l2()
236 ratio == 0.7); in test_dcache_l2()
242 double ratio; in test_recursion_fail() local
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_cdclk.c1272 u8 ratio; member
1276 { .refclk = 19200, .cdclk = 144000, .ratio = 60 },
1277 { .refclk = 19200, .cdclk = 288000, .ratio = 60 },
1278 { .refclk = 19200, .cdclk = 384000, .ratio = 60 },
1279 { .refclk = 19200, .cdclk = 576000, .ratio = 60 },
1280 { .refclk = 19200, .cdclk = 624000, .ratio = 65 },
1285 { .refclk = 19200, .cdclk = 79200, .ratio = 33 },
1609 u32 val, ratio; in bxt_de_pll_readout() local
1634 ratio = val & ICL_CDCLK_PLL_RATIO_MASK; in bxt_de_pll_readout()
1638 cdclk_config->vco = ratio * cdclk_config->ref; in bxt_de_pll_readout()
[all …]
/linux/drivers/thermal/intel/
A Dintel_powerclamp.c378 if (ratio == 1 && in get_compensation()
382 comp = (cal_data[ratio].steady_comp + in get_compensation()
383 cal_data[ratio + 1].steady_comp + in get_compensation()
384 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
389 comp = (cal_data[ratio].steady_comp + in get_compensation()
390 cal_data[ratio - 1].steady_comp + in get_compensation()
391 cal_data[ratio - 2].steady_comp) / 3; in get_compensation()
395 comp = (cal_data[ratio].steady_comp + in get_compensation()
396 cal_data[ratio - 1].steady_comp + in get_compensation()
401 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation()
[all …]
/linux/sound/soc/codecs/
A Dcs42xx8.c266 u32 ratio[2]; in cs42xx8_hw_params() local
303 (cs42xx8_ratios[i].ratio[0] == ratio[tx] || in cs42xx8_hw_params()
304 cs42xx8_ratios[i].ratio[1] == ratio[tx] || in cs42xx8_hw_params()
305 cs42xx8_ratios[i].ratio[2] == ratio[tx]) : in cs42xx8_hw_params()
306 (cs42xx8_ratios[i].ratio[fm[tx]] == ratio[tx])) && in cs42xx8_hw_params()
310 if (!ratio[tx]) in cs42xx8_hw_params()
315 (cs42xx8_ratios[i].ratio[0] == ratio[!tx] || in cs42xx8_hw_params()
316 cs42xx8_ratios[i].ratio[1] == ratio[!tx] || in cs42xx8_hw_params()
317 cs42xx8_ratios[i].ratio[2] == ratio[!tx]) : in cs42xx8_hw_params()
318 (cs42xx8_ratios[i].ratio[fm[!tx]] == ratio[!tx])); in cs42xx8_hw_params()
[all …]
A Dwm8974.c380 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()
395 ratio = 12; in wm8974_get_mclkdiv()
398 ratio = 16; in wm8974_get_mclkdiv()
[all …]
A Dwm8940.c652 if (ratio <= 2) { in wm8940_get_mclkdiv()
654 ratio = 2; in wm8940_get_mclkdiv()
655 } else if (ratio == 3) { in wm8940_get_mclkdiv()
657 } else if (ratio == 4) { in wm8940_get_mclkdiv()
659 } else if (ratio <= 6) { in wm8940_get_mclkdiv()
661 ratio = 6; in wm8940_get_mclkdiv()
662 } else if (ratio <= 8) { in wm8940_get_mclkdiv()
664 ratio = 8; in wm8940_get_mclkdiv()
667 ratio = 12; in wm8940_get_mclkdiv()
670 ratio = 16; in wm8940_get_mclkdiv()
[all …]
/linux/drivers/media/dvb-frontends/
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()
200 if (ratio < MUL/24) FNR = 6; in ves1x93_set_symbolrate()
[all …]
A Dz0194a.h13 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument
33 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in sharp_z0194a_set_symbol_rate()
34 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in sharp_z0194a_set_symbol_rate()
35 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in sharp_z0194a_set_symbol_rate()
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()
A Dbsbe1.h34 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument
48 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsbe1_set_symbol_rate()
49 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsbe1_set_symbol_rate()
50 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0); in alps_bsbe1_set_symbol_rate()
A Dbsru6.h53 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument
80 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsru6_set_symbol_rate()
81 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsru6_set_symbol_rate()
82 stv0299_writereg(fe, 0x21, ratio & 0xf0); in alps_bsru6_set_symbol_rate()
/linux/sound/soc/fsl/
A Dfsl_esai.c176 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal()
180 } else if (ratio % 2) { in fsl_esai_divisor_cal()
185 ratio /= 2; in fsl_esai_divisor_cal()
190 if (ratio <= 256) { in fsl_esai_divisor_cal()
191 pm = ratio; in fsl_esai_divisor_cal()
205 if (prod == ratio) in fsl_esai_divisor_cal()
208 sub = prod - ratio; in fsl_esai_divisor_cal()
210 sub = ratio - prod; in fsl_esai_divisor_cal()
266 u32 ratio, ecr = 0; in fsl_esai_set_dai_sysclk() local
332 } else if (ratio < 2) { in fsl_esai_set_dai_sysclk()
[all …]
/linux/tools/testing/selftests/memory-hotplug/
A Dmem-on-off-test.sh149 ratio=2
165 ratio=$OPTARG
166 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
181 echo "Test scope: $ratio% hotplug 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"
271 if [ $((RANDOM % 100)) -lt $ratio ]; then
297 if [ $((RANDOM % 100)) -lt $ratio ]; then
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dtransform.h252 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio);
253 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio);
254 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio);
255 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio);
256 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio);
257 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio);
258 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio);
259 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio);
/linux/drivers/media/platform/ti/omap3isp/
A Dispresizer.c324 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio()
330 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio()
782 struct resizer_ratio *ratio) in resizer_calc_ratios() argument
809 if (ratio->vert > MID_RESIZE_VALUE) in resizer_calc_ratios()
812 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios()
883 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios()
1231 struct resizer_ratio ratio; in resizer_get_selection() local
1285 struct resizer_ratio ratio; in resizer_set_selection() local
1337 res->ratio = ratio; in resizer_set_selection()
1383 struct resizer_ratio ratio; in resizer_try_format() local
[all …]
/linux/tools/power/cpupower/utils/
A Dcpufreq-info.c174 unsigned int ratio; in get_boost_mode_x86() local
186 if (ratio) in get_boost_mode_x86()
188 ratio * bclk); in get_boost_mode_x86()
191 if (ratio) in get_boost_mode_x86()
193 ratio * bclk); in get_boost_mode_x86()
195 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode_x86()
196 if (ratio) in get_boost_mode_x86()
198 ratio * bclk); in get_boost_mode_x86()
200 ratio = (intel_turbo_ratio >> 0) & 0xFF; in get_boost_mode_x86()
201 if (ratio) in get_boost_mode_x86()
[all …]
/linux/arch/x86/kernel/
A Dtsc_msr.c168 u32 lo, hi, ratio, freq, tscref; in cpu_khz_from_msr() local
182 ratio = (lo >> 8) & 0xff; in cpu_khz_from_msr()
185 ratio = (hi >> 8) & 0x1f; in cpu_khz_from_msr()
204 res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider); in cpu_khz_from_msr()
207 res = freq * ratio; in cpu_khz_from_msr()
/linux/Documentation/devicetree/bindings/iio/adc/
A Dti,tsc2046.yaml56 oversampling-ratio: true
91 oversampling-ratio = <5>;
99 oversampling-ratio = <5>;
104 oversampling-ratio = <5>;
109 oversampling-ratio = <5>;

Completed in 60 milliseconds

12345678910>>...15