/linux-master/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_dwb_scl.c | 530 static const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) argument 532 if (ratio.value < dc_fixpt_one.value) 534 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) 536 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) 542 static const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio) argument 544 if (ratio.value < dc_fixpt_one.value) 546 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) 548 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) 554 static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio) argument 556 if (ratio 566 wbscl_get_filter_6tap_16p(struct fixed31_32 ratio) argument 578 wbscl_get_filter_7tap_16p(struct fixed31_32 ratio) argument 590 wbscl_get_filter_8tap_16p(struct fixed31_32 ratio) argument 602 wbscl_get_filter_9tap_16p(struct fixed31_32 ratio) argument 613 wbscl_get_filter_10tap_16p(struct fixed31_32 ratio) argument 625 wbscl_get_filter_11tap_16p(struct fixed31_32 ratio) argument 637 wbscl_get_filter_12tap_16p(struct fixed31_32 ratio) argument 649 wbscl_get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) argument [all...] |
/linux-master/tools/perf/tests/ |
H A D | parse-metric.c | 125 static int compute_metric(const char *name, struct value *vals, double *ratio) argument 127 return __compute_metric(name, vals, name, ratio, NULL, NULL); 139 double ratio; local 147 compute_metric("IPC", vals, &ratio) == 0); 149 TEST_ASSERT_VAL("IPC failed, wrong ratio", 150 ratio == 1.5); 156 double ratio; local 166 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); 168 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", 169 ratio 175 double ratio; local 215 double ratio; local 242 double ratio; local 259 double ratio; local [all...] |
/linux-master/sound/soc/fsl/ |
H A D | fsl_utils.h | 28 struct clk *pll11k_clk, u64 ratio);
|
H A D | fsl_esai.c | 161 * @ratio: desired overall ratio for the paticipating dividers 165 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, argument 176 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { 177 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", 180 } else if (ratio % 2) { 185 ratio /= 2; 187 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; 189 /* Do not loop-search if PM (1 ~ 256) alone can serve the ratio */ 266 u32 ratio, ecr = 0; local 366 u32 sub, ratio = hck_rate / freq; local [all...] |
/linux-master/drivers/thermal/intel/ |
H A D | intel_powerclamp.c | 42 * we increment the confidence counter for the given target ratio. 48 * idle ratio. Similar to frequency modulation. 55 /* Idle ratio observed using package C-state counters */ 262 MODULE_PARM_DESC(max_idle, "maximum injected idle time to the total CPU time ratio in percent range:1-100"); 310 "\tpowerclamp controls idle ratio within this window. larger\n" 370 static unsigned int get_compensation(int ratio) argument 378 if (ratio == 1 && 379 cal_data[ratio].confidence >= CONFIDENCE_OK && 380 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && 381 cal_data[ratio [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | transform.h | 69 /* 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-master/drivers/media/dvb-frontends/ |
H A D | z0194a.h | 13 u32 srate, u32 ratio) 33 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); 34 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); 35 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); 12 sharp_z0194a_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
|
H A D | bsru6.h | 53 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument 80 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); 81 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); 82 stv0299_writereg(fe, 0x21, ratio & 0xf0);
|
H A D | bsbe1.h | 34 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) argument 48 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); 49 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); 50 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0);
|
H A D | ves1x93.c | 165 u32 ratio; local 184 ratio = tmp / FIN; 187 ratio = (ratio << 8) + tmp / FIN; 190 ratio = (ratio << 8) + tmp / FIN; 194 if (ratio < MUL/3) FNR = 0; 195 if (ratio < (MUL*11)/50) FNR = 1; 196 if (ratio < MUL/6) FNR = 2; 197 if (ratio < MU [all...] |
/linux-master/tools/testing/selftests/damon/ |
H A D | damos_apply_interval.py | 60 ratio = nr_tried_stats[1] / nr_tried_stats[0] 61 if ratio < 9: 63 (nr_tried_stats[1], nr_tried_stats[0], ratio))
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A 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-master/arch/x86/kernel/ |
H A D | tsc_msr.c | 44 * If MSR_PERF_STAT[31] is set, the maximum resolved bus ratio can be 168 u32 lo, hi, ratio, freq, tscref; local 182 ratio = (lo >> 8) & 0xff; 185 ratio = (hi >> 8) & 0x1f; 201 * Multiplying by ratio before the division has better 202 * accuracy than just calculating freq * ratio. 204 res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider); 207 res = freq * ratio;
|
/linux-master/tools/testing/selftests/memory-hotplug/ |
H A D | mem-on-off-test.sh | 148 # Run with default of ratio=2 for Kselftest run 149 ratio=2 165 ratio=$OPTARG 166 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then 181 echo "Test scope: $ratio% hotplug memory" 200 # Offline $ratio percent of hot-pluggable 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" 267 # Offline $ratio percen [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_cdclk.c | 1240 u8 ratio; member in struct:intel_cdclk_vals 1244 { .refclk = 19200, .cdclk = 144000, .ratio = 60 }, 1245 { .refclk = 19200, .cdclk = 288000, .ratio = 60 }, 1246 { .refclk = 19200, .cdclk = 384000, .ratio = 60 }, 1247 { .refclk = 19200, .cdclk = 576000, .ratio = 60 }, 1248 { .refclk = 19200, .cdclk = 624000, .ratio = 65 }, 1253 { .refclk = 19200, .cdclk = 79200, .ratio = 33 }, 1254 { .refclk = 19200, .cdclk = 158400, .ratio = 33 }, 1255 { .refclk = 19200, .cdclk = 316800, .ratio = 33 }, 1260 { .refclk = 19200, .cdclk = 172800, .ratio 1569 u32 val, ratio; local 1681 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local 1710 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local 1728 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local [all...] |
/linux-master/sound/soc/codecs/ |
H A D | cs42xx8.c | 182 unsigned int ratio[3]; member in struct:cs42xx8_ratios 266 u32 ratio[2]; local 278 ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; 279 ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; 301 /* Is the ratio[tx] valid ? */ 303 (cs42xx8_ratios[i].ratio[0] == ratio[tx] || 304 cs42xx8_ratios[i].ratio[1] == ratio[tx] || 305 cs42xx8_ratios[i].ratio[ [all...] |
/linux-master/tools/power/cpupower/utils/ |
H A D | cpufreq-info.c | 174 unsigned int ratio; local 185 ratio = (intel_turbo_ratio >> 24) & 0xFF; 186 if (ratio) 188 ratio * bclk); 190 ratio = (intel_turbo_ratio >> 16) & 0xFF; 191 if (ratio) 193 ratio * bclk); 195 ratio = (intel_turbo_ratio >> 8) & 0xFF; 196 if (ratio) 198 ratio * bcl [all...] |
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uds.c | 50 * 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) argument 56 if (ratio > 4096) { 60 mp = ratio / 4096; 63 return (input - 1) / mp * mp * 4096 / ratio + 1; 66 return (input - 1) * 4096 / ratio + 1; 84 * uds_passband_width - Return the passband filter width for a scaling ratio 85 * @ratio 87 uds_passband_width(unsigned int ratio) argument [all...] |
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispresizer.c | 52 * Constants for ratio calculation 304 * @ratio: Structure for ratio parameters. 309 const struct resizer_ratio *ratio) 317 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) 319 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) 324 if (ratio->horz > MID_RESIZE_VALUE) 330 if (ratio->vert > MID_RESIZE_VALUE) 682 * @ratio : return calculated ratios 686 * has a fixed number of phases that depend on the resizing ratio 308 resizer_set_ratio(struct isp_res_device *res, const struct resizer_ratio *ratio) argument 779 resizer_calc_ratios(struct isp_res_device *res, struct v4l2_rect *input, struct v4l2_mbus_framefmt *output, struct resizer_ratio *ratio) argument 1231 struct resizer_ratio ratio; local 1285 struct resizer_ratio ratio; local 1383 struct resizer_ratio ratio; local [all...] |
/linux-master/drivers/media/pci/mantis/ |
H A D | mantis_vp1033.c | 107 u32 srate, u32 ratio) 134 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); 135 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); 136 stv0299_writereg(fe, 0x21, ratio & 0xf0); 106 lgtdqcs001f_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
|
/linux-master/drivers/video/backlight/ |
H A D | ktd253-backlight.c | 21 /* Current ratio is n/32 from 1/32 to 32/32 */ 35 u16 ratio; member in struct:ktd253_backlight 80 u16 current_ratio = ktd253->ratio; 83 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); 98 ktd253->ratio = 0; 131 ktd253->ratio = current_ratio; 133 dev_dbg(ktd253->dev, "new ratio set to %d/32\n", target_ratio);
|
/linux-master/tools/perf/util/ |
H A D | stat-shadow.c | 196 double ratio = numerator / denominator * 100.0; local 197 const char *color = get_ratio_color(color_ratios, ratio); 199 out->print_metric(config, out->ctx, color, "%7.2f%%", unit, ratio); 335 double ratio = cycles / nsecs; local 337 out->print_metric(config, out->ctx, NULL, "%8.3f", "GHz", ratio); 476 double ratio, scale, threshold; local 495 if (expr__parse(&ratio, pctx, metric_expr) == 0) { 509 ratio *= scale; 519 metric_bf, ratio); 525 ratio); 544 double ratio = 0.0; local 699 double ratio = convert_unit_double(1000000000.0 * avg / nsecs, local [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 32 int ratio; local 100 ratio = div_u64((byte_cycles * 100), word_cycles); 103 ratio / 100, 104 ratio % 100,
|
/linux-master/tools/thermal/tmon/ |
H A D | tmon.h | 99 void (*set_ratio)(unsigned long ratio); 100 unsigned long (*get_ratio)(unsigned long ratio);
|
/linux-master/arch/arm64/kernel/ |
H A D | topology.c | 122 u64 ratio, ref_rate = arch_timer_get_rate(); local 131 * Pre-compute the fixed ratio between the frequency of the constant 143 ratio = ref_rate << (2 * SCHED_CAPACITY_SHIFT); 144 ratio = div64_u64(ratio, max_rate); 145 if (!ratio) { 150 WRITE_ONCE(per_cpu(arch_max_freq_scale, cpu), (unsigned long)ratio);
|