/linux/drivers/clk/at91/ |
H A D | clk-audio-pll.c | 251 req->rate, req->best_parent_rate); in clk_audio_pll_frac_determine_rate() 258 ret = clk_audio_pll_frac_compute_frac(req->rate, req->best_parent_rate, in clk_audio_pll_frac_determine_rate() 263 req->rate = clk_audio_pll_fout(req->best_parent_rate, nd, fracr); in clk_audio_pll_frac_determine_rate() 278 unsigned long best_parent_rate; in clk_audio_pll_pad_round_rate() local 306 best_parent_rate = clk_hw_round_rate(pclk, in clk_audio_pll_pad_round_rate() 308 tmp_rate = best_parent_rate / (div * tmp_qd); in clk_audio_pll_pad_round_rate() 312 *parent_rate = best_parent_rate; in clk_audio_pll_pad_round_rate() 319 __func__, best_rate, best_parent_rate); in clk_audio_pll_pad_round_rate() 329 unsigned long best_parent_rate = 0; in clk_audio_pll_pmc_round_rate() local 341 best_parent_rate = clk_round_rate(pclk->clk, 1); in clk_audio_pll_pmc_round_rate() [all …]
|
H A D | clk-smd.c | 46 if (req->rate >= req->best_parent_rate) { in at91sam9x5_clk_smd_determine_rate() 47 req->rate = req->best_parent_rate; in at91sam9x5_clk_smd_determine_rate() 51 div = req->best_parent_rate / req->rate; in at91sam9x5_clk_smd_determine_rate() 53 req->rate = req->best_parent_rate / (SMD_MAX_DIV + 1); in at91sam9x5_clk_smd_determine_rate() 57 bestrate = req->best_parent_rate / div; in at91sam9x5_clk_smd_determine_rate() 58 tmp = req->best_parent_rate / (div + 1); in at91sam9x5_clk_smd_determine_rate()
|
/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_mux.c | 89 unsigned long best_parent_rate = 0, best_rate = 0; in ccu_mux_helper_determine_rate() local 97 best_parent_rate = clk_hw_get_rate(best_parent); in ccu_mux_helper_determine_rate() 99 best_parent_rate); in ccu_mux_helper_determine_rate() 109 best_parent_rate = ccu_mux_helper_unapply_prediv(common, cm, -1, in ccu_mux_helper_determine_rate() 137 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate() 144 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate() 154 req->best_parent_rate = best_parent_rate; in ccu_mux_helper_determine_rate()
|
/linux/drivers/clk/actions/ |
H A D | owl-factor.c | 68 unsigned long *best_parent_rate) in owl_clk_val_best() argument 72 unsigned long parent_rate_saved = *best_parent_rate; in owl_clk_val_best() 79 parent_rate = *best_parent_rate; in owl_clk_val_best() 96 *best_parent_rate = parent_rate_saved; in owl_clk_val_best() 106 *best_parent_rate = parent_rate; in owl_clk_val_best() 112 *best_parent_rate = clk_hw_round_rate( in owl_clk_val_best()
|
H A D | owl-composite.c | 63 req->rate, &req->best_parent_rate); in owl_comp_div_determine_rate() 97 req->rate, &req->best_parent_rate); in owl_comp_fact_determine_rate()
|
/linux/drivers/clk/imx/ |
H A D | clk-pfdv2.c | 107 req->best_parent_rate in clk_pfdv2_determine_rate() 110 unsigned long best_parent_rate = req->best_parent_rate; in clk_pfdv2_determine_rate() local 132 best_parent_rate = parent_rates[i]; in clk_pfdv2_determine_rate() 136 req->best_parent_rate = best_parent_rate; in clk_pfdv2_determine_rate()
|
/linux/drivers/clk/ |
H A D | clk-divider.c | 297 unsigned long *best_parent_rate, in clk_divider_bestdiv() argument 303 unsigned long parent_rate_saved = *best_parent_rate; in clk_divider_bestdiv() 311 parent_rate = *best_parent_rate; in clk_divider_bestdiv() 332 *best_parent_rate = parent_rate_saved; in clk_divider_bestdiv() 340 *best_parent_rate = parent_rate; in clk_divider_bestdiv() 346 *best_parent_rate = clk_hw_round_rate(parent, 1); in clk_divider_bestdiv() 359 &req->best_parent_rate, table, width, flags); in divider_determine_rate() 361 req->rate = DIV_ROUND_UP_ULL((u64)req->best_parent_rate, div); in divider_determine_rate() 380 req->best_parent_rate = clk_hw_round_rate(req->best_parent_hw, in divider_ro_determine_rate() 384 req->rate = DIV_ROUND_UP_ULL((u64)req->best_parent_rate, div); in divider_ro_determine_rate() [all …]
|
H A D | clk-multiplier.c | 66 unsigned long *best_parent_rate, in __bestmult() argument 70 unsigned long orig_parent_rate = *best_parent_rate; in __bestmult() 97 *best_parent_rate = orig_parent_rate; in __bestmult() 108 *best_parent_rate = parent_rate; in __bestmult()
|
H A D | clk-si5351.c | 460 a = rate / req->best_parent_rate; in si5351_pll_determine_rate() 463 rate = req->best_parent_rate * SI5351_PLL_A_MIN; in si5351_pll_determine_rate() 465 rate = req->best_parent_rate * SI5351_PLL_A_MAX; in si5351_pll_determine_rate() 469 lltmp = rate % (req->best_parent_rate); in si5351_pll_determine_rate() 471 do_div(lltmp, req->best_parent_rate); in si5351_pll_determine_rate() 488 lltmp = req->best_parent_rate; in si5351_pll_determine_rate() 493 rate += req->best_parent_rate * a; in si5351_pll_determine_rate() 498 req->best_parent_rate, rate); in si5351_pll_determine_rate() 688 req->best_parent_rate = a * rate; in si5351_msynth_determine_rate() 691 a = DIV_ROUND_CLOSEST(req->best_parent_rate, rate); in si5351_msynth_determine_rate() [all …]
|
H A D | clk-composite.c | 53 req->best_parent_rate = clk_hw_get_rate(parent_hw); in clk_composite_determine_rate_for_parent() 59 &req->best_parent_rate); in clk_composite_determine_rate_for_parent() 102 req->best_parent_rate = tmp_req.best_parent_rate; in clk_composite_determine_rate() 130 req->best_parent_rate = tmp_req.best_parent_rate; in clk_composite_determine_rate()
|
H A D | clk-cdce706.c | 301 __func__, rate, req->best_parent_rate); in cdce706_divider_determine_rate() 303 rational_best_approximation(rate, req->best_parent_rate, in cdce706_divider_determine_rate() 348 __func__, req->best_parent_rate, rate * div); in cdce706_divider_determine_rate() 349 req->best_parent_rate = rate * div; in cdce706_divider_determine_rate() 357 req->rate = req->best_parent_rate / div; in cdce706_divider_determine_rate() 429 req->best_parent_rate = req->rate; in cdce706_clkout_determine_rate()
|
/linux/drivers/clk/rockchip/ |
H A D | clk-half-divider.c | 36 unsigned long *best_parent_rate, u8 width, in clk_half_divider_bestdiv() argument 41 unsigned long parent_rate_saved = *best_parent_rate; in clk_half_divider_bestdiv() 49 parent_rate = *best_parent_rate; in clk_half_divider_bestdiv() 72 *best_parent_rate = parent_rate_saved; in clk_half_divider_bestdiv() 83 *best_parent_rate = parent_rate; in clk_half_divider_bestdiv() 89 *best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), 1); in clk_half_divider_bestdiv()
|
/linux/drivers/clk/tegra/ |
H A D | clk-tegra-super-cclk.c | 92 .best_parent_rate = pllp_rate, in cclk_super_determine_rate() 98 pllp_rate = parent.best_parent_rate; in cclk_super_determine_rate() 102 req->best_parent_rate = pllp_rate; in cclk_super_determine_rate() 107 req->best_parent_rate = rate; in cclk_super_determine_rate()
|
/linux/drivers/clk/meson/ |
H A D | clk-dualdiv.c | 96 setting = __dualdiv_get_setting(req->rate, req->best_parent_rate, in meson_clk_dualdiv_determine_rate() 99 req->rate = __dualdiv_param_to_rate(req->best_parent_rate, in meson_clk_dualdiv_determine_rate() 103 req->best_parent_rate); in meson_clk_dualdiv_determine_rate()
|
H A D | clk-pll.c | 255 ret = meson_clk_get_pll_settings(req->rate, req->best_parent_rate, in meson_clk_pll_determine_rate() 260 round = __pll_params_to_rate(req->best_parent_rate, m, n, 0, pll); in meson_clk_pll_determine_rate() 271 frac = __pll_params_with_frac(req->rate, req->best_parent_rate, m, n, pll); in meson_clk_pll_determine_rate() 272 req->rate = __pll_params_to_rate(req->best_parent_rate, m, n, frac, pll); in meson_clk_pll_determine_rate()
|
H A D | clk-mpll.c | 97 params_from_rate(req->rate, req->best_parent_rate, &sdm, &n2, in mpll_determine_rate() 100 rate = rate_from_params(req->best_parent_rate, sdm, n2); in mpll_determine_rate()
|
/linux/drivers/clk/ti/ |
H A D | divider.c | 169 unsigned long *best_parent_rate) in ti_clk_divider_bestdiv() argument 174 unsigned long parent_rate_saved = *best_parent_rate; in ti_clk_divider_bestdiv() 182 parent_rate = *best_parent_rate; in ti_clk_divider_bestdiv() 204 *best_parent_rate = parent_rate_saved; in ti_clk_divider_bestdiv() 213 *best_parent_rate = parent_rate; in ti_clk_divider_bestdiv() 219 *best_parent_rate = in ti_clk_divider_bestdiv()
|
H A D | dpll44xx.c | 219 &req->best_parent_rate); in omap4_dpll_regm4xen_determine_rate() 223 req->best_parent_rate = req->rate; in omap4_dpll_regm4xen_determine_rate()
|
/linux/drivers/clk/qcom/ |
H A D | clk-rcg2.c | 257 req->best_parent_rate = rate; in _freq_tbl_determine_rate() 366 req->best_parent_rate = rate; in _freq_tbl_fm_determine_rate() 768 req->best_parent_rate = clk_hw_get_rate(req->best_parent_hw); in clk_edp_pixel_determine_rate() 770 if (req->best_parent_rate == 810000000) in clk_edp_pixel_determine_rate() 779 if ((req->best_parent_rate < (request - delta)) || in clk_edp_pixel_determine_rate() 780 (req->best_parent_rate > (request + delta))) in clk_edp_pixel_determine_rate() 788 req->rate = calc_rate(req->best_parent_rate, in clk_edp_pixel_determine_rate() 822 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, req->rate); in clk_byte_determine_rate() 879 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, rate); in clk_byte2_determine_rate() 960 req->best_parent_rate = src_rate; in clk_pixel_determine_rate() [all …]
|
H A D | clk-hfpll.c | 143 rrate = DIV_ROUND_UP(req->rate, req->best_parent_rate) * req->best_parent_rate; in clk_hfpll_determine_rate() 145 rrate -= req->best_parent_rate; in clk_hfpll_determine_rate()
|
H A D | clk-krait.c | 102 req->best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), req->rate * 2); in krait_div2_determine_rate() 103 req->rate = DIV_ROUND_UP(req->best_parent_rate, 2); in krait_div2_determine_rate()
|
/linux/drivers/clk/renesas/ |
H A D | rcar-gen4-cpg.c | 108 prate = req->best_parent_rate * 2; in cpg_pll_8_25_clk_determine_rate() 122 req->best_parent_rate); in cpg_pll_8_25_clk_determine_rate() 129 req->rate = prate * ni + mul_u64_u32_shr(req->best_parent_rate, nf, 24); in cpg_pll_8_25_clk_determine_rate() 307 req->best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), in cpg_z_clk_determine_rate() 310 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
|
/linux/drivers/clk/mmp/ |
H A D | clk-mix.c | 263 req->best_parent_rate = parent_rate_best; in mmp_clk_mix_determine_rate() 374 unsigned long best_parent_rate) in mmp_clk_set_rate() argument 383 best_divisor = best_parent_rate / rate; in mmp_clk_set_rate() 393 if (parent_rate == best_parent_rate in mmp_clk_set_rate() 408 if (parent_rate == best_parent_rate) in mmp_clk_set_rate()
|
/linux/sound/soc/codecs/ |
H A D | tlv320aic32x4-clk.c | 213 ret = clk_aic32x4_pll_calc_muldiv(&settings, req->rate, req->best_parent_rate); in clk_aic32x4_pll_determine_rate() 217 req->rate = clk_aic32x4_pll_calc_rate(&settings, req->best_parent_rate); in clk_aic32x4_pll_determine_rate() 336 divisor = DIV_ROUND_UP(req->best_parent_rate, req->rate); in clk_aic32x4_div_determine_rate() 340 req->rate = DIV_ROUND_UP(req->best_parent_rate, divisor); in clk_aic32x4_div_determine_rate()
|
/linux/drivers/clk/hisilicon/ |
H A D | clk-hi3620.c | 287 req->best_parent_rate = 26000000; in mmc_clk_determine_rate() 290 req->best_parent_rate = 180000000; in mmc_clk_determine_rate() 293 req->best_parent_rate = 360000000; in mmc_clk_determine_rate() 296 req->best_parent_rate = 720000000; in mmc_clk_determine_rate() 300 req->best_parent_rate = 1440000000; in mmc_clk_determine_rate()
|