/linux-6.1.9/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.1.9/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.1.9/drivers/cpufreq/ |
D | vexpress-spc-cpufreq.c | 111 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()
|
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.1.9/drivers/clocksource/ |
D | timer-cadence-ttc.c | 240 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 …]
|
D | arm_global_timer.c | 295 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()
|
D | timer-sun5i.c | 173 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb_clksrc() 254 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt() 255 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb_clkevt()
|
/linux-6.1.9/drivers/clk/rockchip/ |
D | clk-cpu.c | 126 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()
|
/linux-6.1.9/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.1.9/drivers/clk/samsung/ |
D | clk-cpu.c | 159 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()
|
/linux-6.1.9/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 | 381 u8 fixrate_en, u8 *new_rate) in rtw_bf_cfg_csi_rate() argument 397 *new_rate = DESC_RATE54M; in rtw_bf_cfg_csi_rate() 406 *new_rate = DESC_RATE24M; in rtw_bf_cfg_csi_rate()
|
/linux-6.1.9/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.1.9/drivers/clk/ |
D | clk.c | 69 unsigned long new_rate; member 1668 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument 1675 cnd.new_rate = new_rate; in __clk_notify() 2053 unsigned long new_rate; in __clk_speculate_rates() local 2058 new_rate = clk_recalc(core, parent_rate); in __clk_speculate_rates() 2062 ret = __clk_notify(core, PRE_RATE_CHANGE, core->rate, new_rate); in __clk_speculate_rates() 2071 ret = __clk_speculate_rates(child, new_rate); in __clk_speculate_rates() 2080 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree() argument 2085 core->new_rate = new_rate; in clk_calc_subtree() 2094 child->new_rate = clk_recalc(child, new_rate); in clk_calc_subtree() [all …]
|
D | clk-si5351.c | 1063 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()
|
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() 2245 unsigned long new_rate; member 2269 ctx->pre_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback() 2276 ctx->post_rate_change.new_rate = clk_data->new_rate; in clk_mux_notifier_callback() 2365 KUNIT_EXPECT_EQ(test, ctx->pre_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test() 2373 KUNIT_EXPECT_EQ(test, ctx->post_rate_change.new_rate, DUMMY_CLOCK_RATE_2); in clk_mux_notifier_set_parent_test()
|
/linux-6.1.9/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.1.9/drivers/i2c/busses/ |
D | i2c-cadence.c | 1125 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 1138 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb() 1139 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 1144 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb() 1146 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb() 1147 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb() 1151 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
|
D | i2c-rk3x.c | 938 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()
|
/linux-6.1.9/drivers/usb/serial/ |
D | cypress_m8.c | 235 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()
|
/linux-6.1.9/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.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 1150 s32 new_rate, high, low, start_hi; in rs_get_best_rate() local 1154 new_rate = high = low = start_hi = IWL_RATE_INVALID; in rs_get_best_rate() 1189 new_rate = start_hi; in rs_get_best_rate() 1193 new_rate = rate; in rs_get_best_rate() 1208 if (new_rate != IWL_RATE_INVALID) in rs_get_best_rate() 1218 new_rate = rate; in rs_get_best_rate() 1224 return new_rate; in rs_get_best_rate() 2861 struct iwl_lq_sta *lq_sta, u32 new_rate) in rs_fill_link_cmd() argument 2875 rs_dbgfs_set_mcs(lq_sta, &new_rate, index); in rs_fill_link_cmd() 2878 rs_get_tbl_info_from_mcs(new_rate, lq_sta->band, in rs_fill_link_cmd() [all …]
|
/linux-6.1.9/drivers/clk/keystone/ |
D | sci-clk.c | 172 u64 new_rate; in sci_clk_determine_rate() local 185 &new_rate); in sci_clk_determine_rate() 194 clk->cached_res = new_rate; in sci_clk_determine_rate() 196 req->rate = new_rate; in sci_clk_determine_rate()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/thunderbolt/ |
D | tunnel.c | 462 u32 out_rate, u32 out_lanes, u32 *new_rate, in tb_dp_reduce_bandwidth() argument 495 *new_rate = dp_bw[i][0]; in tb_dp_reduce_bandwidth() 564 u32 new_rate, new_lanes, new_bw; in tb_dp_xchg_caps() local 567 out_rate, out_lanes, &new_rate, in tb_dp_xchg_caps() 574 new_bw = tb_dp_bandwidth(new_rate, new_lanes); in tb_dp_xchg_caps() 576 new_rate, new_lanes, new_bw); in tb_dp_xchg_caps() 582 out_dp_cap = tb_dp_cap_set_rate(out_dp_cap, new_rate); in tb_dp_xchg_caps()
|