/linux/drivers/gpu/drm/amd/display/dc/spl/ |
H A D | dc_spl_scl_easf_filters.h | 17 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); 20 uint16_t *spl_dscl_get_easf_filter_coeffs_64p(int taps, 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); [all …]
|
H A D | dc_spl_scl_filters.h | 10 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);
|
/linux/tools/perf/tests/ |
H A D | parse-metric.c | 125 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 127 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 139 double ratio; in test_ipc() local 147 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() 149 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc() 150 ratio == 1.5); in test_ipc() 156 double ratio; in test_frontend() local 166 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend() 168 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend() 169 ratio == 0.45); in test_frontend() [all …]
|
/linux/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… 310 "\tpowerclamp controls idle ratio within this window. larger\n" 370 static unsigned int get_compensation(int ratio) in get_compensation() argument 378 if (ratio == 1 && in get_compensation() 379 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation() 380 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation() 381 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation() [all …]
|
/linux/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) 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 static 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/drivers/gpu/drm/i915/display/ |
H A D | intel_cdclk.c | 76 * reference clock and a ratio parameter. 1272 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 }, 1286 { .refclk = 19200, .cdclk = 158400, .ratio = 33 }, 1287 { .refclk = 19200, .cdclk = 316800, .ratio = 33 }, [all …]
|
/linux/sound/soc/codecs/ |
H A D | cs42xx8.c | 182 unsigned int ratio[3]; member 266 u32 ratio[2]; in cs42xx8_hw_params() local 278 ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; in cs42xx8_hw_params() 279 ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; in cs42xx8_hw_params() 301 /* Is the ratio[tx] valid ? */ in cs42xx8_hw_params() 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() [all …]
|
H A D | cs4270.c | 153 * struct cs4270_mode_ratios - clock ratio tables 154 * @ratio: the ratio of MCLK to the sample rate 156 * this ratio 157 * @mclk: the Ratio Select bits to set in the Mode Control register for this 158 * ratio 173 * In situations where a single ratio is represented by multiple speed 174 * modes, we favor the slowest speed. E.g, for a ratio of 128, we pick 185 unsigned int ratio; member 232 * by the CS4270. The ratio of MCLK / Fs must be equal to one of nine 328 unsigned int ratio; in cs4270_hw_params() local [all …]
|
/linux/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) in resizer_set_ratio() argument 317 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio() 319 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) in resizer_set_ratio() 324 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio() 330 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio() 682 * @ratio : return calculated ratios 686 * has a fixed number of phases that depend on the resizing ratio. As the ratio 690 * The input/output/ratio relationship is given by the OMAP34xx TRM: [all …]
|
/linux/sound/soc/fsl/ |
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, in fsl_esai_divisor_cal() argument 176 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal() 177 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", in fsl_esai_divisor_cal() 180 } else if (ratio % 2) { in fsl_esai_divisor_cal() 185 ratio /= 2; in fsl_esai_divisor_cal() 187 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal() 189 /* Do not loop-search if PM (1 ~ 256) alone can serve the ratio */ in fsl_esai_divisor_cal() 190 if (ratio <= 256) { in fsl_esai_divisor_cal() 191 pm = ratio; in fsl_esai_divisor_cal() [all …]
|
/linux/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 percent of hot-pluggable memory 271 if [ $((RANDOM % 100)) -lt $ratio ]; then [all …]
|
/linux/Documentation/admin-guide/thermal/ |
H A D | intel_powerclamp.rst | 74 ratio (based on power reduction), and the error is the difference 75 between the actual package level C-state residency ratio and the target idle 76 ratio. 82 clamping actions of controlled duty ratio and duration. Each per-CPU 129 instantly as given input (target idle ratio). After injection, 152 a) determine the effective range of idle injection ratio 153 b) determine the amount of compensation needed at each target ratio 155 Compensation to each target ratio consists of two parts: 165 additional idle ratio can be added to quiet interrupts, by 215 we have a simple algorithm to double the injection ratio. A possible [all …]
|
/linux/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/drivers/media/dvb-frontends/ |
H A 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 …]
|
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/ |
H A D | metrics.json | 12 …"BriefDescription": "This metric measures the ratio of branches mispredicted to the total number o… 47 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o… 82 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o… 89 …"BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the t… 103 …"BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the tot… 117 …"BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed t… 131 …"BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to … 145 …"BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total … 159 …"BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the … 173 …"BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the c… [all …]
|
/linux/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) 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() 84 * uds_passband_width - Return the passband filter width for a scaling ratio 85 * @ratio: scaling ratio in U4.12 fixed-point format 87 static unsigned int uds_passband_width(unsigned int ratio) in uds_passband_width() argument [all …]
|
/linux/Documentation/mm/ |
H A D | zsmalloc.rst | 57 the number of zspages with usage ratio less than 10% (see below) 59 the number of zspages with usage ratio between 10% and 20% 61 the number of zspages with usage ratio between 20% and 30% 63 the number of zspages with usage ratio between 30% and 40% 65 the number of zspages with usage ratio between 40% and 50% 67 the number of zspages with usage ratio between 50% and 60% 69 the number of zspages with usage ratio between 60% and 70% 71 the number of zspages with usage ratio between 70% and 80% 73 the number of zspages with usage ratio between 80% and 90% 75 the number of zspages with usage ratio between 90% and 99% [all …]
|
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/ |
H A D | metrics.json | 19 …"BriefDescription": "This metric measures the ratio of branches mispredicted to the total number o… 54 …"BriefDescription": "This metric measures the ratio of data TLB Walks to the total number of data … 93 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o… 100 …"BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the t… 114 …"BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the tot… 128 …"BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed t… 142 …"BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to … 156 …"BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total … 170 …"BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the … 184 …"BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the c… [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | transform.h | 70 /* Active format aspect ratio */ 252 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/clk/ |
H A D | clk-cs2000-cp.c | 202 u64 ratio; in cs2000_rate_to_ratio() local 206 * ratio = rate_out / rate_in * 2^multiplier in cs2000_rate_to_ratio() 211 ratio = (u64)rate_out << multiplier; in cs2000_rate_to_ratio() 212 do_div(ratio, rate_in); in cs2000_rate_to_ratio() 214 return ratio; in cs2000_rate_to_ratio() 217 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in, bool lf_ratio) in cs2000_ratio_to_rate() argument 223 * ratio = rate_out / rate_in * 2^multiplier in cs2000_ratio_to_rate() 229 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate() 301 u32 ratio; in cs2000_recalc_rate() local 303 ratio = cs2000_ratio_get(priv, ch); in cs2000_recalc_rate() [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 380 struct v4l2_fract ratio = { 1, 1 }; in v4l2_dv_timings_aspect_ratio() local 384 return ratio; in v4l2_dv_timings_aspect_ratio() 386 return ratio; in v4l2_dv_timings_aspect_ratio() 388 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; in v4l2_dv_timings_aspect_ratio() 389 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; in v4l2_dv_timings_aspect_ratio() 391 rational_best_approximation(ratio.numerator, ratio.denominator, in v4l2_dv_timings_aspect_ratio() 392 ratio.numerator, ratio.denominator, &n, &d); in v4l2_dv_timings_aspect_ratio() 393 ratio.numerator = n; in v4l2_dv_timings_aspect_ratio() 394 ratio.denominator = d; in v4l2_dv_timings_aspect_ratio() 395 return ratio; in v4l2_dv_timings_aspect_ratio() [all …]
|
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/ |
H A D | metrics.json | 20 …"BriefDescription": "This metric measures the ratio of branches mispredicted to the total number o… 55 …"BriefDescription": "This metric measures the ratio of data TLB Walks to the total number of data … 94 …"BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number o… 101 …"BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the t… 115 …"BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the tot… 129 …"BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed t… 143 …"BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to … 157 …"BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total … 171 …"BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the … 185 …"BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the c… [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-firmware-opal-psr | 4 Description: Power-Shift-Ratio directory for Powernv P9 servers 6 Power-Shift-Ratio allows to provide hints the firmware 16 Power-Shift-Ratio between CPU and GPU for a given chip 17 with chip-id X. This file gives the ratio (0-100)
|
/linux/arch/arm/mach-omap2/ |
H A D | opp2xxx.h | 13 * these combinations is via the 'ratio's' which the clocks operate with 14 * respect to each other. These ratio sets are for a given voltage/DPLL 15 * setting. All configurations can be described by a DPLL setting and a ratio 16 * There are 3 ratio sets for the 2430 and X ratio sets for 2420. 36 * Key dividers which make up a PRCM set. Ratio's for a PRCM are mandated. 59 /* Core fields for cm_clksel, not ratio governed */ 68 /* 2430 Ratio's, 2430-Ratio Config 1 */ 85 /* 2430-Ratio Config 2 */ 102 /* 2430-Ratio Bootm (BYPASS) */ 119 /* 2420 Ratio Equivalents */ [all …]
|
/linux/tools/perf/util/ |
H A D | stat-shadow.c | 203 double ratio = numerator / denominator * 100.0; in print_ratio() local 204 const char *color = get_ratio_color(color_ratios, ratio); in print_ratio() 206 out->print_metric(config, out->ctx, color, "%7.2f%%", unit, ratio); in print_ratio() 342 double ratio = cycles / nsecs; in print_cycles() local 344 out->print_metric(config, out->ctx, NULL, "%8.3f", "GHz", ratio); in print_cycles() 483 double ratio, scale, threshold; in generic_metric() local 502 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric() 516 ratio *= scale; in generic_metric() 526 metric_bf, ratio); in generic_metric() 532 ratio); in generic_metric() [all …]
|