Home
last modified time | relevance | path

Searched full:ratio (Results 1 – 25 of 1699) sorted by relevance

12345678910>>...68

/kernel/linux/linux-6.6/tools/perf/tests/
Dparse-metric.c125 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 …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dparse-metric.c192 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()
216 TEST_ASSERT_VAL("IPC failed, wrong ratio", 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()
235 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
236 ratio == 0.45); in test_frontend()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dstat-shadow.c302 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 …]
/kernel/linux/linux-6.6/drivers/thermal/intel/
Dintel_powerclamp.c42 * we increment the confidence counter for the given target ratio.
48 * idle ratio. Similar to frequency modulation.
56 /* Idle ratio observed using package C-state counters */
263 MODULE_PARM_DESC(max_idle, "maximum injected idle time to the total CPU time ratio in percent range…
311 "\tpowerclamp controls idle ratio within this window. larger\n"
399 static unsigned int get_compensation(int ratio) in get_compensation() argument
407 if (ratio == 1 && in get_compensation()
408 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
409 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
410 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/intel/
Dintel_powerclamp.c48 * we increment the confidence counter for the given target ratio.
54 * idle ratio. Similar to frequency modulation.
174 "\tpowerclamp controls idle ratio within this window. larger\n"
262 static unsigned int get_compensation(int ratio) in get_compensation() argument
270 if (ratio == 1 && in get_compensation()
271 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
272 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
273 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
274 comp = (cal_data[ratio].steady_comp + in get_compensation()
275 cal_data[ratio + 1].steady_comp + in get_compensation()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c530 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c530 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 …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dcs42xx8.c183 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()
302 /* Is the ratio[tx] valid ? */ 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()
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dcs42xx8.c182 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh148 # 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
Dintel_cdclk.c1230 u8 ratio; member
1234 { .refclk = 19200, .cdclk = 144000, .divider = 8, .ratio = 60 },
1235 { .refclk = 19200, .cdclk = 288000, .divider = 4, .ratio = 60 },
1236 { .refclk = 19200, .cdclk = 384000, .divider = 3, .ratio = 60 },
1237 { .refclk = 19200, .cdclk = 576000, .divider = 2, .ratio = 60 },
1238 { .refclk = 19200, .cdclk = 624000, .divider = 2, .ratio = 65 },
1243 { .refclk = 19200, .cdclk = 79200, .divider = 8, .ratio = 33 },
1244 { .refclk = 19200, .cdclk = 158400, .divider = 4, .ratio = 33 },
1245 { .refclk = 19200, .cdclk = 316800, .divider = 2, .ratio = 33 },
1250 { .refclk = 19200, .cdclk = 172800, .divider = 2, .ratio = 18 },
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh139 # Run with default of ratio=2 for Kselftest run
140 ratio=2
156 ratio=$OPTARG
157 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
172 echo "Test scope: $ratio% hotplug memory"
191 # Offline $ratio percent of hot-pluggable 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"
255 # Offline $ratio percent of hot-pluggable memory
259 if [ $((RANDOM % 100)) -lt $ratio ]; then
/kernel/linux/linux-5.10/drivers/clk/
Dclk-cs2000-cp.c135 /* FIXME: for Static ratio mode */ in cs2000_enable_dev_config()
194 u64 ratio; in cs2000_rate_to_ratio() local
197 * ratio = rate_out / rate_in * 2^20 in cs2000_rate_to_ratio()
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
213 * ratio = rate_out / rate_in * 2^20 in cs2000_ratio_to_rate()
219 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
273 * this driver supports static ratio mode only at this point. in cs2000_ratio_select()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
Dispresizer.c52 * Constants for ratio calculation
302 * @ratio: Structure for ratio parameters.
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()
680 * @ratio : return calculated ratios
684 * has a fixed number of phases that depend on the resizing ratio. As the ratio
688 * The input/output/ratio relationship is given by the OMAP34xx TRM:
[all …]
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/
Dispresizer.c52 * Constants for ratio calculation
305 * @ratio: Structure for ratio parameters.
310 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()
683 * @ratio : return calculated ratios
687 * has a fixed number of phases that depend on the resizing ratio. As the ratio
691 * The input/output/ratio relationship is given by the OMAP34xx TRM:
[all …]
/kernel/linux/linux-6.6/sound/soc/fsl/
Dfsl_esai.c161 * @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 …]
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_esai.c166 * @ratio: desired overall ratio for the paticipating dividers
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()
182 dev_err(dai->dev, "the ratio is out of range (2 ~ %d)\n", 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()
194 /* Do not loop-search if PM (1 ~ 256) alone can serve the ratio */ in fsl_esai_divisor_cal()
195 if (ratio <= 256) { in fsl_esai_divisor_cal()
196 pm = ratio; in fsl_esai_divisor_cal()
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/thermal/
Dintel_powerclamp.rst72 ratio (based on power reduction), and the error is the difference
73 between the actual package level C-state residency ratio and the target idle
74 ratio.
80 clamping actions of controlled duty ratio and duration. Each per-CPU
127 instantly as given input (target idle ratio). After injection,
150 a) determine the effective range of idle injection ratio
151 b) determine the amount of compensation needed at each target ratio
153 Compensation to each target ratio consists of two parts:
161 additional idle ratio can be added to quiet interrupts, by
211 we have a simple algorithm to double the injection ratio. A possible
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
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"
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
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"
/kernel/linux/linux-6.6/Documentation/admin-guide/thermal/
Dintel_powerclamp.rst74 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 …]
/kernel/linux/linux-5.10/drivers/video/backlight/
Dktd253-backlight.c21 /* Current ratio is n/32 from 1/32 to 32/32 */
35 u16 ratio; member
80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status()
83 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
98 ktd253->ratio = 0; in ktd253_backlight_update_status()
131 ktd253->ratio = current_ratio; in ktd253_backlight_update_status()
133 dev_dbg(ktd253->dev, "new ratio set to %d/32\n", target_ratio); in ktd253_backlight_update_status()
176 /* This will be the default ratio when the KTD253 is enabled */ in ktd253_backlight_probe()
177 ktd253->ratio = KTD253_MAX_RATIO; in ktd253_backlight_probe()
179 ktd253->ratio = 0; in ktd253_backlight_probe()
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/
Dmetrics.json12 …"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 …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
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()
199 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
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()
199 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]

12345678910>>...68