Home
last modified time | relevance | path

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

12

/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.c111 u32 new_rate, prev_rate; in ve_spc_cpufreq_set_rate() local
122 new_rate = find_cluster_maxfreq(new_cluster); in ve_spc_cpufreq_set_rate()
123 new_rate = ACTUAL_FREQ(new_cluster, new_rate); in ve_spc_cpufreq_set_rate()
125 new_rate = rate; in ve_spc_cpufreq_set_rate()
128 ret = clk_set_rate(clk[new_cluster], new_rate * 1000); in ve_spc_cpufreq_set_rate()
138 if (clk_get_rate(clk[new_cluster]) != new_rate * 1000) in ve_spc_cpufreq_set_rate()
163 new_rate = find_cluster_maxfreq(old_cluster); in ve_spc_cpufreq_set_rate()
164 new_rate = ACTUAL_FREQ(old_cluster, new_rate); in ve_spc_cpufreq_set_rate()
166 if (new_rate && in ve_spc_cpufreq_set_rate()
167 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.c240 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
241 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
244 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
247 ndata->new_rate); in ttc_rate_change_clocksource_cb()
248 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
271 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
286 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
296 if (ndata->new_rate > ndata->old_rate) in ttc_rate_change_clocksource_cb()
306 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
391 ttc->freq = ndata->new_rate; in ttc_rate_change_clockevent_cb()
[all …]
Darm_global_timer.c295 psv = DIV_ROUND_CLOSEST(ndata->new_rate, in gt_clk_rate_change_cb()
298 if (abs(gt_target_rate - (ndata->new_rate / psv)) > MAX_F_ERR) in gt_clk_rate_change_cb()
314 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
323 if (ndata->new_rate > ndata->old_rate) in gt_clk_rate_change_cb()
332 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
Dtimer-sun5i.c176 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb_clksrc()
257 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt()
258 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb_clkevt()
/drivers/clk/rockchip/
Dclk-cpu.c126 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
129 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
186 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
189 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
195 if (ndata->old_rate < ndata->new_rate) in rockchip_cpuclk_post_rate_change()
217 if (ndata->old_rate > ndata->new_rate) in rockchip_cpuclk_post_rate_change()
238 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_cpuclk_notifier_cb()
/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.h91 u8 fixrate_en, u8 *new_rate);
108 u8 fixrate_en, u8 *new_rate) in rtw_chip_cfg_csi_rate() argument
112 fixrate_en, new_rate); in rtw_chip_cfg_csi_rate()
Dbf.c377 u8 fixrate_en, u8 *new_rate) in rtw_bf_cfg_csi_rate() argument
393 *new_rate = DESC_RATE54M; in rtw_bf_cfg_csi_rate()
402 *new_rate = DESC_RATE24M; in rtw_bf_cfg_csi_rate()
/drivers/clk/
Dclk.c69 unsigned long new_rate; member
1562 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument
1569 cnd.new_rate = new_rate; in __clk_notify()
1968 unsigned long new_rate; in __clk_speculate_rates() local
1973 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates()
1977 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates()
1986 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates()
1995 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument
2000 core->new_rate = new_rate; in clk_calc_subtree()
2009 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree()
[all …]
Dclk-si5351.c1063 unsigned long new_rate, new_err, err; in si5351_clkout_round_rate() local
1067 new_rate = *parent_rate; in si5351_clkout_round_rate()
1068 err = abs(new_rate - rate); in si5351_clkout_round_rate()
1070 new_rate >>= 1; in si5351_clkout_round_rate()
1071 new_err = abs(new_rate - rate); in si5351_clkout_round_rate()
1093 unsigned long new_rate, new_err, err; in si5351_clkout_set_rate() local
1098 new_rate = parent_rate; in si5351_clkout_set_rate()
1099 err = abs(new_rate - rate); in si5351_clkout_set_rate()
1101 new_rate >>= 1; in si5351_clkout_set_rate()
1102 new_err = abs(new_rate - rate); in si5351_clkout_set_rate()
/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.c234 static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) in analyze_baud_rate() argument
240 return new_rate; in analyze_baud_rate()
244 return new_rate; in analyze_baud_rate()
263 if (new_rate > 4800) { in analyze_baud_rate()
266 __func__, new_rate); in analyze_baud_rate()
272 if (new_rate <= 600) { in analyze_baud_rate()
278 __func__, new_rate); in analyze_baud_rate()
285 return new_rate; in analyze_baud_rate()
/drivers/i2c/busses/
Di2c-cadence.c1115 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1128 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1129 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1134 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1136 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1137 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1141 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.c1155 s32 new_rate, high, low, start_hi; in rs_get_best_rate() local
1159 new_rate = high = low = start_hi = IWL_RATE_INVALID; in rs_get_best_rate()
1194 new_rate = start_hi; in rs_get_best_rate()
1198 new_rate = rate; in rs_get_best_rate()
1213 if (new_rate != IWL_RATE_INVALID) in rs_get_best_rate()
1223 new_rate = rate; in rs_get_best_rate()
1229 return new_rate; in rs_get_best_rate()
2866 struct iwl_lq_sta *lq_sta, u32 new_rate) in rs_fill_link_cmd() argument
2880 rs_dbgfs_set_mcs(lq_sta, &new_rate, index); in rs_fill_link_cmd()
2883 rs_get_tbl_info_from_mcs(new_rate, lq_sta->band, in rs_fill_link_cmd()
[all …]
/drivers/clk/keystone/
Dsci-clk.c180 u64 new_rate; in sci_clk_determine_rate() local
193 &new_rate); in sci_clk_determine_rate()
202 clk->cached_res = new_rate; in sci_clk_determine_rate()
204 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/thunderbolt/
Dtunnel.c459 u32 out_rate, u32 out_lanes, u32 *new_rate, in tb_dp_reduce_bandwidth() argument
492 *new_rate = dp_bw[i][0]; in tb_dp_reduce_bandwidth()
561 u32 new_rate, new_lanes, new_bw; in tb_dp_xchg_caps() local
564 out_rate, out_lanes, &new_rate, in tb_dp_xchg_caps()
571 new_bw = tb_dp_bandwidth(new_rate, new_lanes); in tb_dp_xchg_caps()
573 new_rate, new_lanes, new_bw); in tb_dp_xchg_caps()
579 out_dp_cap = tb_dp_cap_set_rate(out_dp_cap, new_rate); in tb_dp_xchg_caps()
/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/md/bcache/
Dwriteback.c89 uint32_t new_rate; in __update_writeback_rate() local
149 new_rate = clamp_t(int32_t, (proportional_scaled + integral_scaled), in __update_writeback_rate()
154 dc->writeback_rate_change = new_rate - in __update_writeback_rate()
156 atomic_long_set(&dc->writeback_rate.rate, new_rate); in __update_writeback_rate()
/drivers/net/wan/
Dixp4xx_hss.c1200 u64 new_rate; in check_clock() local
1203 new_rate = timer_freq * (u64)(c + 1); in check_clock()
1204 do_div(new_rate, a * (c + 1) + b + 1); in check_clock()
1205 new_diff = abs((u32)new_rate - rate); in check_clock()
1208 *best = new_rate; in check_clock()
/drivers/mmc/host/
Dusdhi6rol0.c747 unsigned long new_rate; in usdhi6_clk_set() local
752 new_rate = host->imclk; in usdhi6_clk_set()
755 new_rate = host->imclk / 2; in usdhi6_clk_set()
761 new_rate = host->imclk / div; in usdhi6_clk_set()
764 if (host->rate == new_rate) in usdhi6_clk_set()
767 host->rate = new_rate; in usdhi6_clk_set()
770 rate, (val & 0xff) << 2, new_rate); in usdhi6_clk_set()

12