Home
last modified time | relevance | path

Searched refs:prate (Results 1 - 25 of 259) sorted by relevance

1234567891011

/kernel/linux/linux-6.6/drivers/gpu/drm/mcde/
H A Dmcde_clk_div.c45 unsigned long *prate, bool set_parent) in mcde_clk_div_choose_div()
59 this_prate = *prate; in mcde_clk_div_choose_div()
70 *prate = best_prate; in mcde_clk_div_choose_div()
75 unsigned long *prate) in mcde_clk_div_round_rate()
77 int div = mcde_clk_div_choose_div(hw, rate, prate, true); in mcde_clk_div_round_rate()
79 return DIV_ROUND_UP_ULL(*prate, div); in mcde_clk_div_round_rate()
83 unsigned long prate) in mcde_clk_div_recalc_rate()
96 return DIV_ROUND_UP_ULL(prate, 2); in mcde_clk_div_recalc_rate()
100 return prate; in mcde_clk_div_recalc_rate()
106 return DIV_ROUND_UP_ULL(prate, di in mcde_clk_div_recalc_rate()
44 mcde_clk_div_choose_div(struct clk_hw *hw, unsigned long rate, unsigned long *prate, bool set_parent) mcde_clk_div_choose_div() argument
74 mcde_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) mcde_clk_div_round_rate() argument
82 mcde_clk_div_recalc_rate(struct clk_hw *hw, unsigned long prate) mcde_clk_div_recalc_rate() argument
109 mcde_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) mcde_clk_div_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/spear/
H A Dclk-frac-synth.c44 static unsigned long frac_calc_rate(struct clk_hw *hw, unsigned long prate, in frac_calc_rate() argument
50 prate /= 10000; in frac_calc_rate()
51 prate <<= 14; in frac_calc_rate()
52 prate /= (2 * rtbl[index].div); in frac_calc_rate()
53 prate *= 10000; in frac_calc_rate()
55 return prate; in frac_calc_rate()
59 unsigned long *prate) in clk_frac_round_rate()
64 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate()
96 unsigned long prate) in clk_frac_set_rate()
103 clk_round_rate_index(hw, drate, prate, frac_calc_rat in clk_frac_set_rate()
58 clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_frac_round_rate() argument
95 clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_frac_set_rate() argument
[all...]
H A Dclk-vco-pll.c70 unsigned long prate, int index, unsigned long *pll_rate) in pll_calc_rate()
72 unsigned long rate = prate; in pll_calc_rate()
85 unsigned long *prate, int *index) in clk_pll_round_rate_index()
92 if (!prate) { in clk_pll_round_rate_index()
93 pr_err("%s: prate is must for pll clk\n", __func__); in clk_pll_round_rate_index()
99 vco_prev_rate = *prate; in clk_pll_round_rate_index()
100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index()
106 *prate = vco_prev_rate; in clk_pll_round_rate_index()
117 unsigned long *prate) in clk_pll_round_rate()
121 return clk_pll_round_rate_index(hw, drate, prate, in clk_pll_round_rate()
69 pll_calc_rate(struct pll_rate_tbl *rtbl, unsigned long prate, int index, unsigned long *pll_rate) pll_calc_rate() argument
84 clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, unsigned long *prate, int *index) clk_pll_round_rate_index() argument
116 clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_pll_round_rate() argument
144 clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_pll_set_rate() argument
174 vco_calc_rate(struct clk_hw *hw, unsigned long prate, int index) vco_calc_rate() argument
182 clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_vco_round_rate() argument
230 clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_vco_set_rate() argument
[all...]
H A Dclk-gpt-synth.c34 static unsigned long gpt_calc_rate(struct clk_hw *hw, unsigned long prate, in gpt_calc_rate() argument
40 prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); in gpt_calc_rate()
42 return prate; in gpt_calc_rate()
46 unsigned long *prate) in clk_gpt_round_rate()
51 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate()
81 unsigned long prate) in clk_gpt_set_rate()
88 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
45 clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_gpt_round_rate() argument
80 clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_gpt_set_rate() argument
H A Dclk-aux-synth.c44 static unsigned long aux_calc_rate(struct clk_hw *hw, unsigned long prate, in aux_calc_rate() argument
51 return (((prate / 10000) * rtbl[index].xscale) / in aux_calc_rate()
56 unsigned long *prate) in clk_aux_round_rate()
61 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate()
100 unsigned long prate) in clk_aux_set_rate()
107 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
55 clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_aux_round_rate() argument
99 clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_aux_set_rate() argument
/kernel/linux/linux-6.6/drivers/clk/spear/
H A Dclk-frac-synth.c41 static unsigned long frac_calc_rate(struct clk_hw *hw, unsigned long prate, in frac_calc_rate() argument
47 prate /= 10000; in frac_calc_rate()
48 prate <<= 14; in frac_calc_rate()
49 prate /= (2 * rtbl[index].div); in frac_calc_rate()
50 prate *= 10000; in frac_calc_rate()
52 return prate; in frac_calc_rate()
56 unsigned long *prate) in clk_frac_round_rate()
61 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate()
93 unsigned long prate) in clk_frac_set_rate()
100 clk_round_rate_index(hw, drate, prate, frac_calc_rat in clk_frac_set_rate()
55 clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_frac_round_rate() argument
92 clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_frac_set_rate() argument
[all...]
H A Dclk-vco-pll.c67 unsigned long prate, int index, unsigned long *pll_rate) in pll_calc_rate()
69 unsigned long rate = prate; in pll_calc_rate()
82 unsigned long *prate, int *index) in clk_pll_round_rate_index()
89 if (!prate) { in clk_pll_round_rate_index()
90 pr_err("%s: prate is must for pll clk\n", __func__); in clk_pll_round_rate_index()
96 vco_prev_rate = *prate; in clk_pll_round_rate_index()
97 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index()
103 *prate = vco_prev_rate; in clk_pll_round_rate_index()
114 unsigned long *prate) in clk_pll_round_rate()
118 return clk_pll_round_rate_index(hw, drate, prate, in clk_pll_round_rate()
66 pll_calc_rate(struct pll_rate_tbl *rtbl, unsigned long prate, int index, unsigned long *pll_rate) pll_calc_rate() argument
81 clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, unsigned long *prate, int *index) clk_pll_round_rate_index() argument
113 clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_pll_round_rate() argument
141 clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_pll_set_rate() argument
171 vco_calc_rate(struct clk_hw *hw, unsigned long prate, int index) vco_calc_rate() argument
179 clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_vco_round_rate() argument
227 clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_vco_set_rate() argument
[all...]
H A Dclk-gpt-synth.c31 static unsigned long gpt_calc_rate(struct clk_hw *hw, unsigned long prate, in gpt_calc_rate() argument
37 prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); in gpt_calc_rate()
39 return prate; in gpt_calc_rate()
43 unsigned long *prate) in clk_gpt_round_rate()
48 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate()
78 unsigned long prate) in clk_gpt_set_rate()
85 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
42 clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_gpt_round_rate() argument
77 clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_gpt_set_rate() argument
H A Dclk-aux-synth.c41 static unsigned long aux_calc_rate(struct clk_hw *hw, unsigned long prate, in aux_calc_rate() argument
48 return (((prate / 10000) * rtbl[index].xscale) / in aux_calc_rate()
53 unsigned long *prate) in clk_aux_round_rate()
58 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate()
97 unsigned long prate) in clk_aux_set_rate()
104 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
52 clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) clk_aux_round_rate() argument
96 clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_aux_set_rate() argument
/kernel/linux/linux-5.10/drivers/clk/meson/
H A Dsclk-div.c42 unsigned long prate, int maxdiv) in sclk_div_getdiv()
44 int div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate); in sclk_div_getdiv()
50 unsigned long *prate, in sclk_div_bestdiv()
64 return sclk_div_getdiv(hw, rate, *prate, maxdiv); in sclk_div_bestdiv()
78 if (rate * i == *prate) in sclk_div_bestdiv()
94 *prate = best_parent; in sclk_div_bestdiv()
100 unsigned long *prate) in sclk_div_round_rate()
106 div = sclk_div_bestdiv(hw, rate, prate, sclk); in sclk_div_round_rate()
108 return DIV_ROUND_UP_ULL((u64)*prate, div); in sclk_div_round_rate()
167 unsigned long prate) in sclk_div_set_rate()
41 sclk_div_getdiv(struct clk_hw *hw, unsigned long rate, unsigned long prate, int maxdiv) sclk_div_getdiv() argument
49 sclk_div_bestdiv(struct clk_hw *hw, unsigned long rate, unsigned long *prate, struct meson_sclk_div_data *sclk) sclk_div_bestdiv() argument
99 sclk_div_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) sclk_div_round_rate() argument
166 sclk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) sclk_div_set_rate() argument
181 sclk_div_recalc_rate(struct clk_hw *hw, unsigned long prate) sclk_div_recalc_rate() argument
[all...]
H A Dclk-cpu-dyndiv.c20 unsigned long prate) in meson_clk_cpu_dyndiv_recalc_rate()
25 return divider_recalc_rate(hw, prate, in meson_clk_cpu_dyndiv_recalc_rate()
32 unsigned long *prate) in meson_clk_cpu_dyndiv_round_rate()
37 return divider_round_rate(hw, rate, prate, NULL, data->div.width, 0); in meson_clk_cpu_dyndiv_round_rate()
19 meson_clk_cpu_dyndiv_recalc_rate(struct clk_hw *hw, unsigned long prate) meson_clk_cpu_dyndiv_recalc_rate() argument
30 meson_clk_cpu_dyndiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) meson_clk_cpu_dyndiv_round_rate() argument
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-pll14xx.c105 int sdiv, int kdiv, unsigned long prate) in pll14xx_calc_rate()
107 u64 fvco = prate; in pll14xx_calc_rate()
119 unsigned long rate, unsigned long prate) in pll1443x_calc_kdiv()
123 /* calc kdiv = round(rate * pdiv * 65536 * 2^sdiv / prate) - (mdiv * 65536) */ in pll1443x_calc_kdiv()
124 kdiv = ((rate * ((pdiv * 65536) << sdiv) + prate / 2) / prate) - (mdiv * 65536); in pll1443x_calc_kdiv()
130 unsigned long prate, struct imx_pll14xx_rate_table *t) in imx_pll14xx_calc_settings()
145 * fvco = (m * 65536 + k) * prate / (p * 65536) in imx_pll14xx_calc_settings()
152 clk_hw_get_name(&pll->hw), prate, rate); in imx_pll14xx_calc_settings()
168 rate_min = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, KDIV_MIN, prate); in imx_pll14xx_calc_settings()
104 pll14xx_calc_rate(struct clk_pll14xx *pll, int mdiv, int pdiv, int sdiv, int kdiv, unsigned long prate) pll14xx_calc_rate() argument
118 pll1443x_calc_kdiv(int mdiv, int pdiv, int sdiv, unsigned long rate, unsigned long prate) pll1443x_calc_kdiv() argument
129 imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rate, unsigned long prate, struct imx_pll14xx_rate_table *t) imx_pll14xx_calc_settings() argument
216 clk_pll1416x_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_pll1416x_round_rate() argument
232 clk_pll1443x_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_pll1443x_round_rate() argument
283 clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_pll1416x_set_rate() argument
349 clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) clk_pll1443x_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/meson/
H A Dsclk-div.c42 unsigned long prate, int maxdiv) in sclk_div_getdiv()
44 int div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate); in sclk_div_getdiv()
50 unsigned long *prate, in sclk_div_bestdiv()
64 return sclk_div_getdiv(hw, rate, *prate, maxdiv); in sclk_div_bestdiv()
78 if (rate * i == *prate) in sclk_div_bestdiv()
94 *prate = best_parent; in sclk_div_bestdiv()
168 unsigned long prate) in sclk_div_set_rate()
174 sclk->cached_div = sclk_div_getdiv(hw, rate, prate, maxdiv); in sclk_div_set_rate()
183 unsigned long prate) in sclk_div_recalc_rate()
188 return DIV_ROUND_UP_ULL((u64)prate, scl in sclk_div_recalc_rate()
41 sclk_div_getdiv(struct clk_hw *hw, unsigned long rate, unsigned long prate, int maxdiv) sclk_div_getdiv() argument
49 sclk_div_bestdiv(struct clk_hw *hw, unsigned long rate, unsigned long *prate, struct meson_sclk_div_data *sclk) sclk_div_bestdiv() argument
167 sclk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) sclk_div_set_rate() argument
182 sclk_div_recalc_rate(struct clk_hw *hw, unsigned long prate) sclk_div_recalc_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/renesas/
H A Drcar-gen3-cpg.c70 unsigned long prate; in cpg_pll_clk_determine_rate() local
72 prate = req->best_parent_rate * pll_clk->fixed_mult; in cpg_pll_clk_determine_rate()
73 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_clk_determine_rate()
74 max_mult = min(div64_ul(req->max_rate, prate), 128ULL); in cpg_pll_clk_determine_rate()
78 mult = DIV_ROUND_CLOSEST_ULL(req->rate, prate); in cpg_pll_clk_determine_rate()
81 req->rate = prate * mult; in cpg_pll_clk_determine_rate()
194 unsigned long rate, prate; in cpg_z_clk_determine_rate() local
199 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
202 prate = rate; in cpg_z_clk_determine_rate()
205 prate * zcl in cpg_z_clk_determine_rate()
[all...]
H A Drcar-gen4-cpg.c85 unsigned long prate; in cpg_pll_clk_determine_rate() local
87 prate = req->best_parent_rate * 2; in cpg_pll_clk_determine_rate()
88 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_clk_determine_rate()
89 max_mult = min(div64_ul(req->max_rate, prate), 256ULL); in cpg_pll_clk_determine_rate()
93 mult = DIV_ROUND_CLOSEST_ULL(req->rate, prate); in cpg_pll_clk_determine_rate()
96 req->rate = prate * mult; in cpg_pll_clk_determine_rate()
214 unsigned long rate, prate; in cpg_z_clk_determine_rate() local
219 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
222 prate = rate; in cpg_z_clk_determine_rate()
225 prate * zcl in cpg_z_clk_determine_rate()
[all...]
H A Dclk-div6.c106 unsigned long prate, calc_rate, diff, best_rate, best_prate; in cpg_div6_clock_determine_rate() local
117 prate = clk_hw_get_rate(parent); in cpg_div6_clock_determine_rate()
118 if (!prate) in cpg_div6_clock_determine_rate()
121 min_div = max(DIV_ROUND_UP(prate, req->max_rate), 1UL); in cpg_div6_clock_determine_rate()
122 max_div = req->min_rate ? min(prate / req->min_rate, 64UL) : 64; in cpg_div6_clock_determine_rate()
126 div = cpg_div6_clock_calc_div(req->rate, prate); in cpg_div6_clock_determine_rate()
128 calc_rate = prate / div; in cpg_div6_clock_determine_rate()
134 best_prate = prate; in cpg_div6_clock_determine_rate()
/kernel/linux/linux-5.10/drivers/clk/x86/
H A Dclk-cgu.c137 unsigned long *prate) in lgm_clk_divider_round_rate()
141 return divider_round_rate(hw, rate, prate, divider->table, in lgm_clk_divider_round_rate()
147 unsigned long prate) in lgm_clk_divider_set_rate()
152 value = divider_get_val(rate, prate, divider->table, in lgm_clk_divider_set_rate()
396 u64 prate; in lgm_clk_ddiv_recalc_rate() local
404 prate = (u64)parent_rate; in lgm_clk_ddiv_recalc_rate()
405 do_div(prate, div0); in lgm_clk_ddiv_recalc_rate()
406 do_div(prate, div1); in lgm_clk_ddiv_recalc_rate()
409 do_div(prate, ddiv->div); in lgm_clk_ddiv_recalc_rate()
410 prate * in lgm_clk_ddiv_recalc_rate()
136 lgm_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lgm_clk_divider_round_rate() argument
146 lgm_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lgm_clk_divider_set_rate() argument
462 lgm_clk_ddiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lgm_clk_ddiv_set_rate() argument
491 lgm_clk_ddiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lgm_clk_ddiv_round_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/x86/
H A Dclk-cgu.c137 unsigned long *prate) in lgm_clk_divider_round_rate()
141 return divider_round_rate(hw, rate, prate, divider->table, in lgm_clk_divider_round_rate()
147 unsigned long prate) in lgm_clk_divider_set_rate()
152 value = divider_get_val(rate, prate, divider->table, in lgm_clk_divider_set_rate()
396 u64 prate; in lgm_clk_ddiv_recalc_rate() local
404 prate = (u64)parent_rate; in lgm_clk_ddiv_recalc_rate()
405 do_div(prate, div0); in lgm_clk_ddiv_recalc_rate()
406 do_div(prate, div1); in lgm_clk_ddiv_recalc_rate()
409 do_div(prate, ddiv->div); in lgm_clk_ddiv_recalc_rate()
410 prate * in lgm_clk_ddiv_recalc_rate()
136 lgm_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lgm_clk_divider_round_rate() argument
146 lgm_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lgm_clk_divider_set_rate() argument
462 lgm_clk_ddiv_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lgm_clk_ddiv_set_rate() argument
491 lgm_clk_ddiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lgm_clk_ddiv_round_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/qcom/
H A Dclk-alpha-pll.c566 alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width) in alpha_pll_calc_rate() argument
568 return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width)); in alpha_pll_calc_rate()
572 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() argument
579 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
590 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
596 return alpha_pll_calc_rate(prate, *l, *a, alpha_width); in alpha_pll_round_rate()
616 u64 a = 0, prate = parent_rate; in clk_alpha_pll_recalc_rate() local
637 return alpha_pll_calc_rate(prate, l, a, alpha_width); in clk_alpha_pll_recalc_rate()
695 unsigned long prate, in __clk_alpha_pll_set_rate()
694 __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate, int (*is_enabled)(struct clk_hw *)) __clk_alpha_pll_set_rate() argument
733 clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_set_rate() argument
740 clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_hwfsm_set_rate() argument
747 clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_round_rate() argument
766 alpha_huayra_pll_calc_rate(u64 prate, u32 l, u32 a) alpha_huayra_pll_calc_rate() argument
779 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u32 *a) alpha_huayra_pll_round_rate() argument
866 alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_huayra_set_rate() argument
909 alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) alpha_pll_huayra_round_rate() argument
1098 clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_rate() argument
1114 clk_alpha_pll_postdiv_round_ro_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_ro_rate() argument
1313 alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_fabia_set_rate() argument
1456 clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_trion_pll_postdiv_round_rate() argument
1493 clk_alpha_pll_postdiv_fabia_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_fabia_round_rate() argument
1627 __alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate, u32 latch_bit, u32 latch_ack) __alpha_pll_trion_set_rate() argument
1674 alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_trion_set_rate() argument
1727 clk_alpha_pll_agera_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_agera_set_rate() argument
1862 alpha_pll_lucid_5lpe_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_lucid_5lpe_set_rate() argument
2047 clk_zonda_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_zonda_pll_set_rate() argument
2344 clk_rivian_evo_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_rivian_evo_pll_round_rate() argument
2437 clk_alpha_pll_stromer_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_stromer_set_rate() argument
2483 clk_alpha_pll_stromer_plus_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_stromer_plus_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/qcom/
H A Dclk-alpha-pll.c409 alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width) in alpha_pll_calc_rate() argument
411 return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width)); in alpha_pll_calc_rate()
415 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() argument
422 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
433 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
439 return alpha_pll_calc_rate(prate, *l, *a, alpha_width); in alpha_pll_round_rate()
459 u64 a = 0, prate = parent_rate; in clk_alpha_pll_recalc_rate() local
480 return alpha_pll_calc_rate(prate, l, a, alpha_width); in clk_alpha_pll_recalc_rate()
538 unsigned long prate, in __clk_alpha_pll_set_rate()
537 __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate, int (*is_enabled)(struct clk_hw *)) __clk_alpha_pll_set_rate() argument
576 clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_set_rate() argument
583 clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) clk_alpha_pll_hwfsm_set_rate() argument
590 clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_round_rate() argument
609 alpha_huayra_pll_calc_rate(u64 prate, u32 l, u32 a) alpha_huayra_pll_calc_rate() argument
622 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u32 *a) alpha_huayra_pll_round_rate() argument
709 alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_huayra_set_rate() argument
752 alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) alpha_pll_huayra_round_rate() argument
941 clk_alpha_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_rate() argument
957 clk_alpha_pll_postdiv_round_ro_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_round_ro_rate() argument
1148 alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_fabia_set_rate() argument
1298 clk_trion_pll_postdiv_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_trion_pll_postdiv_round_rate() argument
1335 clk_alpha_pll_postdiv_fabia_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) clk_alpha_pll_postdiv_fabia_round_rate() argument
1482 alpha_pll_trion_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) alpha_pll_trion_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-ac100.c120 unsigned long prate) in ac100_clkout_recalc_rate()
128 if (prate != AC100_RTC_32K_RATE) { in ac100_clkout_recalc_rate()
131 prate = divider_recalc_rate(hw, prate, div, in ac100_clkout_recalc_rate()
138 return divider_recalc_rate(hw, prate, div, NULL, in ac100_clkout_recalc_rate()
144 unsigned long prate) in ac100_clkout_round_rate()
149 if (prate == AC100_RTC_32K_RATE) in ac100_clkout_round_rate()
150 return divider_round_rate(hw, rate, &prate, NULL, in ac100_clkout_round_rate()
155 tmp_prate = DIV_ROUND_UP(prate, ac100_clkout_prediv[i].val); in ac100_clkout_round_rate()
178 unsigned long tmp, prate; in ac100_clkout_determine_rate() local
119 ac100_clkout_recalc_rate(struct clk_hw *hw, unsigned long prate) ac100_clkout_recalc_rate() argument
143 ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) ac100_clkout_round_rate() argument
222 ac100_clkout_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) ac100_clkout_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-ac100.c120 unsigned long prate) in ac100_clkout_recalc_rate()
128 if (prate != AC100_RTC_32K_RATE) { in ac100_clkout_recalc_rate()
131 prate = divider_recalc_rate(hw, prate, div, in ac100_clkout_recalc_rate()
138 return divider_recalc_rate(hw, prate, div, NULL, in ac100_clkout_recalc_rate()
144 unsigned long prate) in ac100_clkout_round_rate()
149 if (prate == AC100_RTC_32K_RATE) in ac100_clkout_round_rate()
150 return divider_round_rate(hw, rate, &prate, NULL, in ac100_clkout_round_rate()
155 tmp_prate = DIV_ROUND_UP(prate, ac100_clkout_prediv[i].val); in ac100_clkout_round_rate()
178 unsigned long tmp, prate; in ac100_clkout_determine_rate() local
119 ac100_clkout_recalc_rate(struct clk_hw *hw, unsigned long prate) ac100_clkout_recalc_rate() argument
143 ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) ac100_clkout_round_rate() argument
222 ac100_clkout_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) ac100_clkout_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/pl111/
H A Dpl111_display.c447 unsigned long *prate, bool set_parent) in pl111_clk_div_choose_div()
461 this_prate = *prate; in pl111_clk_div_choose_div()
472 *prate = best_prate; in pl111_clk_div_choose_div()
477 unsigned long *prate) in pl111_clk_div_round_rate()
479 int div = pl111_clk_div_choose_div(hw, rate, prate, true); in pl111_clk_div_round_rate()
481 return DIV_ROUND_UP_ULL(*prate, div); in pl111_clk_div_round_rate()
485 unsigned long prate) in pl111_clk_div_recalc_rate()
493 return prate; in pl111_clk_div_recalc_rate()
500 return DIV_ROUND_UP_ULL(prate, div); in pl111_clk_div_recalc_rate()
504 unsigned long prate) in pl111_clk_div_set_rate()
446 pl111_clk_div_choose_div(struct clk_hw *hw, unsigned long rate, unsigned long *prate, bool set_parent) pl111_clk_div_choose_div() argument
476 pl111_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) pl111_clk_div_round_rate() argument
484 pl111_clk_div_recalc_rate(struct clk_hw *hw, unsigned long prate) pl111_clk_div_recalc_rate() argument
503 pl111_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) pl111_clk_div_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/pl111/
H A Dpl111_display.c447 unsigned long *prate, bool set_parent) in pl111_clk_div_choose_div()
461 this_prate = *prate; in pl111_clk_div_choose_div()
472 *prate = best_prate; in pl111_clk_div_choose_div()
477 unsigned long *prate) in pl111_clk_div_round_rate()
479 int div = pl111_clk_div_choose_div(hw, rate, prate, true); in pl111_clk_div_round_rate()
481 return DIV_ROUND_UP_ULL(*prate, div); in pl111_clk_div_round_rate()
485 unsigned long prate) in pl111_clk_div_recalc_rate()
493 return prate; in pl111_clk_div_recalc_rate()
500 return DIV_ROUND_UP_ULL(prate, div); in pl111_clk_div_recalc_rate()
504 unsigned long prate) in pl111_clk_div_set_rate()
446 pl111_clk_div_choose_div(struct clk_hw *hw, unsigned long rate, unsigned long *prate, bool set_parent) pl111_clk_div_choose_div() argument
476 pl111_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) pl111_clk_div_round_rate() argument
484 pl111_clk_div_recalc_rate(struct clk_hw *hw, unsigned long prate) pl111_clk_div_recalc_rate() argument
503 pl111_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) pl111_clk_div_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-lmk04832.c375 unsigned long prate) in lmk04832_vco_recalc_rate()
406 vco_rate = (prate << FIELD_GET(LMK04832_BIT_PLL2_MISC_REF_2X_EN, in lmk04832_vco_recalc_rate()
444 * @prate: parent rate to the PLL2, usually OSCin
460 static long lmk04832_calc_pll2_params(unsigned long prate, unsigned long rate, in lmk04832_calc_pll2_params() argument
470 div = gcd(rate, prate); in lmk04832_calc_pll2_params()
473 pll2_r = DIV_ROUND_CLOSEST(prate, div); in lmk04832_calc_pll2_params()
491 return DIV_ROUND_CLOSEST(prate * 2 * pll2_p * pll2_n, pll2_r); in lmk04832_calc_pll2_params()
495 unsigned long *prate) in lmk04832_vco_round_rate()
506 vco_rate = lmk04832_calc_pll2_params(*prate, rate, &n, &p, &r); in lmk04832_vco_round_rate()
519 unsigned long prate) in lmk04832_vco_set_rate()
374 lmk04832_vco_recalc_rate(struct clk_hw *hw, unsigned long prate) lmk04832_vco_recalc_rate() argument
494 lmk04832_vco_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lmk04832_vco_round_rate() argument
518 lmk04832_vco_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lmk04832_vco_set_rate() argument
873 lmk04832_sclk_recalc_rate(struct clk_hw *hw, unsigned long prate) lmk04832_sclk_recalc_rate() argument
891 lmk04832_sclk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lmk04832_sclk_round_rate() argument
912 lmk04832_sclk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lmk04832_sclk_set_rate() argument
1046 lmk04832_dclk_recalc_rate(struct clk_hw *hw, unsigned long prate) lmk04832_dclk_recalc_rate() argument
1072 lmk04832_dclk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) lmk04832_dclk_round_rate() argument
1094 lmk04832_dclk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) lmk04832_dclk_set_rate() argument
[all...]

Completed in 18 milliseconds

1234567891011