Home
last modified time | relevance | path

Searched refs:old_rate (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/drivers/clocksource/
Dtimer-cadence-ttc.c241 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
243 ndata->old_rate); in ttc_rate_change_clocksource_cb()
244 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
247 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
250 rate_high = ndata->old_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()
Darm_global_timer.c314 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()
/linux-6.6.21/drivers/clk/rockchip/
Dclk-cpu.c179 if (alt_prate > ndata->old_rate) { in rockchip_cpuclk_pre_rate_change()
181 alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; in rockchip_cpuclk_pre_rate_change()
196 __func__, alt_div, alt_prate, ndata->old_rate); in rockchip_cpuclk_pre_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()
Dclk-mmc-phase.c178 if (ndata->old_rate <= ndata->new_rate) in rockchip_mmc_clk_rate_notify()
Dclk.c150 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_clk_frac_notifier_cb()
/linux-6.6.21/drivers/clk/tegra/
Dclk-device.c74 if (cnd->new_rate > cnd->old_rate) in tegra_clock_change_notify()
79 err = tegra_clock_set_pd_state(clk_dev, cnd->old_rate); in tegra_clock_change_notify()
83 if (cnd->new_rate < cnd->old_rate) in tegra_clock_change_notify()
/linux-6.6.21/drivers/clk/samsung/
Dclk-cpu.c188 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()
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.6.21/drivers/cpufreq/
Dhighbank-cpufreq.c40 if (clk_data->new_rate > clk_data->old_rate) in hb_cpufreq_clk_notify()
45 if (clk_data->new_rate < clk_data->old_rate) in hb_cpufreq_clk_notify()
/linux-6.6.21/drivers/clk/meson/
Dclk-pll.c409 unsigned long old_rate; in meson_clk_pll_set_rate() local
415 old_rate = clk_hw_get_rate(hw); in meson_clk_pll_set_rate()
440 __func__, old_rate); in meson_clk_pll_set_rate()
447 meson_clk_pll_set_rate(hw, old_rate, parent_rate); in meson_clk_pll_set_rate()
/linux-6.6.21/drivers/clk/qcom/
Dclk-cbf-8996.c195 if (cnd->old_rate > DIV_THRESHOLD && in cbf_clk_notifier_cb()
202 cnd->old_rate > DIV_THRESHOLD) in cbf_clk_notifier_cb()
Dclk-cpu-8996.c565 cnd->old_rate > DIV_2_THRESHOLD) in cpu_clk_notifier_cb()
572 cnd->old_rate > DIV_2_THRESHOLD) in cpu_clk_notifier_cb()
/linux-6.6.21/drivers/i2c/busses/
Di2c-cadence.c1141 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1149 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1154 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1155 cdns_i2c_setclk(ndata->old_rate, id); in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c945 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
951 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
956 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
957 rk3x_i2c_adapt_div(i2c, ndata->old_rate); in rk3x_i2c_clk_notifier_cb()
/linux-6.6.21/sound/soc/rockchip/
Drockchip_i2s_tdm.c1030 unsigned long old_rate; in rockchip_i2s_tdm_clk_compensation_put() local
1038 old_rate = clk_get_rate(i2s_tdm->mclk_root0); in rockchip_i2s_tdm_clk_compensation_put()
1043 if (old_rate != clk_get_rate(i2s_tdm->mclk_root0)) in rockchip_i2s_tdm_clk_compensation_put()
1049 old_rate = clk_get_rate(i2s_tdm->mclk_root1); in rockchip_i2s_tdm_clk_compensation_put()
1054 if (old_rate != clk_get_rate(i2s_tdm->mclk_root1)) in rockchip_i2s_tdm_clk_compensation_put()
/linux-6.6.21/drivers/clk/
Dclk_test.c2268 unsigned long old_rate; member
2292 ctx->pre_rate_change.old_rate = clk_data->old_rate; in clk_mux_notifier_callback()
2299 ctx->post_rate_change.old_rate = clk_data->old_rate; in clk_mux_notifier_callback()
2388 KUNIT_EXPECT_EQ(test, ctx->pre_rate_change.old_rate, DUMMY_CLOCK_RATE_1); in clk_mux_notifier_set_parent_test()
2396 KUNIT_EXPECT_EQ(test, ctx->post_rate_change.old_rate, DUMMY_CLOCK_RATE_1); in clk_mux_notifier_set_parent_test()
Dclk.c1737 unsigned long old_rate, unsigned long new_rate) in __clk_notify() argument
1743 cnd.old_rate = old_rate; in __clk_notify()
1848 unsigned long old_rate; in __clk_recalc_rates() local
1854 old_rate = core->rate; in __clk_recalc_rates()
1868 __clk_notify(core, msg, old_rate, core->rate); in __clk_recalc_rates()
2301 unsigned long old_rate; in clk_change_rate() local
2307 old_rate = core->rate; in clk_change_rate()
2362 if (core->notifier_count && old_rate != core->rate) in clk_change_rate()
2363 __clk_notify(core, POST_RATE_CHANGE, old_rate, core->rate); in clk_change_rate()
/linux-6.6.21/sound/pci/ice1712/
Dice1724.c630 unsigned int i, old_rate; in snd_vt1724_set_pro_rate() local
653 old_rate = ice->get_rate(ice); in snd_vt1724_set_pro_rate()
654 if (force || (old_rate != rate)) in snd_vt1724_set_pro_rate()
1881 unsigned int old_rate, new_rate; in snd_vt1724_pro_internal_clock_put() local
1891 old_rate = 0; in snd_vt1724_pro_internal_clock_put()
1893 old_rate = ice->get_rate(ice); in snd_vt1724_pro_internal_clock_put()
1909 if (old_rate != new_rate && !new_rate) { in snd_vt1724_pro_internal_clock_put()
1919 return old_rate != new_rate; in snd_vt1724_pro_internal_clock_put()
/linux-6.6.21/include/linux/
Dclk.h73 unsigned long old_rate; member
/linux-6.6.21/drivers/hsi/controllers/
Domap_ssi_core.c304 clk_data->old_rate, clk_data->new_rate); in ssi_clk_event()
/linux-6.6.21/drivers/net/ethernet/ti/
Ddavinci_cpdma.c411 u32 old_rate = ch->rate; in cpdma_chan_fit_rate() local
439 ch->rate = old_rate; in cpdma_chan_fit_rate()
/linux-6.6.21/drivers/clk/at91/
Dclk-master.c286 cnd->old_rate * characteristics->divisors[div], in clk_master_div_notifier_fn()
/linux-6.6.21/drivers/memory/tegra/
Dtegra20-emc.c337 err = emc_prepare_timing_change(emc, cnd->old_rate); in tegra_emc_clk_change_notify()
/linux-6.6.21/drivers/media/rc/img-ir/
Dimg-ir-hw.c905 change->old_rate, change->new_rate); in img_ir_change_frequency()
/linux-6.6.21/drivers/net/wireless/intersil/hostap/
Dhostap_ap.c2653 int old_rate, new_rate; in ap_update_sta_tx_rate() local
2654 old_rate = new_rate = sta->tx_rate_idx; in ap_update_sta_tx_rate()
2662 if (old_rate != sta->tx_rate_idx) { in ap_update_sta_tx_rate()
/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dhandlers.c680 u32 *old_rate = &(intel_vgpu_port(vgpu, vgpu->display.port_num)->vrefresh_k); in vgpu_update_refresh_rate() local
689 if (*old_rate != new_rate) in vgpu_update_refresh_rate()
690 *old_rate = new_rate; in vgpu_update_refresh_rate()

12