Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
289 unsigned long new_rate = 0; in omap2_dpll_round_rate() local
334 r = _dpll_test_mult(&m, n, &new_rate, target_rate, in omap2_dpll_round_rate()
342 delta = target_rate - new_rate; in omap2_dpll_round_rate()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/cpufreq/
Dvexpress-spc-cpufreq.c113 u32 new_rate, prev_rate; in ve_spc_cpufreq_set_rate() local
124 new_rate = find_cluster_maxfreq(new_cluster); in ve_spc_cpufreq_set_rate()
125 new_rate = ACTUAL_FREQ(new_cluster, new_rate); in ve_spc_cpufreq_set_rate()
127 new_rate = rate; in ve_spc_cpufreq_set_rate()
130 ret = clk_set_rate(clk[new_cluster], new_rate * 1000); in ve_spc_cpufreq_set_rate()
140 if (clk_get_rate(clk[new_cluster]) != new_rate * 1000) in ve_spc_cpufreq_set_rate()
165 new_rate = find_cluster_maxfreq(old_cluster); in ve_spc_cpufreq_set_rate()
166 new_rate = ACTUAL_FREQ(old_cluster, new_rate); in ve_spc_cpufreq_set_rate()
168 if (new_rate && in ve_spc_cpufreq_set_rate()
169 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()
/kernel/linux/linux-5.10/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 …]
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()
/kernel/linux/linux-5.10/drivers/clk/rockchip/
Dclk-cpu.c129 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
132 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
190 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
193 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
199 if (ndata->old_rate < ndata->new_rate) in rockchip_cpuclk_post_rate_change()
216 if (ndata->old_rate > ndata->new_rate) in rockchip_cpuclk_post_rate_change()
237 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_cpuclk_notifier_cb()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsmp_twd.c104 static void twd_update_frequency(void *new_rate) in twd_update_frequency() argument
106 twd_timer_rate = *((unsigned long *) new_rate); in twd_update_frequency()
123 (void *)&cnd->new_rate, 1); in twd_rate_change()
/kernel/linux/linux-5.10/drivers/clk/
Dclk.c69 unsigned long new_rate; member
1499 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument
1506 cnd.new_rate = new_rate; in __clk_notify()
1878 unsigned long new_rate; in __clk_speculate_rates() local
1883 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates()
1887 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates()
1896 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates()
1905 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument
1910 core->new_rate = new_rate; in clk_calc_subtree()
1919 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree()
[all …]
Dclk-si5351.c1056 unsigned long new_rate, new_err, err; in si5351_clkout_round_rate() local
1060 new_rate = *parent_rate; in si5351_clkout_round_rate()
1061 err = abs(new_rate - rate); in si5351_clkout_round_rate()
1063 new_rate >>= 1; in si5351_clkout_round_rate()
1064 new_err = abs(new_rate - rate); in si5351_clkout_round_rate()
1086 unsigned long new_rate, new_err, err; in si5351_clkout_set_rate() local
1091 new_rate = parent_rate; in si5351_clkout_set_rate()
1092 err = abs(new_rate - rate); in si5351_clkout_set_rate()
1094 new_rate >>= 1; in si5351_clkout_set_rate()
1095 new_err = abs(new_rate - rate); in si5351_clkout_set_rate()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cadence.c1076 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1089 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1090 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1095 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1097 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1098 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1102 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c938 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb()
943 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
944 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
949 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
950 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
954 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dcore_marvel.c962 unsigned int new_rate = 0; in marvel_agp_configure() local
978 new_rate = 2; in marvel_agp_configure()
987 new_rate = 1; in marvel_agp_configure()
1003 if (new_rate) { in marvel_agp_configure()
1007 new_rate); in marvel_agp_configure()
1009 agp->mode.bits.rate = new_rate; in marvel_agp_configure()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dtunnel.c379 u32 out_rate, u32 out_lanes, u32 *new_rate, in tb_dp_reduce_bandwidth() argument
412 *new_rate = dp_bw[i][0]; in tb_dp_reduce_bandwidth()
481 u32 new_rate, new_lanes, new_bw; in tb_dp_xchg_caps() local
484 out_rate, out_lanes, &new_rate, in tb_dp_xchg_caps()
491 new_bw = tb_dp_bandwidth(new_rate, new_lanes); in tb_dp_xchg_caps()
493 new_rate, new_lanes, new_bw); in tb_dp_xchg_caps()
499 out_dp_cap = tb_dp_cap_set_rate(out_dp_cap, new_rate); in tb_dp_xchg_caps()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dwriteback.c89 uint32_t new_rate; in __update_writeback_rate() local
111 new_rate = clamp_t(int32_t, (proportional_scaled + integral_scaled), in __update_writeback_rate()
116 dc->writeback_rate_change = new_rate - in __update_writeback_rate()
118 atomic_long_set(&dc->writeback_rate.rate, new_rate); in __update_writeback_rate()
/kernel/linux/linux-5.10/drivers/net/wan/
Dixp4xx_hss.c1190 u64 new_rate; in check_clock() local
1193 new_rate = timer_freq * (u64)(c + 1); in check_clock()
1194 do_div(new_rate, a * (c + 1) + b + 1); in check_clock()
1195 new_diff = abs((u32)new_rate - rate); in check_clock()
1198 *best = new_rate; in check_clock()

123