/linux-6.12.1/drivers/clk/ti/ |
D | clkt_dpll.c | 140 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 …]
|
/linux-6.12.1/drivers/clk/hisilicon/ |
D | clk-hi6220-stub.c | 143 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()
|
/linux-6.12.1/drivers/cpufreq/ |
D | vexpress-spc-cpufreq.c | 110 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()
|
D | highbank-cpufreq.c | 40 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()
|
/linux-6.12.1/drivers/clocksource/ |
D | timer-cadence-ttc.c | 251 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb() 252 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb() 255 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb() 258 ndata->new_rate); in ttc_rate_change_clocksource_cb() 259 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb() 282 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() 317 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb() 402 ttc->freq = ndata->new_rate; in ttc_rate_change_clockevent_cb() [all …]
|
D | arm_global_timer.c | 293 psv = DIV_ROUND_CLOSEST(ndata->new_rate, gt_target_rate); in gt_clk_rate_change_cb() 295 abs(gt_target_rate - (ndata->new_rate / psv)) > MAX_F_ERR) in gt_clk_rate_change_cb() 311 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb() 320 if (ndata->new_rate > ndata->old_rate) in gt_clk_rate_change_cb() 329 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
|
D | timer-sun5i.c | 160 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()
|
/linux-6.12.1/drivers/clk/samsung/ |
D | clk-cpu.c | 207 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change() 236 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change() 237 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change() 287 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change() 334 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change() 357 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change() 358 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change() 491 if (ndata->new_rate == E850_OSCCLK || ndata->old_rate == E850_OSCCLK) in exynos850_cpuclk_pre_rate_change() 495 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos850_cpuclk_pre_rate_change() 509 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos850_cpuclk_pre_rate_change() [all …]
|
/linux-6.12.1/drivers/clk/rockchip/ |
D | clk-cpu.c | 162 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()
|
/linux-6.12.1/drivers/clk/tegra/ |
D | clk-device.c | 74 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()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/ |
D | bf.h | 94 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()
|
D | bf.c | 382 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()
|
/linux-6.12.1/arch/arm/kernel/ |
D | smp_twd.c | 104 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()
|
/linux-6.12.1/drivers/clk/ |
D | clk.c | 74 unsigned long new_rate; member 1847 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument 1854 cnd.new_rate = new_rate; in __clk_notify() 2232 unsigned long new_rate; in __clk_speculate_rates() local 2237 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates() 2241 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates() 2250 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates() 2259 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument 2264 core->new_rate = new_rate; in clk_calc_subtree() 2273 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree() [all …]
|
D | clk-si5351.c | 1072 unsigned long new_rate, new_err, err; in si5351_clkout_determine_rate() local 1076 new_rate = req->best_parent_rate; in si5351_clkout_determine_rate() 1077 err = abs(new_rate - rate); in si5351_clkout_determine_rate() 1079 new_rate >>= 1; in si5351_clkout_determine_rate() 1080 new_err = abs(new_rate - rate); in si5351_clkout_determine_rate() 1103 unsigned long new_rate, new_err, err; in si5351_clkout_set_rate() local 1108 new_rate = parent_rate; in si5351_clkout_set_rate() 1109 err = abs(new_rate - rate); in si5351_clkout_set_rate() 1111 new_rate >>= 1; in si5351_clkout_set_rate() 1112 new_err = abs(new_rate - rate); in si5351_clkout_set_rate()
|
D | clk_test.c | 1260 unsigned long rate, new_rate; in clk_test_orphan_transparent_parent_mux_set_range() local 1271 new_rate = clk_get_rate(clk); in clk_test_orphan_transparent_parent_mux_set_range() 1272 KUNIT_ASSERT_GT(test, new_rate, 0); in clk_test_orphan_transparent_parent_mux_set_range() 1273 KUNIT_EXPECT_EQ(test, rate, new_rate); in clk_test_orphan_transparent_parent_mux_set_range() 2339 unsigned long new_rate; member 2363 ctx->pre_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback() 2370 ctx->post_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback() 2459 KUNIT_EXPECT_EQ(test, ctx->pre_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test() 2467 KUNIT_EXPECT_EQ(test, ctx->post_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-rs.c | 1077 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 …]
|
/linux-6.12.1/drivers/usb/serial/ |
D | cypress_m8.c | 232 static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) in analyze_baud_rate() argument 238 return new_rate; in analyze_baud_rate() 242 return new_rate; in analyze_baud_rate() 261 if (new_rate > 4800) { in analyze_baud_rate() 264 __func__, new_rate); in analyze_baud_rate() 270 if (new_rate <= 600) { in analyze_baud_rate() 276 __func__, new_rate); in analyze_baud_rate() 283 return new_rate; in analyze_baud_rate()
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-cadence.c | 1127 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 1140 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb() 1141 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 1146 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 1148 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb() 1149 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 1153 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()
|
/linux-6.12.1/arch/alpha/kernel/ |
D | core_marvel.c | 915 unsigned int new_rate = 0; in marvel_agp_configure() local 931 new_rate = 2; in marvel_agp_configure() 940 new_rate = 1; in marvel_agp_configure() 956 if (new_rate) { in marvel_agp_configure() 960 new_rate); in marvel_agp_configure() 962 agp->mode.bits.rate = new_rate; in marvel_agp_configure()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 1133 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() 2839 struct iwl_lq_sta *lq_sta, u32 new_rate) in rs_fill_link_cmd() argument 2853 rs_dbgfs_set_mcs(lq_sta, &new_rate, index); in rs_fill_link_cmd() 2856 rs_get_tbl_info_from_mcs(new_rate, lq_sta->band, in rs_fill_link_cmd() [all …]
|
/linux-6.12.1/drivers/clk/keystone/ |
D | sci-clk.c | 171 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()
|
/linux-6.12.1/drivers/clk/qcom/ |
D | clk-cbf-8996.c | 185 cnd->new_rate < DIV_THRESHOLD) in cbf_clk_notifier_cb() 190 if (cnd->new_rate < DIV_THRESHOLD && in cbf_clk_notifier_cb()
|
/linux-6.12.1/drivers/clk/microchip/ |
D | clk-core.c | 604 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()
|