Home
last modified time | relevance | path

Searched refs:new_rate (Results 1 – 25 of 52) sorted by relevance

123

/drivers/clk/ti/
Dclkt_dpll.c140 static int _dpll_test_mult(int *m, int n, unsigned long *new_rate, in _dpll_test_mult() argument
155 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
156 if (*new_rate > target_rate) { in _dpll_test_mult()
158 *new_rate = 0; in _dpll_test_mult()
164 *new_rate = 0; in _dpll_test_mult()
168 if (*new_rate == 0) in _dpll_test_mult()
169 *new_rate = _dpll_compute_new_rate(parent_rate, *m, n); in _dpll_test_mult()
290 unsigned long new_rate = 0; in omap2_dpll_round_rate() local
335 r = _dpll_test_mult(&m, n, &new_rate, target_rate, in omap2_dpll_round_rate()
343 delta = target_rate - new_rate; in omap2_dpll_round_rate()
[all …]
/drivers/clk/hisilicon/
Dclk-hi6220-stub.c143 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_set_rate() local
148 ret = hi6220_acpu_set_freq(stub_clk, new_rate); in hi6220_stub_clk_set_rate()
160 pr_debug("%s: set rate=%ldkHz\n", __func__, new_rate); in hi6220_stub_clk_set_rate()
168 unsigned long new_rate = rate / 1000; /* kHz */ in hi6220_stub_clk_round_rate() local
172 new_rate = hi6220_acpu_round_freq(stub_clk, new_rate); in hi6220_stub_clk_round_rate()
175 new_rate *= 1000; in hi6220_stub_clk_round_rate()
184 return new_rate; in hi6220_stub_clk_round_rate()
/drivers/cpufreq/
Dvexpress-spc-cpufreq.c110 u32 new_rate, prev_rate; in ve_spc_cpufreq_set_rate() local
121 new_rate = find_cluster_maxfreq(new_cluster); in ve_spc_cpufreq_set_rate()
122 new_rate = ACTUAL_FREQ(new_cluster, new_rate); in ve_spc_cpufreq_set_rate()
124 new_rate = rate; in ve_spc_cpufreq_set_rate()
127 ret = clk_set_rate(clk[new_cluster], new_rate * 1000); in ve_spc_cpufreq_set_rate()
137 if (clk_get_rate(clk[new_cluster]) != new_rate * 1000) in ve_spc_cpufreq_set_rate()
162 new_rate = find_cluster_maxfreq(old_cluster); in ve_spc_cpufreq_set_rate()
163 new_rate = ACTUAL_FREQ(old_cluster, new_rate); in ve_spc_cpufreq_set_rate()
165 if (new_rate && in ve_spc_cpufreq_set_rate()
166 clk_set_rate(clk[old_cluster], new_rate * 1000)) { in ve_spc_cpufreq_set_rate()
Dhighbank-cpufreq.c40 if (clk_data->new_rate > clk_data->old_rate) in hb_cpufreq_clk_notify()
41 while (hb_voltage_change(clk_data->new_rate)) in hb_cpufreq_clk_notify()
45 if (clk_data->new_rate < clk_data->old_rate) in hb_cpufreq_clk_notify()
46 while (hb_voltage_change(clk_data->new_rate)) in hb_cpufreq_clk_notify()
/drivers/clocksource/
Dtimer-cadence-ttc.c241 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
242 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
245 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
248 ndata->new_rate); in ttc_rate_change_clocksource_cb()
249 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
272 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
287 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
297 if (ndata->new_rate > ndata->old_rate) in ttc_rate_change_clocksource_cb()
307 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
392 ttc->freq = ndata->new_rate; in ttc_rate_change_clockevent_cb()
[all …]
Darm_global_timer.c295 psv = DIV_ROUND_CLOSEST(ndata->new_rate, gt_target_rate); in gt_clk_rate_change_cb()
297 abs(gt_target_rate - (ndata->new_rate / psv)) > MAX_F_ERR) in gt_clk_rate_change_cb()
313 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
322 if (ndata->new_rate > ndata->old_rate) in gt_clk_rate_change_cb()
331 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
Dtimer-sun5i.c160 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb()
161 clockevents_update_freq(&cs->clkevt, ndata->new_rate); in sun5i_rate_cb()
162 cs->ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb()
/drivers/clk/rockchip/
Dclk-cpu.c162 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
165 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
231 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
234 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
240 if (ndata->old_rate < ndata->new_rate) in rockchip_cpuclk_post_rate_change()
270 if (ndata->old_rate > ndata->new_rate) in rockchip_cpuclk_post_rate_change()
291 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_cpuclk_notifier_cb()
/drivers/clk/tegra/
Dclk-device.c74 if (cnd->new_rate > cnd->old_rate) in tegra_clock_change_notify()
75 err = tegra_clock_set_pd_state(clk_dev, cnd->new_rate); in tegra_clock_change_notify()
83 if (cnd->new_rate < cnd->old_rate) in tegra_clock_change_notify()
84 err = tegra_clock_set_pd_state(clk_dev, cnd->new_rate); in tegra_clock_change_notify()
/drivers/clk/samsung/
Dclk-cpu.c159 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
188 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
189 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change()
236 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change()
287 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
310 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
311 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change()
/drivers/net/wireless/realtek/rtw88/
Dbf.h94 u8 fixrate_en, u8 *new_rate);
111 u8 fixrate_en, u8 *new_rate) in rtw_chip_cfg_csi_rate() argument
115 fixrate_en, new_rate); in rtw_chip_cfg_csi_rate()
Dbf.c382 u8 fixrate_en, u8 *new_rate) in rtw_bf_cfg_csi_rate() argument
398 *new_rate = DESC_RATE54M; in rtw_bf_cfg_csi_rate()
407 *new_rate = DESC_RATE24M; in rtw_bf_cfg_csi_rate()
/drivers/clk/
Dclk.c74 unsigned long new_rate; member
1870 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument
1877 cnd.new_rate = new_rate; in __clk_notify()
2282 unsigned long new_rate; in __clk_speculate_rates() local
2287 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates()
2291 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates()
2300 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates()
2309 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument
2314 core->new_rate = new_rate; in clk_calc_subtree()
2323 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree()
[all …]
Dclk-si5351.c1069 unsigned long new_rate, new_err, err; in si5351_clkout_determine_rate() local
1073 new_rate = req->best_parent_rate; in si5351_clkout_determine_rate()
1074 err = abs(new_rate - rate); in si5351_clkout_determine_rate()
1076 new_rate >>= 1; in si5351_clkout_determine_rate()
1077 new_err = abs(new_rate - rate); in si5351_clkout_determine_rate()
1100 unsigned long new_rate, new_err, err; in si5351_clkout_set_rate() local
1105 new_rate = parent_rate; in si5351_clkout_set_rate()
1106 err = abs(new_rate - rate); in si5351_clkout_set_rate()
1108 new_rate >>= 1; in si5351_clkout_set_rate()
1109 new_err = abs(new_rate - rate); in si5351_clkout_set_rate()
Dclk_test.c1284 unsigned long rate, new_rate; in clk_test_orphan_transparent_parent_mux_set_range() local
1295 new_rate = clk_get_rate(clk); in clk_test_orphan_transparent_parent_mux_set_range()
1296 KUNIT_ASSERT_GT(test, new_rate, 0); in clk_test_orphan_transparent_parent_mux_set_range()
1297 KUNIT_EXPECT_EQ(test, rate, new_rate); in clk_test_orphan_transparent_parent_mux_set_range()
2269 unsigned long new_rate; member
2293 ctx->pre_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback()
2300 ctx->post_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback()
2389 KUNIT_EXPECT_EQ(test, ctx->pre_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test()
2397 KUNIT_EXPECT_EQ(test, ctx->post_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test()
/drivers/net/wireless/intel/iwlegacy/
D4965-rs.c1077 s32 new_rate, high, low, start_hi; in il4965_rs_get_best_rate() local
1081 new_rate = high = low = start_hi = RATE_INVALID; in il4965_rs_get_best_rate()
1116 new_rate = start_hi; in il4965_rs_get_best_rate()
1120 new_rate = rate; in il4965_rs_get_best_rate()
1135 if (new_rate != RATE_INVALID) in il4965_rs_get_best_rate()
1145 new_rate = rate; in il4965_rs_get_best_rate()
1151 return new_rate; in il4965_rs_get_best_rate()
2357 u32 new_rate) in il4965_rs_fill_link_cmd() argument
2369 il4965_rs_dbgfs_set_mcs(lq_sta, &new_rate, idx); in il4965_rs_fill_link_cmd()
2372 il4965_rs_get_tbl_info_from_mcs(new_rate, lq_sta->band, &tbl_type, in il4965_rs_fill_link_cmd()
[all …]
/drivers/usb/serial/
Dcypress_m8.c235 static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) in analyze_baud_rate() argument
241 return new_rate; in analyze_baud_rate()
245 return new_rate; in analyze_baud_rate()
264 if (new_rate > 4800) { in analyze_baud_rate()
267 __func__, new_rate); in analyze_baud_rate()
273 if (new_rate <= 600) { in analyze_baud_rate()
279 __func__, new_rate); in analyze_baud_rate()
286 return new_rate; in analyze_baud_rate()
/drivers/i2c/busses/
Di2c-cadence.c1129 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1142 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1143 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1148 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1150 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1151 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1155 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c940 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()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c1133 s32 new_rate, high, low, start_hi; in rs_get_best_rate() local
1137 new_rate = high = low = start_hi = IWL_RATE_INVALID; in rs_get_best_rate()
1172 new_rate = start_hi; in rs_get_best_rate()
1176 new_rate = rate; in rs_get_best_rate()
1191 if (new_rate != IWL_RATE_INVALID) in rs_get_best_rate()
1201 new_rate = rate; in rs_get_best_rate()
1207 return new_rate; in rs_get_best_rate()
2844 struct iwl_lq_sta *lq_sta, u32 new_rate) in rs_fill_link_cmd() argument
2858 rs_dbgfs_set_mcs(lq_sta, &new_rate, index); in rs_fill_link_cmd()
2861 rs_get_tbl_info_from_mcs(new_rate, lq_sta->band, in rs_fill_link_cmd()
[all …]
/drivers/clk/keystone/
Dsci-clk.c171 u64 new_rate; in sci_clk_determine_rate() local
184 &new_rate); in sci_clk_determine_rate()
193 clk->cached_res = new_rate; in sci_clk_determine_rate()
195 req->rate = new_rate; in sci_clk_determine_rate()
/drivers/clk/microchip/
Dclk-core.c604 unsigned long new_rate, best_rate = rate; in spll_calc_mult_div() local
615 new_rate = rate64; in spll_calc_mult_div()
616 delta = abs(rate - new_rate); in spll_calc_mult_div()
617 if ((new_rate >= rate) && (delta < best_delta)) { in spll_calc_mult_div()
619 best_rate = new_rate; in spll_calc_mult_div()
/drivers/clk/qcom/
Dclk-cbf-8996.c196 cnd->new_rate < DIV_THRESHOLD) in cbf_clk_notifier_cb()
201 if (cnd->new_rate < DIV_THRESHOLD && in cbf_clk_notifier_cb()
/drivers/clk/nxp/
Dclk-lpc32xx.c537 unsigned long new_rate; in clk_pll_set_rate() local
545 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate()
550 new_rate = parent_rate / (1 << (clk->p_div)); in clk_pll_set_rate()
554 new_rate = parent_rate; in clk_pll_set_rate()
561 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate()
568 new_rate = (parent_rate * clk->m_div) / in clk_pll_set_rate()
576 if (new_rate != rate) in clk_pll_set_rate()
/drivers/clk/at91/
Dclk-master.c254 unsigned long flags, new_parent_rate, new_rate; in clk_master_div_notifier_fn() local
304 new_parent_rate = cnd->new_rate * characteristics->divisors[div]; in clk_master_div_notifier_fn()
310 new_rate = DIV_ROUND_CLOSEST_ULL(new_parent_rate, in clk_master_div_notifier_fn()
313 tmp_diff = characteristics->output.max - new_rate; in clk_master_div_notifier_fn()

123