Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/
Ddce_scl_filters.c1015 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) in get_filter_3tap_16p() argument
1017 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_16p()
1019 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_16p()
1021 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_16p()
1027 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) in get_filter_3tap_64p() argument
1029 if (ratio.value < dc_fixpt_one.value) in get_filter_3tap_64p()
1031 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_64p()
1033 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_64p()
1039 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) in get_filter_4tap_16p() argument
1041 if (ratio.value < dc_fixpt_one.value) in get_filter_4tap_16p()
[all …]
/Linux-v4.19/tools/perf/util/
Dstat-shadow.c281 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
290 if (ratio > grc_table[type][0]) in get_ratio_color()
292 else if (ratio > grc_table[type][1]) in get_ratio_color()
294 else if (ratio > grc_table[type][2]) in get_ratio_color()
418 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
425 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
427 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
429 if (ratio) in print_stalled_cycles_frontend()
431 ratio); in print_stalled_cycles_frontend()
441 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
/Linux-v4.19/drivers/thermal/
Dintel_powerclamp.c279 static unsigned int get_compensation(int ratio) in get_compensation() argument
284 if (ratio == 1 && in get_compensation()
285 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
286 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
287 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
288 comp = (cal_data[ratio].steady_comp + in get_compensation()
289 cal_data[ratio + 1].steady_comp + in get_compensation()
290 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
291 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation()
292 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
[all …]
/Linux-v4.19/sound/soc/fsl/
Dfsl_esai.c119 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
130 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal()
134 } else if (ratio % 2) { in fsl_esai_divisor_cal()
139 ratio /= 2; in fsl_esai_divisor_cal()
141 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal()
144 if (ratio <= 256) { in fsl_esai_divisor_cal()
145 pm = ratio; in fsl_esai_divisor_cal()
159 if (prod == ratio) in fsl_esai_divisor_cal()
161 else if (prod / ratio == 1) in fsl_esai_divisor_cal()
162 sub = prod - ratio; in fsl_esai_divisor_cal()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/
Dves1x93.c178 u32 ratio; in ves1x93_set_symbolrate() local
197 ratio = tmp / FIN; in ves1x93_set_symbolrate()
200 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
203 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
207 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate()
208 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate()
209 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate()
210 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate()
211 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate()
212 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]
Dz0194a.h16 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument
36 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in sharp_z0194a_set_symbol_rate()
37 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in sharp_z0194a_set_symbol_rate()
38 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in sharp_z0194a_set_symbol_rate()
Dbsbe1.h48 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument
62 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsbe1_set_symbol_rate()
63 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsbe1_set_symbol_rate()
64 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0); in alps_bsbe1_set_symbol_rate()
Dbsru6.h67 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument
94 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsru6_set_symbol_rate()
95 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsru6_set_symbol_rate()
96 stv0299_writereg(fe, 0x21, ratio & 0xf0); in alps_bsru6_set_symbol_rate()
Dtda8083.c136 u32 ratio; in tda8083_set_symbolrate() local
152 ratio = tmp / srate; in tda8083_set_symbolrate()
155 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
158 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
160 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); in tda8083_set_symbolrate()
163 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); in tda8083_set_symbolrate()
164 tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); in tda8083_set_symbolrate()
165 tda8083_writereg (state, 0x04, (ratio ) & 0xff); in tda8083_set_symbolrate()
Dcx24110.c243 u32 ratio; in cx24110_set_symbolrate() local
289 ratio=(tmp/BDRI); in cx24110_set_symbolrate()
292 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
295 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
298 ratio=(ratio<<1)+(tmp/BDRI); in cx24110_set_symbolrate()
302 dprintk("ratio= %08x\n", ratio); in cx24110_set_symbolrate()
304 cx24110_writereg(state, 0x1, (ratio>>16)&0xff); in cx24110_set_symbolrate()
305 cx24110_writereg(state, 0x2, (ratio>>8)&0xff); in cx24110_set_symbolrate()
306 cx24110_writereg(state, 0x3, (ratio)&0xff); in cx24110_set_symbolrate()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/
Dtransform.h268 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio);
269 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio);
270 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio);
271 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio);
272 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio);
273 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio);
274 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio);
275 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio);
/Linux-v4.19/drivers/media/platform/omap3isp/
Dispresizer.c310 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()
783 struct resizer_ratio *ratio) in resizer_calc_ratios() argument
808 ratio->vert = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) in resizer_calc_ratios()
810 if (ratio->vert > MID_RESIZE_VALUE) in resizer_calc_ratios()
811 ratio->vert = ((input->height - 7) * 256 + 255 - 32 - 64 * spv) in resizer_calc_ratios()
813 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios()
[all …]
/Linux-v4.19/tools/testing/selftests/memory-hotplug/
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
/Linux-v4.19/tools/power/cpupower/utils/
Dcpufreq-info.c213 unsigned int ratio; in get_boost_mode() local
224 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode()
225 if (ratio) in get_boost_mode()
227 ratio * bclk); in get_boost_mode()
229 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode()
230 if (ratio) in get_boost_mode()
232 ratio * bclk); in get_boost_mode()
234 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode()
235 if (ratio) in get_boost_mode()
237 ratio * bclk); in get_boost_mode()
[all …]
/Linux-v4.19/tools/power/x86/turbostat/
Dturbostat.c1982 unsigned int ratio; in dump_nhm_platform_info() local
1988 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
1990 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
1992 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
1994 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2007 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local
2013 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
2014 if (ratio) in dump_hsw_turbo_ratio_limits()
2016 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2018 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits()
[all …]
/Linux-v4.19/sound/soc/codecs/
Dwm8974.c390 unsigned int ratio = 2 * f_in / f_out; in wm8974_get_mclkdiv() local
392 if (ratio <= 2) { in wm8974_get_mclkdiv()
394 ratio = 2; in wm8974_get_mclkdiv()
395 } else if (ratio == 3) { in wm8974_get_mclkdiv()
397 } else if (ratio == 4) { in wm8974_get_mclkdiv()
399 } else if (ratio <= 6) { in wm8974_get_mclkdiv()
401 ratio = 6; in wm8974_get_mclkdiv()
402 } else if (ratio <= 8) { in wm8974_get_mclkdiv()
404 ratio = 8; in wm8974_get_mclkdiv()
405 } else if (ratio <= 12) { in wm8974_get_mclkdiv()
[all …]
/Linux-v4.19/arch/x86/kernel/
Dtsc_msr.c79 u32 lo, hi, ratio, freq; in cpu_khz_from_msr() local
91 ratio = (lo >> 8) & 0xff; in cpu_khz_from_msr()
94 ratio = (hi >> 8) & 0x1f; in cpu_khz_from_msr()
104 res = freq * ratio; in cpu_khz_from_msr()
/Linux-v4.19/drivers/clk/
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()
208 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in) in cs2000_ratio_to_rate() argument
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
[all …]
/Linux-v4.19/drivers/media/platform/vsp1/
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()
/Linux-v4.19/drivers/media/pci/mantis/
Dmantis_vp1033.c119 u32 srate, u32 ratio) in lgtdqcs001f_set_symbol_rate() argument
146 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in lgtdqcs001f_set_symbol_rate()
147 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in lgtdqcs001f_set_symbol_rate()
148 stv0299_writereg(fe, 0x21, ratio & 0xf0); in lgtdqcs001f_set_symbol_rate()
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-dv-timings.c357 struct v4l2_fract ratio = { 1, 1 }; in v4l2_dv_timings_aspect_ratio() local
361 return ratio; in v4l2_dv_timings_aspect_ratio()
363 return ratio; in v4l2_dv_timings_aspect_ratio()
365 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio()
366 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio()
368 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio()
369 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio()
370 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio()
371 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio()
372 return ratio; in v4l2_dv_timings_aspect_ratio()
[all …]
/Linux-v4.19/drivers/ide/
Dpdc202xx_new.c307 long pll_input, pll_output, ratio; in init_chipset_pdcnew() local
365 ratio = pll_output / (pll_input / 1000); in init_chipset_pdcnew()
366 if (ratio < 8600L) { /* 8.6x */ in init_chipset_pdcnew()
369 } else if (ratio < 12900L) { /* 12.9x */ in init_chipset_pdcnew()
372 } else if (ratio < 16100L) { /* 16.1x */ in init_chipset_pdcnew()
375 } else if (ratio < 64000L) { /* 64x */ in init_chipset_pdcnew()
380 name, pci_name(dev), ratio); in init_chipset_pdcnew()
384 f = (ratio * (r + 2)) / 1000 - 2; in init_chipset_pdcnew()
386 DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio); in init_chipset_pdcnew()
/Linux-v4.19/arch/arm/mach-iop13xx/include/mach/
Dtime.h55 unsigned long ratio = __raw_readl(IOP13XX_PROCESSOR_FREQ); in iop13xx_xsi_bus_ratio() local
56 ratio &= IOP13XX_XSI_FREQ_RATIO_MASK; in iop13xx_xsi_bus_ratio()
57 switch (ratio) { in iop13xx_xsi_bus_ratio()
/Linux-v4.19/drivers/clk/sirf/
Dclk-common.c356 unsigned ratio, wait, hold; in dmn_clk_round_rate() local
360 ratio = fin / rate; in dmn_clk_round_rate()
362 if (ratio < 2) in dmn_clk_round_rate()
363 ratio = 2; in dmn_clk_round_rate()
364 if (ratio > BIT(bits + 1)) in dmn_clk_round_rate()
365 ratio = BIT(bits + 1); in dmn_clk_round_rate()
367 wait = (ratio >> 1) - 1; in dmn_clk_round_rate()
368 hold = ratio - wait - 2; in dmn_clk_round_rate()
378 unsigned ratio, wait, hold, reg; in dmn_clk_set_rate() local
382 ratio = fin / rate; in dmn_clk_set_rate()
[all …]
/Linux-v4.19/sound/pci/ice1712/
Dmaya44.c604 unsigned int ratio, adc_ratio, val; in set_rate() local
609 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate()
612 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate()
615 ratio = WM8776_CLOCK_RATIO_256FS; in set_rate()
618 ratio = WM8776_CLOCK_RATIO_384FS; in set_rate()
621 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate()
624 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate()
627 ratio = WM8776_CLOCK_RATIO_768FS; in set_rate()
643 adc_ratio = ratio; in set_rate()
650 val |= ratio << 4; in set_rate()

12345678910