/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_scl_filters.c | 1341 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) in get_filter_3tap_16p() argument 1343 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() 1353 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) in get_filter_3tap_64p() argument 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() 1359 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_64p() 1365 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) in get_filter_4tap_16p() argument 1367 if (ratio.value < dc_fixpt_one.value) in get_filter_4tap_16p() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dwb_scl.c | 530 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.10/tools/perf/tests/ |
D | parse-metric.c | 192 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 194 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 206 double ratio; in test_ipc() local 214 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() 217 ratio == 1.5); in test_ipc() 223 double ratio; in test_frontend() local 233 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend() 236 ratio == 0.45); in test_frontend() 242 double ratio; in test_cache_miss_cycles() local 251 compute_metric("cache_miss_cycles", vals, &ratio) == 0); in test_cache_miss_cycles() [all …]
|
/Linux-v5.10/tools/perf/util/ |
D | stat-shadow.c | 302 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument 311 if (ratio > grc_table[type][0]) in get_ratio_color() 313 else if (ratio > grc_table[type][1]) in get_ratio_color() 315 else if (ratio > grc_table[type][2]) in get_ratio_color() 454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local 461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend() 463 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend() 465 if (ratio) in print_stalled_cycles_frontend() 467 ratio); in print_stalled_cycles_frontend() 478 double total, ratio = 0.0; in print_stalled_cycles_backend() local [all …]
|
/Linux-v5.10/drivers/thermal/intel/ |
D | intel_powerclamp.c | 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() 272 cal_data[ratio + 2].steady_comp) / 3; in get_compensation() 273 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation() 274 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation() [all …]
|
/Linux-v5.10/sound/soc/codecs/ |
D | cs42xx8.c | 183 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() 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() [all …]
|
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 <= 12) { in wm8974_get_mclkdiv() [all …]
|
/Linux-v5.10/drivers/media/dvb-frontends/ |
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 …]
|
D | z0194a.h | 13 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()
|
D | bsbe1.h | 34 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()
|
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()
|
D | bsru6.h | 53 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()
|
D | cx24110.c | 230 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()
|
/Linux-v5.10/sound/soc/fsl/ |
D | fsl_esai.c | 170 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument 181 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal() 185 } else if (ratio % 2) { in fsl_esai_divisor_cal() 190 ratio /= 2; in fsl_esai_divisor_cal() 192 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal() 195 if (ratio <= 256) { in fsl_esai_divisor_cal() 196 pm = ratio; in fsl_esai_divisor_cal() 210 if (prod == ratio) in fsl_esai_divisor_cal() 212 else if (prod / ratio == 1) in fsl_esai_divisor_cal() 213 sub = prod - ratio; in fsl_esai_divisor_cal() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | transform.h | 270 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio); 271 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio); 272 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio); 273 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio); 274 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio); 275 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio); 276 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio); 277 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio);
|
/Linux-v5.10/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 307 const struct resizer_ratio *ratio) in resizer_set_ratio() argument 315 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio() 317 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) in resizer_set_ratio() 322 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio() 328 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio() 780 struct resizer_ratio *ratio) in resizer_calc_ratios() argument 805 ratio->vert = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) in resizer_calc_ratios() 807 if (ratio->vert > MID_RESIZE_VALUE) in resizer_calc_ratios() 808 ratio->vert = ((input->height - 7) * 256 + 255 - 32 - 64 * spv) in resizer_calc_ratios() 810 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios() [all …]
|
/Linux-v5.10/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 140 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-v5.10/tools/power/x86/turbostat/ |
D | turbostat.c | 2185 unsigned int ratio; in dump_nhm_platform_info() local 2191 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info() 2193 ratio, bclk, ratio * bclk); in dump_nhm_platform_info() 2195 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info() 2197 ratio, bclk, ratio * bclk); in dump_nhm_platform_info() 2210 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local 2216 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits() 2217 if (ratio) in dump_hsw_turbo_ratio_limits() 2219 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits() 2221 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits() [all …]
|
/Linux-v5.10/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 209 unsigned int ratio; in get_boost_mode_x86() local 220 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode_x86() 221 if (ratio) in get_boost_mode_x86() 223 ratio * bclk); in get_boost_mode_x86() 225 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode_x86() 226 if (ratio) in get_boost_mode_x86() 228 ratio * bclk); in get_boost_mode_x86() 230 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode_x86() 231 if (ratio) in get_boost_mode_x86() 233 ratio * bclk); in get_boost_mode_x86() [all …]
|
/Linux-v5.10/arch/x86/kernel/ |
D | tsc_msr.c | 168 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-v5.10/drivers/video/backlight/ |
D | ktd253-backlight.c | 34 u16 ratio; member 42 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() 60 ktd253->ratio = 0; in ktd253_backlight_update_status() 96 ktd253->ratio = current_ratio; in ktd253_backlight_update_status() 142 ktd253->ratio = KTD253_MAX_RATIO; in ktd253_backlight_probe() 144 ktd253->ratio = 0; in ktd253_backlight_probe()
|
/Linux-v5.10/drivers/clk/ |
D | clk-cs2000-cp.c | 194 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-v5.10/tools/testing/selftests/net/forwarding/ |
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-v5.10/arch/arm64/kernel/ |
D | topology.c | 147 u64 max_freq_hz, ratio; in validate_cpu_freq_invariance_counters() local 180 ratio = (u64)arch_timer_get_rate() << (2 * SCHED_CAPACITY_SHIFT); in validate_cpu_freq_invariance_counters() 181 ratio = div64_u64(ratio, max_freq_hz); in validate_cpu_freq_invariance_counters() 182 if (!ratio) { in validate_cpu_freq_invariance_counters() 187 per_cpu(arch_max_freq_scale, cpu) = (unsigned long)ratio; in validate_cpu_freq_invariance_counters()
|
/Linux-v5.10/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 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() 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()
|