Home
last modified time | relevance | path

Searched refs:factors (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-factors.c16 #include "clk-factors.h"
46 struct clk_factors *factors = to_clk_factors(hw); in clk_factors_recalc_rate() local
47 const struct clk_factors_config *config = factors->config; in clk_factors_recalc_rate()
50 reg = readl(factors->reg); in clk_factors_recalc_rate()
62 if (factors->recalc) { in clk_factors_recalc_rate()
72 if (factors->mux) in clk_factors_recalc_rate()
74 (reg >> factors->mux->shift) & in clk_factors_recalc_rate()
75 factors->mux->mask; in clk_factors_recalc_rate()
77 factors->recalc(&factors_req); in clk_factors_recalc_rate()
91 struct clk_factors *factors in clk_factors_determine_rate() local
140 struct clk_factors *factors = to_clk_factors(hw); clk_factors_set_rate() local
182 struct clk_factors *factors; __sunxi_factors_register() local
291 struct clk_factors *factors; sunxi_factors_unregister() local
[all...]
H A Dclk-sunxi.c19 #include "clk-factors.h"
27 * sun4i_get_pll1_factors() - calculates n, k, m, p factors for PLL1
75 * sun6i_a31_get_pll1_factors() - calculates n, k and m factors for PLL1
136 /* Calculate n thanks to the above factors we already got */ in sun6i_a31_get_pll1_factors()
151 * sun8i_a23_get_pll1_factors() - calculates n, k, m, p factors for PLL1
195 * sun4i_get_pll5_factors() - calculates n, k factors for PLL5
222 * sun6i_a31_get_pll6_factors() - calculates n, k factors for A31 PLL6x2
244 * sun5i_a13_get_ahb_factors() - calculates m, p factors for AHB
280 * sun6i_a31_get_ahb_factors() - calculates m, p factors for AHB
324 * sun6i_ahb1_recalc() - calculates AHB clock rate from m, p factors an
874 const struct factors_data *factors; /* data for the factor clock */ global() member
955 struct factors_data factors = *data->factors; sunxi_divs_clk_setup() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/sunxi/
H A Dclk-factors.c16 #include "clk-factors.h"
46 struct clk_factors *factors = to_clk_factors(hw); in clk_factors_recalc_rate() local
47 const struct clk_factors_config *config = factors->config; in clk_factors_recalc_rate()
50 reg = readl(factors->reg); in clk_factors_recalc_rate()
62 if (factors->recalc) { in clk_factors_recalc_rate()
72 if (factors->mux) in clk_factors_recalc_rate()
74 (reg >> factors->mux->shift) & in clk_factors_recalc_rate()
75 factors->mux->mask; in clk_factors_recalc_rate()
77 factors->recalc(&factors_req); in clk_factors_recalc_rate()
91 struct clk_factors *factors in clk_factors_determine_rate() local
140 struct clk_factors *factors = to_clk_factors(hw); clk_factors_set_rate() local
182 struct clk_factors *factors; __sunxi_factors_register() local
291 struct clk_factors *factors; sunxi_factors_unregister() local
[all...]
H A Dclk-sunxi.c19 #include "clk-factors.h"
27 * sun4i_get_pll1_factors() - calculates n, k, m, p factors for PLL1
75 * sun6i_a31_get_pll1_factors() - calculates n, k and m factors for PLL1
136 /* Calculate n thanks to the above factors we already got */ in sun6i_a31_get_pll1_factors()
151 * sun8i_a23_get_pll1_factors() - calculates n, k, m, p factors for PLL1
195 * sun4i_get_pll5_factors() - calculates n, k factors for PLL5
222 * sun6i_a31_get_pll6_factors() - calculates n, k factors for A31 PLL6x2
244 * sun5i_a13_get_ahb_factors() - calculates m, p factors for AHB
280 * sun6i_a31_get_ahb_factors() - calculates m, p factors for AHB
324 * sun6i_ahb1_recalc() - calculates AHB clock rate from m, p factors an
874 const struct factors_data *factors; /* data for the factor clock */ global() member
955 struct factors_data factors = *data->factors; sunxi_divs_clk_setup() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-milbeaut.c498 static void m10v_reg_div_pre(const struct m10v_clk_div_factors *factors, in m10v_reg_div_pre() argument
509 if ((factors->offset == CLKSEL(9)) || (factors->offset == CLKSEL(10))) in m10v_reg_div_pre()
514 hw = m10v_clk_hw_register_divider(NULL, factors->name, in m10v_reg_div_pre()
515 factors->parent_name, in m10v_reg_div_pre()
517 base + factors->offset, in m10v_reg_div_pre()
518 factors->shift, in m10v_reg_div_pre()
519 factors->width, factors->div_flags, in m10v_reg_div_pre()
520 factors in m10v_reg_div_pre()
527 m10v_reg_fixed_pre(const struct m10v_clk_div_fixed_data *factors, struct clk_hw_onecell_data *clk_data, const char *parent_name) m10v_reg_fixed_pre() argument
542 m10v_reg_mux_pre(const struct m10v_clk_mux_factors *factors, struct clk_hw_onecell_data *clk_data, void __iomem *base) m10v_reg_mux_pre() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-milbeaut.c498 static void m10v_reg_div_pre(const struct m10v_clk_div_factors *factors, in m10v_reg_div_pre() argument
509 if ((factors->offset == CLKSEL(9)) || (factors->offset == CLKSEL(10))) in m10v_reg_div_pre()
514 hw = m10v_clk_hw_register_divider(NULL, factors->name, in m10v_reg_div_pre()
515 factors->parent_name, in m10v_reg_div_pre()
517 base + factors->offset, in m10v_reg_div_pre()
518 factors->shift, in m10v_reg_div_pre()
519 factors->width, factors->div_flags, in m10v_reg_div_pre()
520 factors in m10v_reg_div_pre()
527 m10v_reg_fixed_pre(const struct m10v_clk_div_fixed_data *factors, struct clk_hw_onecell_data *clk_data, const char *parent_name) m10v_reg_fixed_pre() argument
542 m10v_reg_mux_pre(const struct m10v_clk_mux_factors *factors, struct clk_hw_onecell_data *clk_data, void __iomem *base) m10v_reg_mux_pre() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dwm8400.c852 static int fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, in fll_factors() argument
858 factors->outdiv = 2; in fll_factors()
859 while (Fout * factors->outdiv < 90000000 || in fll_factors()
860 Fout * factors->outdiv > 100000000) { in fll_factors()
861 factors->outdiv *= 2; in fll_factors()
862 if (factors->outdiv > 32) { in fll_factors()
869 target = Fout * factors->outdiv; in fll_factors()
870 factors->outdiv = factors->outdiv >> 2; in fll_factors()
873 factors in fll_factors()
926 struct fll_factors factors; wm8400_set_dai_pll() local
[all...]
H A Dwm2200.c1939 struct _fll_div factors; in wm2200_set_fll() local
1965 ret = fll_factors(&factors, Fref, Fout); in wm2200_set_fll()
1974 (factors.fll_outdiv << WM2200_FLL_OUTDIV_SHIFT) | in wm2200_set_fll()
1975 factors.fll_fratio); in wm2200_set_fll()
1976 if (factors.theta) { in wm2200_set_fll()
1991 factors.theta); in wm2200_set_fll()
1993 factors.n); in wm2200_set_fll()
1997 (factors.fll_refclk_div in wm2200_set_fll()
2000 WM2200_FLL_LAMBDA_MASK, factors.lambda); in wm2200_set_fll()
H A Dwm5100.c1759 struct _fll_div factors; in wm5100_set_fll() local
1803 ret = fll_factors(&factors, Fref, Fout); in wm5100_set_fll()
1812 (factors.fll_outdiv << WM5100_FLL1_OUTDIV_SHIFT) | in wm5100_set_fll()
1813 factors.fll_fratio); in wm5100_set_fll()
1815 factors.theta); in wm5100_set_fll()
1816 snd_soc_component_update_bits(component, base + 5, WM5100_FLL1_N_MASK, factors.n); in wm5100_set_fll()
1820 (factors.fll_refclk_div in wm5100_set_fll()
1823 factors.lambda); in wm5100_set_fll()
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dwm8400.c852 static int fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, in fll_factors() argument
858 factors->outdiv = 2; in fll_factors()
859 while (Fout * factors->outdiv < 90000000 || in fll_factors()
860 Fout * factors->outdiv > 100000000) { in fll_factors()
861 factors->outdiv *= 2; in fll_factors()
862 if (factors->outdiv > 32) { in fll_factors()
869 target = Fout * factors->outdiv; in fll_factors()
870 factors->outdiv = factors->outdiv >> 2; in fll_factors()
873 factors in fll_factors()
926 struct fll_factors factors; wm8400_set_dai_pll() local
[all...]
H A Dwm2200.c1926 struct _fll_div factors; in wm2200_set_fll() local
1952 ret = fll_factors(&factors, Fref, Fout); in wm2200_set_fll()
1961 (factors.fll_outdiv << WM2200_FLL_OUTDIV_SHIFT) | in wm2200_set_fll()
1962 factors.fll_fratio); in wm2200_set_fll()
1963 if (factors.theta) { in wm2200_set_fll()
1978 factors.theta); in wm2200_set_fll()
1980 factors.n); in wm2200_set_fll()
1984 (factors.fll_refclk_div in wm2200_set_fll()
1987 WM2200_FLL_LAMBDA_MASK, factors.lambda); in wm2200_set_fll()
H A Dwm5100.c1759 struct _fll_div factors; in wm5100_set_fll() local
1803 ret = fll_factors(&factors, Fref, Fout); in wm5100_set_fll()
1812 (factors.fll_outdiv << WM5100_FLL1_OUTDIV_SHIFT) | in wm5100_set_fll()
1813 factors.fll_fratio); in wm5100_set_fll()
1815 factors.theta); in wm5100_set_fll()
1816 snd_soc_component_update_bits(component, base + 5, WM5100_FLL1_N_MASK, factors.n); in wm5100_set_fll()
1820 (factors.fll_refclk_div in wm5100_set_fll()
1823 factors.lambda); in wm5100_set_fll()
/kernel/linux/linux-5.10/drivers/clk/sprd/
H A Dpll.h47 * @factors used to calculate the pll clock rate
54 const struct clk_bit_field *factors; member
71 .factors = _factors, \
H A Dpll.c19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num)))
22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num)))
25 pll->factors[member].width
/kernel/linux/linux-6.6/drivers/clk/sprd/
H A Dpll.h47 * @factors used to calculate the pll clock rate
54 const struct clk_bit_field *factors; member
71 .factors = _factors, \
H A Dpll.c19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num)))
22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num)))
25 pll->factors[member].width
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h264.c276 const struct v4l2_h264_weight_factors *factors = in cedrus_write_pred_weight_table() local
279 for (j = 0; j < ARRAY_SIZE(factors->luma_weight); j++) { in cedrus_write_pred_weight_table()
282 val = (((u32)factors->luma_offset[j] & 0x1ff) << 16) | in cedrus_write_pred_weight_table()
283 (factors->luma_weight[j] & 0x1ff); in cedrus_write_pred_weight_table()
287 for (j = 0; j < ARRAY_SIZE(factors->chroma_weight); j++) { in cedrus_write_pred_weight_table()
288 for (k = 0; k < ARRAY_SIZE(factors->chroma_weight[0]); k++) { in cedrus_write_pred_weight_table()
291 val = (((u32)factors->chroma_offset[j][k] & 0x1ff) << 16) | in cedrus_write_pred_weight_table()
292 (factors->chroma_weight[j][k] & 0x1ff); in cedrus_write_pred_weight_table()
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h264.c296 const struct v4l2_h264_weight_factors *factors = in cedrus_write_pred_weight_table() local
299 for (j = 0; j < ARRAY_SIZE(factors->luma_weight); j++) { in cedrus_write_pred_weight_table()
302 val = (((u32)factors->luma_offset[j] & 0x1ff) << 16) | in cedrus_write_pred_weight_table()
303 (factors->luma_weight[j] & 0x1ff); in cedrus_write_pred_weight_table()
307 for (j = 0; j < ARRAY_SIZE(factors->chroma_weight); j++) { in cedrus_write_pred_weight_table()
308 for (k = 0; k < ARRAY_SIZE(factors->chroma_weight[0]); k++) { in cedrus_write_pred_weight_table()
311 val = (((u32)factors->chroma_offset[j][k] & 0x1ff) << 16) | in cedrus_write_pred_weight_table()
312 (factors->chroma_weight[j][k] & 0x1ff); in cedrus_write_pred_weight_table()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/
H A Dia_css_anr_types.h33 s32 factors[3]; member
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/
H A Dia_css_anr_types.h33 s32 factors[3]; member
/kernel/linux/linux-6.6/drivers/thermal/
H A Dk3_j72xx_bandgap.c51 static int compute_value(int index, const s64 *factors, int nr_factors, in compute_value() argument
58 value += factors[i] * int_pow(index, i); in compute_value()
63 static void init_table(int factors_size, int *table, const s64 *factors) in init_table() argument
68 table[i] = compute_value(i, factors, factors_size, in init_table()
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c288 u8 factors[NQUEUES] = {1, 1, 1, 1}; in is_ac_q_limit() local
302 q->cnt[i] = AC_BUFFER_SIZE * factors[i] / NQUEUES; in is_ac_q_limit()
310 q->cnt[q->buffer[end_index]] -= factors[q->buffer[end_index]]; in is_ac_q_limit()
311 q->cnt[q_num] += factors[q_num]; in is_ac_q_limit()
312 q->sum += (factors[q_num] - factors[q->buffer[end_index]]); in is_ac_q_limit()
/kernel/linux/linux-5.10/drivers/s390/block/
H A Ddasd_eckd.h296 } __attribute__ ((packed)) factors; member
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddasd_eckd.h303 } __attribute__ ((packed)) factors; member
/kernel/linux/linux-5.10/arch/m68k/fpsp040/
H A Ddecbin.S51 | 10^(2^n) values. To reduce the error in forming factors

Completed in 30 milliseconds

12