/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/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/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/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/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/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 …]
|
H A 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()
|
/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/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/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/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/Documentation/devicetree/bindings/iio/adc/ |
H A D | ti,tsc2046.yaml | 56 oversampling-ratio: true 91 oversampling-ratio = <5>; 99 oversampling-ratio = <5>; 104 oversampling-ratio = <5>; 109 oversampling-ratio = <5>;
|
/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/Documentation/devicetree/bindings/rng/ |
H A D | arm-cctrng.yaml | 27 arm,rosc-ratio: 30 Sampling ratio values for these 4 ring oscillators. (from calibration) 41 - arm,rosc-ratio 51 arm,rosc-ratio = <5000 1000 500 0>;
|
/linux/drivers/staging/fbtft/ |
H A D | fb_uc1611.c | 26 * LCD voltage is a combination of ratio, gain, pot and temp 28 * V_LCD = V_BIAS * ratio 30 * C_V0 and C_PM depend on ratio and gain 34 /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */ 35 static unsigned int ratio = 2; variable 36 module_param(ratio, uint, 0000); 37 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); 57 /* PC[3:2] -> V_LCD: 0, 1, 3 -> ext., int. with ratio = 5, int. standard */ 83 /* Set bias ratio */ in init_display() 84 write_reg(par, 0xE8 | (ratio & 0x03)); in init_display()
|
/linux/drivers/video/backlight/ |
H A D | ktd253-backlight.c | 20 /* Current ratio is n/32 from 1/32 to 32/32 */ 34 u16 ratio; member 79 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() 82 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status() 97 ktd253->ratio = 0; in ktd253_backlight_update_status() 130 ktd253->ratio = current_ratio; in ktd253_backlight_update_status() 132 dev_dbg(ktd253->dev, "new ratio set to %d/32\n", target_ratio); in ktd253_backlight_update_status()
|
/linux/sound/soc/codecs/ |
H A D | nau8325.c | 346 int i, mclk_src, ratio; in nau8325_clksrc_n2() local 348 ratio = NAU8325_MCLK_FS_RATIO_NUM; in nau8325_clksrc_n2() 352 ratio = NAU8325_MCLK_FS_RATIO_256; in nau8325_clksrc_n2() 355 ratio = NAU8325_MCLK_FS_RATIO_400; in nau8325_clksrc_n2() 358 ratio = NAU8325_MCLK_FS_RATIO_500; in nau8325_clksrc_n2() 362 if (ratio != NAU8325_MCLK_FS_RATIO_NUM) in nau8325_clksrc_n2() 365 return ratio; in nau8325_clksrc_n2() 389 int i, j, mclk, mclk_max, ratio, ratio_sel, n2_max; in nau8325_clksrc_choose() local 402 ratio = nau8325_clksrc_n2(nau8325, *srate_table, nau8325->mclk, n2_sel); in nau8325_clksrc_choose() 403 if (ratio != NAU8325_MCLK_FS_RATIO_NUM) { in nau8325_clksrc_choose() [all …]
|
H A D | arizona.c | 2057 int ratio; member 2143 return fll_fratios[i].ratio; in arizona_find_fratio() 2155 int init_ratio, ratio; in arizona_calc_fratio() local 2198 arizona_fll_dbg(fll, "pseudo: initial ratio=%u fref=%u refdiv=%u\n", in arizona_calc_fratio() 2205 for (ratio = init_ratio; ratio > 0; ratio--) { in arizona_calc_fratio() 2206 if (target % (ratio * Fref)) { in arizona_calc_fratio() 2208 cfg->fratio = ratio - 1; in arizona_calc_fratio() 2210 "pseudo: found fref=%u refdiv=%d(%d) ratio=%d\n", in arizona_calc_fratio() 2211 Fref, refdiv, div, ratio); in arizona_calc_fratio() 2212 return ratio; in arizona_calc_fratio() [all …]
|
/linux/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 39 int ratio; in check_unaligned_access() local 107 ratio = div_u64((byte_cycles * 100), word_cycles); in check_unaligned_access() 108 …pr_info("cpu%d: Ratio of byte access time to unaligned word access is %d.%02d, unaligned accesses … in check_unaligned_access() 110 ratio / 100, in check_unaligned_access() 111 ratio % 100, in check_unaligned_access() 287 int ratio; in check_vector_unaligned_access() local 365 ratio = div_u64((byte_cycles * 100), word_cycles); in check_vector_unaligned_access() 366 …pr_info("cpu%d: Ratio of vector byte access time to vector unaligned word access is %d.%02d, unali… in check_vector_unaligned_access() 368 ratio / 100, in check_vector_unaligned_access() 369 ratio % 100, in check_vector_unaligned_access()
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-skov-cpu-revc.dtsi | 39 oversampling-ratio = <5>; 45 oversampling-ratio = <5>; 51 oversampling-ratio = <5>; 57 oversampling-ratio = <5>;
|
/linux/drivers/gpu/drm/display/ |
H A D | drm_scdc_helper.c | 214 * drm_scdc_set_high_tmds_clock_ratio - set TMDS clock ratio 216 * @set: ret or reset the high clock ratio 219 * TMDS clock ratio calculations go like this: 235 * sets TMDS clock ratio to 1/40 when set = 1 237 * sets TMDS clock ratio to 1/10 when set = 0 264 "[CONNECTOR:%d:%s] Failed to set TMDS clock ratio: %d\n", in drm_scdc_set_high_tmds_clock_ratio() 271 * 100ms after writing the TMDS config for clock ratio. Lets allow a in drm_scdc_set_high_tmds_clock_ratio()
|
/linux/Documentation/scheduler/ |
H A D | schedutil.rst | 51 Dynamic Voltage and Frequency Scaling (DVFS) ratio and one microarch ratio. 54 compute the ratio as:: 61 hardware counters (Intel APERF/MPERF, ARMv8.4-AMU) to provide us this ratio. 78 r_cpu is determined as the ratio of highest performance level of the current 89 - arch/x86/kernel/smpboot.c:"APERF/MPERF frequency ratio computation."
|
/linux/net/dccp/ccids/ |
H A D | ccid2.c |
|
/linux/drivers/thermal/ |
H A D | cpuidle_cooling.c | 36 * which is fixed. If we reach 100% of idle injection ratio, that 37 * means the running duration is zero. If we have a 50% ratio 43 * running = idle x ((100 / ratio) - 1) 47 * running = (idle x 100) / ratio - idle 68 * The function always returns 100 as the injection ratio. It is 83 * injection ratio means no idle injection at all and 50% in cpuidle_cooling_get_max_state()
|
/linux/include/trace/events/ |
H A D | mptcp.h | 30 __field(u64, ratio) 54 __entry->ratio = div_u64((u64)ssk->sk_wmem_queued << 32, __entry->pace); 56 __entry->ratio = 0; 59 TP_printk("active=%d free=%d snd_wnd=%u pace=%u backup=%u ratio=%llu", 62 __entry->backup, __entry->ratio)
|