Home
last modified time | relevance | path

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

12345678910>>...12

/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.c214 double ratio; in test_ipc() local
225 ratio == 1.5); in test_ipc()
231 double ratio; in test_frontend() local
244 ratio == 0.45); in test_frontend()
250 double ratio; in test_cache_miss_cycles() local
262 ratio == 1.25); in test_cache_miss_cycles()
290 double ratio; in test_dcache_l2() local
305 ratio == 0.3); in test_dcache_l2()
311 ratio == 0.7); in test_dcache_l2()
317 double ratio; in test_recursion_fail() local
[all …]
/linux/tools/perf/util/
A Dstat-shadow.c508 if (ratio) in print_stalled_cycles_frontend()
510 ratio); in print_stalled_cycles_frontend()
883 double ratio, scale; in generic_metric() local
905 ratio *= scale; in generic_metric()
921 ratio); in generic_metric()
940 double ratio = 0.0; in test_generic_metric() local
950 ratio = 0.0; in test_generic_metric()
954 return ratio; in test_generic_metric()
981 ratio = avg / total; in perf_stat__print_shadow_stats()
996 ratio = total / avg; in perf_stat__print_shadow_stats()
[all …]
/linux/drivers/thermal/intel/
A Dintel_powerclamp.c266 if (ratio == 1 && in get_compensation()
270 comp = (cal_data[ratio].steady_comp + in get_compensation()
271 cal_data[ratio + 1].steady_comp + in get_compensation()
272 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
277 comp = (cal_data[ratio].steady_comp + in get_compensation()
278 cal_data[ratio - 1].steady_comp + in get_compensation()
283 comp = (cal_data[ratio].steady_comp + in get_compensation()
284 cal_data[ratio - 1].steady_comp + in get_compensation()
290 comp = ratio; in get_compensation()
292 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation()
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_cdclk.c1215 { .refclk = 19200, .cdclk = 144000, .divider = 8, .ratio = 60 },
1351 return dev_priv->cdclk.hw.ref * table[i].ratio; in bxt_calc_cdclk_pll_vco()
1421 u32 val, ratio; in bxt_de_pll_readout() local
1446 ratio = val & ICL_CDCLK_PLL_RATIO_MASK; in bxt_de_pll_readout()
1450 cdclk_config->vco = ratio * cdclk_config->ref; in bxt_de_pll_readout()
1518 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); in bxt_de_pll_enable() local
1521 BXT_DE_PLL_RATIO_MASK, BXT_DE_PLL_RATIO(ratio)); in bxt_de_pll_enable()
1547 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); in icl_cdclk_pll_enable() local
1550 val = ICL_CDCLK_PLL_RATIO(ratio); in icl_cdclk_pll_enable()
1565 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); in adlp_cdclk_pll_crawl() local
[all …]
/linux/sound/soc/codecs/
A Dcs42xx8.c267 u32 ratio[2]; in cs42xx8_hw_params() local
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()
316 (cs42xx8_ratios[i].ratio[0] == ratio[!tx] || in cs42xx8_hw_params()
317 cs42xx8_ratios[i].ratio[1] == ratio[!tx] || in cs42xx8_hw_params()
318 cs42xx8_ratios[i].ratio[2] == ratio[!tx]) : in cs42xx8_hw_params()
319 (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 …]
/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 Dcx24110.c230 u32 ratio; in cx24110_set_symbolrate() local
276 ratio=(tmp/BDRI); in cx24110_set_symbolrate()
279 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
282 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
285 ratio=(ratio<<1)+(tmp/BDRI); in cx24110_set_symbolrate()
289 dprintk("ratio= %08x\n", ratio); in cx24110_set_symbolrate()
291 cx24110_writereg(state, 0x1, (ratio>>16)&0xff); in cx24110_set_symbolrate()
292 cx24110_writereg(state, 0x2, (ratio>>8)&0xff); in cx24110_set_symbolrate()
293 cx24110_writereg(state, 0x3, (ratio)&0xff); in cx24110_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/drivers/media/platform/omap3isp/
A Dispresizer.c325 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio()
331 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio()
783 struct resizer_ratio *ratio) in resizer_calc_ratios() argument
810 if (ratio->vert > MID_RESIZE_VALUE) in resizer_calc_ratios()
813 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios()
884 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios()
1232 struct resizer_ratio ratio; in resizer_get_selection() local
1286 struct resizer_ratio ratio; in resizer_set_selection() local
1338 res->ratio = ratio; in resizer_set_selection()
1384 struct resizer_ratio ratio; in resizer_try_format() local
[all …]
/linux/tools/testing/selftests/memory-hotplug/
A Dmem-on-off-test.sh140 ratio=2
156 ratio=$OPTARG
157 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
172 echo "Test scope: $ratio% hotplug 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"
259 if [ $((RANDOM % 100)) -lt $ratio ]; then
285 if [ $((RANDOM % 100)) -lt $ratio ]; then
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dtransform.h266 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/tools/power/cpupower/utils/
A Dcpufreq-info.c208 unsigned int ratio; in get_boost_mode_x86() local
220 if (ratio) in get_boost_mode_x86()
222 ratio * bclk); in get_boost_mode_x86()
225 if (ratio) in get_boost_mode_x86()
227 ratio * bclk); in get_boost_mode_x86()
229 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode_x86()
230 if (ratio) in get_boost_mode_x86()
232 ratio * bclk); in get_boost_mode_x86()
234 ratio = (intel_turbo_ratio >> 0) & 0xFF; in get_boost_mode_x86()
235 if (ratio) in get_boost_mode_x86()
[all …]
/linux/tools/power/x86/turbostat/
A Dturbostat.c2461 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2467 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2473 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2479 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2485 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2491 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2497 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2503 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2593 ratio[b_nr + 1] = ratio[b_nr] - delta_ratio; in dump_knl_turbo_ratio_limits()
2598 if (i > 0 ? ratio[i] != ratio[i - 1] : 1) in dump_knl_turbo_ratio_limits()
[all …]
/linux/drivers/clk/
A Dclk-cs2000-cp.c194 u64 ratio; in cs2000_rate_to_ratio() local
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()
219 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
293 u32 ratio; in cs2000_recalc_rate() local
295 ratio = cs2000_ratio_get(priv, ch); in cs2000_recalc_rate()
297 return cs2000_ratio_to_rate(ratio, parent_rate); in cs2000_recalc_rate()
303 u32 ratio; in cs2000_round_rate() local
305 ratio = cs2000_rate_to_ratio(*parent_rate, rate); in cs2000_round_rate()
[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.yaml55 oversampling-ratio: true
87 oversampling-ratio = <5>;
95 oversampling-ratio = <5>;
100 oversampling-ratio = <5>;
105 oversampling-ratio = <5>;
/linux/tools/testing/selftests/net/forwarding/
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/platform/vsp1/
A Dvsp1_uds.c54 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()
87 static unsigned int uds_passband_width(unsigned int ratio) in uds_passband_width() argument
89 if (ratio >= 4096) { in uds_passband_width()
93 mp = ratio / 4096; in uds_passband_width()
96 return 64 * 4096 * mp / ratio; in uds_passband_width()

Completed in 70 milliseconds

12345678910>>...12