/linux-4.19.296/drivers/clk/ti/ |
D | clkt_dpll.c | 143 static int _dpll_test_mult(int *m, int n, unsigned long *new_rate, in _dpll_test_mult() argument 158 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult() 159 if (*new_rate > target_rate) { in _dpll_test_mult() 161 *new_rate = 0; in _dpll_test_mult() 167 *new_rate = 0; in _dpll_test_mult() 171 if (*new_rate == 0) in _dpll_test_mult() 172 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult() 292 unsigned long new_rate = 0; in omap2_dpll_round_rate() local 337 r = _dpll_test_mult(&m, n, &new_rate, target_rate, in omap2_dpll_round_rate() 345 delta = target_rate - new_rate; in omap2_dpll_round_rate() [all …]
|
/linux-4.19.296/drivers/clk/hisilicon/ |
D | clk-hi6220-stub.c | 147 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_set_rate() local 152 ret = hi6220_acpu_set_freq(stub_clk, new_rate); in hi6220_stub_clk_set_rate() 164 pr_debug("%s: set rate=%ldkHz\n", __func__, new_rate); in hi6220_stub_clk_set_rate() 172 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_round_rate() local 176 new_rate = hi6220_acpu_round_freq(stub_clk, new_rate); in hi6220_stub_clk_round_rate() 179 new_rate *= 1000; in hi6220_stub_clk_round_rate() 188 return new_rate; in hi6220_stub_clk_round_rate()
|
/linux-4.19.296/drivers/cpufreq/ |
D | highbank-cpufreq.c | 43 if (clk_data->new_rate > clk_data->old_rate) in hb_cpufreq_clk_notify() 44 while (hb_voltage_change(clk_data->new_rate)) in hb_cpufreq_clk_notify() 48 if (clk_data->new_rate < clk_data->old_rate) in hb_cpufreq_clk_notify() 49 while (hb_voltage_change(clk_data->new_rate)) in hb_cpufreq_clk_notify()
|
D | arm_big_little.c | 133 u32 new_rate, prev_rate; in bL_cpufreq_set_rate() local 144 new_rate = find_cluster_maxfreq(new_cluster); in bL_cpufreq_set_rate() 145 new_rate = ACTUAL_FREQ(new_cluster, new_rate); in bL_cpufreq_set_rate() 147 new_rate = rate; in bL_cpufreq_set_rate() 151 __func__, cpu, old_cluster, new_cluster, new_rate); in bL_cpufreq_set_rate() 153 ret = clk_set_rate(clk[new_cluster], new_rate * 1000); in bL_cpufreq_set_rate() 163 if (clk_get_rate(clk[new_cluster]) != new_rate * 1000) in bL_cpufreq_set_rate() 193 new_rate = find_cluster_maxfreq(old_cluster); in bL_cpufreq_set_rate() 194 new_rate = ACTUAL_FREQ(old_cluster, new_rate); in bL_cpufreq_set_rate() 196 if (new_rate) { in bL_cpufreq_set_rate() [all …]
|
/linux-4.19.296/drivers/clk/rockchip/ |
D | clk-cpu.c | 132 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change() 135 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change() 193 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change() 196 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change() 202 if (ndata->old_rate < ndata->new_rate) in rockchip_cpuclk_post_rate_change() 219 if (ndata->old_rate > ndata->new_rate) in rockchip_cpuclk_post_rate_change() 240 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_cpuclk_notifier_cb()
|
D | clk-mmc-phase.c | 187 if (ndata->old_rate <= ndata->new_rate) in rockchip_mmc_clk_rate_notify()
|
D | clk.c | 154 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_clk_frac_notifier_cb()
|
/linux-4.19.296/drivers/clk/samsung/ |
D | clk-cpu.c | 161 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change() 190 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change() 191 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change() 238 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change() 289 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change() 312 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change() 313 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change()
|
/linux-4.19.296/drivers/clk/ |
D | clk.c | 64 unsigned long new_rate; member 1289 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument 1296 cnd.new_rate = new_rate; in __clk_notify() 1623 unsigned long new_rate; in __clk_speculate_rates() local 1628 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates() 1632 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates() 1641 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates() 1650 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument 1655 core->new_rate = new_rate; in clk_calc_subtree() 1664 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree() [all …]
|
D | clk-si5351.c | 1060 unsigned long new_rate, new_err, err; in si5351_clkout_round_rate() local 1064 new_rate = *parent_rate; in si5351_clkout_round_rate() 1065 err = abs(new_rate - rate); in si5351_clkout_round_rate() 1067 new_rate >>= 1; in si5351_clkout_round_rate() 1068 new_err = abs(new_rate - rate); in si5351_clkout_round_rate() 1090 unsigned long new_rate, new_err, err; in si5351_clkout_set_rate() local 1095 new_rate = parent_rate; in si5351_clkout_set_rate() 1096 err = abs(new_rate - rate); in si5351_clkout_set_rate() 1098 new_rate >>= 1; in si5351_clkout_set_rate() 1099 new_err = abs(new_rate - rate); in si5351_clkout_set_rate()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-cadence.c | 781 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 794 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb() 795 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 800 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 802 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb() 803 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 807 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
|
D | i2c-rk3x.c | 940 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb() 945 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb() 946 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb() 951 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb() 952 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb() 956 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
|
D | i2c-imx.c | 540 i2c_imx_set_clk(i2c_imx, ndata->new_rate); in i2c_imx_clk_notifier_call()
|
/linux-4.19.296/drivers/clk/keystone/ |
D | sci-clk.c | 173 u64 new_rate; in sci_clk_determine_rate() local 181 &new_rate); in sci_clk_determine_rate() 189 req->rate = new_rate; in sci_clk_determine_rate()
|
/linux-4.19.296/drivers/clk/microchip/ |
D | clk-core.c | 609 unsigned long new_rate, best_rate = rate; in spll_calc_mult_div() local 620 new_rate = rate64; in spll_calc_mult_div() 621 delta = abs(rate - new_rate); in spll_calc_mult_div() 622 if ((new_rate >= rate) && (delta < best_delta)) { in spll_calc_mult_div() 624 best_rate = new_rate; in spll_calc_mult_div()
|
/linux-4.19.296/drivers/clk/nxp/ |
D | clk-lpc32xx.c | 542 unsigned long new_rate; in clk_pll_set_rate() local 550 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate() 555 new_rate = parent_rate / (1 << (clk->p_div)); in clk_pll_set_rate() 559 new_rate = parent_rate; in clk_pll_set_rate() 566 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate() 573 new_rate = (parent_rate * clk->m_div) / in clk_pll_set_rate() 581 if (new_rate != rate) in clk_pll_set_rate()
|
/linux-4.19.296/include/linux/ |
D | clk.h | 77 unsigned long new_rate; member
|
/linux-4.19.296/drivers/media/rc/img-ir/ |
D | img-ir-hw.c | 909 change->old_rate, change->new_rate); in img_ir_change_frequency() 912 if (hw->clk_hz == change->new_rate) in img_ir_change_frequency() 914 hw->clk_hz = change->new_rate; in img_ir_change_frequency()
|