/linux-5.10/drivers/clk/mmp/ |
D | clk-frac.c | 2 * mmp factor clock operation source file 22 * numerator/denominator = Fin / (Fout * factor) 30 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local 34 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate() 37 rate *= factor->ftbl[i].den; in clk_factor_round_rate() 38 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate() 43 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate() 56 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_recalc_rate() local 57 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate() 61 val = readl_relaxed(factor->base); in clk_factor_recalc_rate() [all …]
|
/linux-5.10/drivers/clk/mediatek/ |
D | clk-mt8135.c | 20 FACTOR(CLK_TOP_DSI0_LNTC_DSICLK, "dsi0_lntc_dsiclk", "clk_null", 1, 1), 21 FACTOR(CLK_TOP_HDMITX_CLKDIG_CTS, "hdmitx_clkdig_cts", "clk_null", 1, 1), 22 FACTOR(CLK_TOP_CLKPH_MCK, "clkph_mck", "clk_null", 1, 1), 23 FACTOR(CLK_TOP_CPUM_TCK_IN, "cpum_tck_in", "clk_null", 1, 1), 27 FACTOR(CLK_TOP_MAINPLL_806M, "mainpll_806m", "mainpll", 1, 2), 28 FACTOR(CLK_TOP_MAINPLL_537P3M, "mainpll_537p3m", "mainpll", 1, 3), 29 FACTOR(CLK_TOP_MAINPLL_322P4M, "mainpll_322p4m", "mainpll", 1, 5), 30 FACTOR(CLK_TOP_MAINPLL_230P3M, "mainpll_230p3m", "mainpll", 1, 7), 32 FACTOR(CLK_TOP_UNIVPLL_624M, "univpll_624m", "univpll", 1, 2), 33 FACTOR(CLK_TOP_UNIVPLL_416M, "univpll_416m", "univpll", 1, 3), [all …]
|
D | clk-mt7629.c | 388 FACTOR(CLK_TOP_TO_USB3_SYS, "to_usb3_sys", "eth1pll", 1, 4), 389 FACTOR(CLK_TOP_P1_1MHZ, "p1_1mhz", "eth1pll", 1, 500), 390 FACTOR(CLK_TOP_4MHZ, "free_run_4mhz", "eth1pll", 1, 125), 391 FACTOR(CLK_TOP_P0_1MHZ, "p0_1mhz", "eth1pll", 1, 500), 392 FACTOR(CLK_TOP_ETH_500M, "eth_500m", "eth1pll", 1, 1), 393 FACTOR(CLK_TOP_TXCLK_SRC_PRE, "txclk_src_pre", "sgmiipll_d2", 1, 1), 394 FACTOR(CLK_TOP_RTC, "rtc", "clkxtal", 1, 1024), 395 FACTOR(CLK_TOP_PWM_QTR_26M, "pwm_qtr_26m", "clkxtal", 1, 1), 396 FACTOR(CLK_TOP_CPUM_TCK_IN, "cpum_tck_in", "cpum_tck", 1, 1), 397 FACTOR(CLK_TOP_TO_USB3_DA_TOP, "to_usb3_da_top", "clkxtal", 1, 1), [all …]
|
D | clk-mt6765.c | 82 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 1), 83 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2), 84 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2), 85 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, 4), 86 FACTOR(CLK_TOP_SYSPLL1_D8, "syspll1_d8", "syspll_d2", 1, 8), 87 FACTOR(CLK_TOP_SYSPLL1_D16, "syspll1_d16", "syspll_d2", 1, 16), 88 FACTOR(CLK_TOP_SYSPLL_D3, "syspll_d3", "mainpll", 1, 3), 89 FACTOR(CLK_TOP_SYSPLL2_D2, "syspll2_d2", "syspll_d3", 1, 2), 90 FACTOR(CLK_TOP_SYSPLL2_D4, "syspll2_d4", "syspll_d3", 1, 4), 91 FACTOR(CLK_TOP_SYSPLL2_D8, "syspll2_d8", "syspll_d3", 1, 8), [all …]
|
D | clk-mt2701.c | 58 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 1), 59 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2), 60 FACTOR(CLK_TOP_SYSPLL_D3, "syspll_d3", "mainpll", 1, 3), 61 FACTOR(CLK_TOP_SYSPLL_D5, "syspll_d5", "mainpll", 1, 5), 62 FACTOR(CLK_TOP_SYSPLL_D7, "syspll_d7", "mainpll", 1, 7), 63 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2), 64 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, 4), 65 FACTOR(CLK_TOP_SYSPLL1_D8, "syspll1_d8", "syspll_d2", 1, 8), 66 FACTOR(CLK_TOP_SYSPLL1_D16, "syspll1_d16", "syspll_d2", 1, 16), 67 FACTOR(CLK_TOP_SYSPLL2_D2, "syspll2_d2", "syspll_d3", 1, 2), [all …]
|
D | clk-mt6797.c | 26 FACTOR(CLK_TOP_SYSPLL_CK, "syspll_ck", "mainpll", 1, 1), 27 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2), 28 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2), 29 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, 4), 30 FACTOR(CLK_TOP_SYSPLL1_D8, "syspll1_d8", "syspll_d2", 1, 8), 31 FACTOR(CLK_TOP_SYSPLL1_D16, "syspll1_d16", "syspll_d2", 1, 16), 32 FACTOR(CLK_TOP_SYSPLL_D3, "syspll_d3", "mainpll", 1, 3), 33 FACTOR(CLK_TOP_SYSPLL_D3_D3, "syspll_d3_d3", "syspll_d3", 1, 3), 34 FACTOR(CLK_TOP_SYSPLL2_D2, "syspll2_d2", "syspll_d3", 1, 2), 35 FACTOR(CLK_TOP_SYSPLL2_D4, "syspll2_d4", "syspll_d3", 1, 4), [all …]
|
D | clk-mt2712.c | 39 FACTOR(CLK_TOP_SYS_26M, "sys_26m", "clk26m", 1, 41 FACTOR(CLK_TOP_CLK26M_D2, "clk26m_d2", "sys_26m", 1, 46 FACTOR(CLK_TOP_ARMCA35PLL, "armca35pll_ck", "armca35pll", 1, 48 FACTOR(CLK_TOP_ARMCA35PLL_600M, "armca35pll_600m", "armca35pll_ck", 1, 50 FACTOR(CLK_TOP_ARMCA35PLL_400M, "armca35pll_400m", "armca35pll_ck", 1, 52 FACTOR(CLK_TOP_ARMCA72PLL, "armca72pll_ck", "armca72pll", 1, 54 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 56 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "syspll_ck", 1, 58 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 60 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, [all …]
|
D | clk-mt8173.c | 36 FACTOR(CLK_TOP_ARMCA7PLL_754M, "armca7pll_754m", "armca7pll", 1, 2), 37 FACTOR(CLK_TOP_ARMCA7PLL_502M, "armca7pll_502m", "armca7pll", 1, 3), 39 FACTOR(CLK_TOP_MAIN_H546M, "main_h546m", "mainpll", 1, 2), 40 FACTOR(CLK_TOP_MAIN_H364M, "main_h364m", "mainpll", 1, 3), 41 FACTOR(CLK_TOP_MAIN_H218P4M, "main_h218p4m", "mainpll", 1, 5), 42 FACTOR(CLK_TOP_MAIN_H156M, "main_h156m", "mainpll", 1, 7), 44 FACTOR(CLK_TOP_TVDPLL_445P5M, "tvdpll_445p5m", "tvdpll", 1, 4), 45 FACTOR(CLK_TOP_TVDPLL_594M, "tvdpll_594m", "tvdpll", 1, 3), 47 FACTOR(CLK_TOP_UNIV_624M, "univ_624m", "univpll", 1, 2), 48 FACTOR(CLK_TOP_UNIV_416M, "univ_416m", "univpll", 1, 3), [all …]
|
D | clk-mt6779.c | 25 FACTOR(CLK_TOP_CLK13M, "clk13m", "clk26m", 1, 2), 26 FACTOR(CLK_TOP_F26M_CK_D2, "csw_f26m_ck_d2", "clk26m", 1, 2), 27 FACTOR(CLK_TOP_MAINPLL_CK, "mainpll_ck", "mainpll", 1, 1), 28 FACTOR(CLK_TOP_MAINPLL_D2, "mainpll_d2", "mainpll_ck", 1, 2), 29 FACTOR(CLK_TOP_MAINPLL_D2_D2, "mainpll_d2_d2", "mainpll_d2", 1, 2), 30 FACTOR(CLK_TOP_MAINPLL_D2_D4, "mainpll_d2_d4", "mainpll_d2", 1, 4), 31 FACTOR(CLK_TOP_MAINPLL_D2_D8, "mainpll_d2_d8", "mainpll_d2", 1, 8), 32 FACTOR(CLK_TOP_MAINPLL_D2_D16, "mainpll_d2_d16", "mainpll_d2", 1, 16), 33 FACTOR(CLK_TOP_MAINPLL_D3, "mainpll_d3", "mainpll", 1, 3), 34 FACTOR(CLK_TOP_MAINPLL_D3_D2, "mainpll_d3_d2", "mainpll_d3", 1, 2), [all …]
|
D | clk-mt7622.c | 388 FACTOR(CLK_TOP_TO_USB3_SYS, "to_usb3_sys", "eth1pll", 1, 4), 389 FACTOR(CLK_TOP_P1_1MHZ, "p1_1mhz", "eth1pll", 1, 500), 390 FACTOR(CLK_TOP_4MHZ, "free_run_4mhz", "eth1pll", 1, 125), 391 FACTOR(CLK_TOP_P0_1MHZ, "p0_1mhz", "eth1pll", 1, 500), 392 FACTOR(CLK_TOP_TXCLK_SRC_PRE, "txclk_src_pre", "sgmiipll_d2", 1, 1), 393 FACTOR(CLK_TOP_RTC, "rtc", "clkxtal", 1, 1024), 394 FACTOR(CLK_TOP_MEMPLL, "mempll", "clkxtal", 32, 1), 395 FACTOR(CLK_TOP_DMPLL, "dmpll_ck", "mempll", 1, 1), 396 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2), 397 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "mainpll", 1, 4), [all …]
|
D | clk-mt8183.c | 32 FACTOR(CLK_TOP_CLK13M, "clk13m", "clk26m", 1, 2), 36 FACTOR(CLK_TOP_F26M_CK_D2, "csw_f26m_ck_d2", "clk26m", 1, 38 FACTOR(CLK_TOP_SYSPLL_CK, "syspll_ck", "mainpll", 1, 40 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "syspll_ck", 1, 42 FACTOR(CLK_TOP_SYSPLL_D2_D2, "syspll_d2_d2", "syspll_d2", 1, 44 FACTOR(CLK_TOP_SYSPLL_D2_D4, "syspll_d2_d4", "syspll_d2", 1, 46 FACTOR(CLK_TOP_SYSPLL_D2_D8, "syspll_d2_d8", "syspll_d2", 1, 48 FACTOR(CLK_TOP_SYSPLL_D2_D16, "syspll_d2_d16", "syspll_d2", 1, 50 FACTOR(CLK_TOP_SYSPLL_D3, "syspll_d3", "mainpll", 1, 52 FACTOR(CLK_TOP_SYSPLL_D3_D2, "syspll_d3_d2", "syspll_d3", 1, [all …]
|
D | clk-mt8167.c | 32 FACTOR(CLK_TOP_DMPLL, "dmpll_ck", "mempll", 1, 1), 33 FACTOR(CLK_TOP_MAINPLL_D2, "mainpll_d2", "mainpll", 1, 2), 34 FACTOR(CLK_TOP_MAINPLL_D4, "mainpll_d4", "mainpll", 1, 4), 35 FACTOR(CLK_TOP_MAINPLL_D8, "mainpll_d8", "mainpll", 1, 8), 36 FACTOR(CLK_TOP_MAINPLL_D16, "mainpll_d16", "mainpll", 1, 16), 37 FACTOR(CLK_TOP_MAINPLL_D11, "mainpll_d11", "mainpll", 1, 11), 38 FACTOR(CLK_TOP_MAINPLL_D22, "mainpll_d22", "mainpll", 1, 22), 39 FACTOR(CLK_TOP_MAINPLL_D3, "mainpll_d3", "mainpll", 1, 3), 40 FACTOR(CLK_TOP_MAINPLL_D6, "mainpll_d6", "mainpll", 1, 6), 41 FACTOR(CLK_TOP_MAINPLL_D12, "mainpll_d12", "mainpll", 1, 12), [all …]
|
D | clk-mt8516.c | 28 FACTOR(CLK_TOP_DMPLL, "dmpll_ck", "mempll", 1, 1), 29 FACTOR(CLK_TOP_MAINPLL_D2, "mainpll_d2", "mainpll", 1, 2), 30 FACTOR(CLK_TOP_MAINPLL_D4, "mainpll_d4", "mainpll", 1, 4), 31 FACTOR(CLK_TOP_MAINPLL_D8, "mainpll_d8", "mainpll", 1, 8), 32 FACTOR(CLK_TOP_MAINPLL_D16, "mainpll_d16", "mainpll", 1, 16), 33 FACTOR(CLK_TOP_MAINPLL_D11, "mainpll_d11", "mainpll", 1, 11), 34 FACTOR(CLK_TOP_MAINPLL_D22, "mainpll_d22", "mainpll", 1, 22), 35 FACTOR(CLK_TOP_MAINPLL_D3, "mainpll_d3", "mainpll", 1, 3), 36 FACTOR(CLK_TOP_MAINPLL_D6, "mainpll_d6", "mainpll", 1, 6), 37 FACTOR(CLK_TOP_MAINPLL_D12, "mainpll_d12", "mainpll", 1, 12), [all …]
|
/linux-5.10/drivers/iio/afe/ |
D | iio-rescale.c | 154 u32 factor; in rescale_current_sense_amplifier_props() local 168 * Calculate the scaling factor, 1 / (gain * sense), or in rescale_current_sense_amplifier_props() 172 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props() 173 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props() 174 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props() 176 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props() 177 rescale->numerator /= factor; in rescale_current_sense_amplifier_props() 178 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props() 180 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props() 181 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props() [all …]
|
/linux-5.10/drivers/s390/block/ |
D | dasd_proc.c | 184 static void dasd_statistics_array(struct seq_file *m, unsigned int *array, int factor) in dasd_statistics_array() argument 189 seq_printf(m, "%7d ", array[i] / factor); in dasd_statistics_array() 201 int factor; in dasd_stats_proc_show() local 214 for (factor = 1; (prof->dasd_io_reqs / factor) > 9999999; in dasd_stats_proc_show() 215 factor *= 10); in dasd_stats_proc_show() 220 seq_printf(m, "Scale Factor is %d\n", factor); in dasd_stats_proc_show() 231 dasd_statistics_array(m, prof->dasd_io_secs, factor); in dasd_stats_proc_show() 233 dasd_statistics_array(m, prof->dasd_io_times, factor); in dasd_stats_proc_show() 235 dasd_statistics_array(m, prof->dasd_io_timps, factor); in dasd_stats_proc_show() 237 dasd_statistics_array(m, prof->dasd_io_time1, factor); in dasd_stats_proc_show() [all …]
|
/linux-5.10/drivers/clk/actions/ |
D | owl-factor.c | 3 // OWL factor clock driver 15 #include "owl-factor.h" 137 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_round_rate() local 138 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_round_rate() 140 return owl_factor_helper_round_rate(&factor->common, factor_hw, in owl_factor_round_rate() 177 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_recalc_rate() local 178 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_recalc_rate() 179 struct owl_clk_common *common = &factor->common; in owl_factor_recalc_rate() 209 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_set_rate() local 210 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_set_rate() [all …]
|
/linux-5.10/arch/arm/boot/dts/ |
D | omap36xx-omap3430es2plus-clocks.dtsi | 33 compatible = "fixed-factor-clock"; 49 compatible = "fixed-factor-clock"; 73 compatible = "fixed-factor-clock"; 81 compatible = "fixed-factor-clock"; 89 compatible = "fixed-factor-clock"; 97 compatible = "fixed-factor-clock"; 105 compatible = "fixed-factor-clock"; 113 compatible = "fixed-factor-clock"; 121 compatible = "fixed-factor-clock"; 129 compatible = "fixed-factor-clock"; [all …]
|
D | am33xx-clocks.dtsi | 18 compatible = "fixed-factor-clock"; 26 compatible = "fixed-factor-clock"; 34 compatible = "fixed-factor-clock"; 42 compatible = "fixed-factor-clock"; 50 compatible = "fixed-factor-clock"; 58 compatible = "fixed-factor-clock"; 66 compatible = "fixed-factor-clock"; 74 compatible = "fixed-factor-clock"; 82 compatible = "fixed-factor-clock"; 90 compatible = "fixed-factor-clock"; [all …]
|
D | am43xx-clocks.dtsi | 34 compatible = "fixed-factor-clock"; 42 compatible = "fixed-factor-clock"; 50 compatible = "fixed-factor-clock"; 58 compatible = "fixed-factor-clock"; 66 compatible = "fixed-factor-clock"; 74 compatible = "fixed-factor-clock"; 82 compatible = "fixed-factor-clock"; 90 compatible = "fixed-factor-clock"; 98 compatible = "fixed-factor-clock"; 106 compatible = "fixed-factor-clock"; [all …]
|
/linux-5.10/include/linux/platform_data/ |
D | apds990x.h | 23 * @cf1: clear channel factor 1 for raw to lux conversion 24 * @irf1: IR channel factor 1 for raw to lux conversion 25 * @cf2: clear channel factor 2 for raw to lux conversion 26 * @irf2: IR channel factor 2 for raw to lux conversion 27 * @df: device factor for conversion formulas 46 * @cf: chip factor data
|
/linux-5.10/drivers/crypto/caam/ |
D | caampkc.h | 28 * p the first prime factor of the RSA modulus n 29 * q the second prime factor of the RSA modulus n 34 * p the first prime factor of the RSA modulus n 35 * q the second prime factor of the RSA modulus n 54 * @p : RSA prime factor p of RSA modulus n 55 * @q : RSA prime factor q of RSA modulus n 66 * @p_sz : length in bytes of RSA prime factor p of RSA modulus n 67 * @q_sz : length in bytes of RSA prime factor q of RSA modulus n
|
/linux-5.10/arch/arm64/boot/dts/broadcom/stingray/ |
D | stingray-clock.dtsi | 43 compatible = "fixed-factor-clock"; 129 compatible = "fixed-factor-clock"; 137 compatible = "fixed-factor-clock"; 146 compatible = "fixed-factor-clock"; 154 compatible = "fixed-factor-clock"; 162 compatible = "fixed-factor-clock"; 170 compatible = "fixed-factor-clock"; 178 compatible = "fixed-factor-clock";
|
/linux-5.10/fs/btrfs/ |
D | misc.h | 35 static inline u64 div_factor(u64 num, int factor) in div_factor() argument 37 if (factor == 10) in div_factor() 39 num *= factor; in div_factor() 43 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument 45 if (factor == 100) in div_factor_fine() 47 num *= factor; in div_factor_fine()
|
/linux-5.10/Documentation/devicetree/bindings/iio/light/ |
D | us5182d.txt | 8 - upisemi,glass-coef: glass attenuation factor - compensation factor of 14 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4 17 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4 34 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
|
/linux-5.10/sound/soc/fsl/ |
D | fsl_audmix.h | 20 #define FSL_AUDMIX_ATSTPUP0 0x210 /* Attenuation step up factor */ 21 #define FSL_AUDMIX_ATSTPDN0 0x214 /* Attenuation step down factor */ 28 #define FSL_AUDMIX_ATSTPUP1 0x230 /* Attenuation step up factor */ 29 #define FSL_AUDMIX_ATSTPDN1 0x234 /* Attenuation step down factor */ 79 /* AUDMIX Attenuation Step Up Factor Register */ 82 /* AUDMIX Attenuation Step Down Factor Register */
|