Home
last modified time | relevance | path

Searched refs:target_rate (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/devfreq/
Drk3399_dmc.c49 unsigned long rate, target_rate; member
75 unsigned long target_volt, target_rate; in rk3399_dmcfreq_target() local
88 target_rate = dev_pm_opp_get_freq(opp); in rk3399_dmcfreq_target()
92 if (dmcfreq->rate == target_rate) in rk3399_dmcfreq_target()
114 ddrcon_mhz = target_rate / USEC_PER_SEC / 2; in rk3399_dmcfreq_target()
136 if (target_rate >= dmcfreq->sr_idle_dis_freq) in rk3399_dmcfreq_target()
139 if (target_rate >= dmcfreq->sr_mc_gate_idle_dis_freq) in rk3399_dmcfreq_target()
142 if (target_rate >= dmcfreq->standby_idle_dis_freq) in rk3399_dmcfreq_target()
145 if (target_rate >= dmcfreq->pd_idle_dis_freq) in rk3399_dmcfreq_target()
148 if (target_rate >= dmcfreq->srpd_lite_idle_dis_freq) in rk3399_dmcfreq_target()
[all …]
/linux-6.6.21/drivers/clk/ti/
Dclkt_dpll.c141 unsigned long target_rate, in _dpll_test_mult() argument
156 if (*new_rate > target_rate) { in _dpll_test_mult()
283 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate, in omap2_dpll_round_rate() argument
302 if (dd->max_rate && target_rate > dd->max_rate) in omap2_dpll_round_rate()
303 target_rate = dd->max_rate; in omap2_dpll_round_rate()
308 clk_name, target_rate); in omap2_dpll_round_rate()
310 scaled_rt_rp = target_rate / (ref_rate / DPLL_SCALE_FACTOR); in omap2_dpll_round_rate()
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()
362 clk_name, target_rate); in omap2_dpll_round_rate()
[all …]
Ddpll44xx.c150 unsigned long target_rate, in omap4_dpll_regm4xen_round_rate() argument
168 r = omap2_dpll_round_rate(hw, target_rate, NULL); in omap4_dpll_regm4xen_round_rate()
177 r = omap2_dpll_round_rate(hw, target_rate / OMAP4430_REGM4XEN_MULT, in omap4_dpll_regm4xen_round_rate()
Dclock.h275 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate,
299 unsigned long target_rate,
/linux-6.6.21/drivers/clk/analogbits/
Dwrpll-cln28hpc.c148 static u8 __wrpll_calc_divq(u32 target_rate, u64 *vco_rate) in __wrpll_calc_divq() argument
158 s = div_u64(MAX_VCO_FREQ, target_rate); in __wrpll_calc_divq()
167 *vco_rate = (u64)target_rate << divq; in __wrpll_calc_divq()
225 int wrpll_configure_for_rate(struct wrpll_cfg *c, u32 target_rate, in wrpll_configure_for_rate() argument
251 if (target_rate == parent_rate) { in wrpll_configure_for_rate()
259 divq = __wrpll_calc_divq(target_rate, &target_vco_rate); in wrpll_configure_for_rate()
294 delta = abs(target_rate - vco); in wrpll_configure_for_rate()
/linux-6.6.21/arch/arm/mach-omap2/
Dclkt2xxx_dpllcore.c75 static long omap2_dpllcore_round_rate(unsigned long target_rate) in omap2_dpllcore_round_rate() argument
90 if (target_rate > high) in omap2_dpllcore_round_rate()
93 return target_rate; in omap2_dpllcore_round_rate()
95 if (target_rate > low) in omap2_dpllcore_round_rate()
/linux-6.6.21/drivers/memory/samsung/
Dexynos5422-dmc.c289 unsigned long target_rate) in find_target_freq_idx() argument
294 if (dmc->opp[i].freq_hz <= target_rate) in find_target_freq_idx()
415 unsigned long target_rate) in exynos5_dram_change_timings() argument
420 if (dmc->opp[idx].freq_hz <= target_rate) in exynos5_dram_change_timings()
505 unsigned long target_rate) in exynos5_dmc_align_bypass_dram_timings() argument
507 int idx = find_target_freq_idx(dmc, target_rate); in exynos5_dmc_align_bypass_dram_timings()
530 unsigned long target_rate, in exynos5_dmc_switch_to_bypass_configuration() argument
547 ret = exynos5_dmc_align_bypass_dram_timings(dmc, target_rate); in exynos5_dmc_switch_to_bypass_configuration()
584 unsigned long target_rate, in exynos5_dmc_change_freq_and_volt() argument
589 ret = exynos5_dmc_switch_to_bypass_configuration(dmc, target_rate, in exynos5_dmc_change_freq_and_volt()
[all …]
/linux-6.6.21/drivers/clk/sunxi-ng/
Dccu_common.c43 unsigned long target_rate, in ccu_is_better_rate() argument
48 return abs(current_rate - target_rate) < abs(best_rate - target_rate); in ccu_is_better_rate()
50 return current_rate <= target_rate && current_rate > best_rate; in ccu_is_better_rate()
Dccu_common.h57 unsigned long target_rate,
/linux-6.6.21/sound/soc/sh/rcar/
Dadg.c121 unsigned int target_rate, in __rsnd_adg_get_timesel_ratio() argument
150 diff = abs(target_rate - sel_rate[sel] / div); in __rsnd_adg_get_timesel_ratio()
188 unsigned int target_rate; in rsnd_adg_get_timesel_ratio() local
198 target_rate = 0; in rsnd_adg_get_timesel_ratio()
202 target_rate = out_rate; in rsnd_adg_get_timesel_ratio()
205 target_rate = in_rate; in rsnd_adg_get_timesel_ratio()
209 if (target_rate) in rsnd_adg_get_timesel_ratio()
211 target_rate, in rsnd_adg_get_timesel_ratio()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_training_fixed_vs_pe_retimer.c108 uint8_t target_rate = 0x6; in perform_fixed_vs_pe_nontransparent_training_sequence() local
118 …apply_toggle_rate_wa = ((link->vendor_specific_lttpr_link_rate_wa == target_rate) || (link->vendor… in perform_fixed_vs_pe_nontransparent_training_sequence()
119 target_rate = get_dpcd_link_rate(&lt_settings->link_settings); in perform_fixed_vs_pe_nontransparent_training_sequence()
120 toggle_rate = (target_rate == 0x6) ? 0xA : 0x6; in perform_fixed_vs_pe_nontransparent_training_sequence()
136 &target_rate, in perform_fixed_vs_pe_nontransparent_training_sequence()
140 link->vendor_specific_lttpr_link_rate_wa = target_rate; in perform_fixed_vs_pe_nontransparent_training_sequence()
/linux-6.6.21/include/linux/clk/
Danalogbits-wrpll-cln28hpc.h71 int wrpll_configure_for_rate(struct wrpll_cfg *c, u32 target_rate,
/linux-6.6.21/drivers/clk/
Dclk-plldig.c127 unsigned long target_rate) in plldig_calc_target_div() argument
131 div = DIV_ROUND_CLOSEST(vco_freq, target_rate); in plldig_calc_target_div()
Dclk-cdce925.c418 unsigned long target_rate = rate * pdiv_now; in cdce925_clk_best_parent_rate() local
419 long pll_rate = clk_round_rate(pll, target_rate); in cdce925_clk_best_parent_rate()
/linux-6.6.21/drivers/clk/bcm/
Dclk-iproc-pll.c81 static int pll_calc_param(unsigned long target_rate, in pll_calc_param() argument
87 ndiv_int = target_rate / parent_rate; in pll_calc_param()
92 residual = target_rate - (ndiv_int * parent_rate); in pll_calc_param()
118 static int pll_get_rate_index(struct iproc_pll *pll, unsigned int target_rate) in pll_get_rate_index() argument
123 if (target_rate == pll->vco_param[i].rate) in pll_get_rate_index()
/linux-6.6.21/drivers/media/i2c/
Dds90ub953.c926 unsigned long target_rate, in ub953_calc_clkout_params() argument
938 clkout_rate = ub953_calc_clkout_ub971(priv, target_rate, in ub953_calc_clkout_params()
945 __func__, fc_rate, m, n, clkout_rate, target_rate); in ub953_calc_clkout_params()
949 clkout_rate = ub953_calc_clkout_ub953(priv, target_rate, in ub953_calc_clkout_params()
958 target_rate); in ub953_calc_clkout_params()
/linux-6.6.21/drivers/staging/rtl8192e/
Drtllib_softmac_wx.c204 u32 target_rate = wrqu->bitrate.value; in rtllib_wx_set_rate() local
206 ieee->rate = target_rate / 100000; in rtllib_wx_set_rate()
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac_wx.c221 u32 target_rate = wrqu->bitrate.value; in ieee80211_wx_set_rate() local
223 ieee->rate = target_rate / 100000; in ieee80211_wx_set_rate()
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c9074 u32 target_rate = wrqu->bitrate.value; in ipw_wx_set_rate() local
9081 if (target_rate == -1) { in ipw_wx_set_rate()
9091 if (target_rate == 1000000 || !fixed) in ipw_wx_set_rate()
9093 if (target_rate == 1000000) in ipw_wx_set_rate()
9096 if (target_rate == 2000000 || !fixed) in ipw_wx_set_rate()
9098 if (target_rate == 2000000) in ipw_wx_set_rate()
9101 if (target_rate == 5500000 || !fixed) in ipw_wx_set_rate()
9103 if (target_rate == 5500000) in ipw_wx_set_rate()
9106 if (target_rate == 6000000 || !fixed) in ipw_wx_set_rate()
9108 if (target_rate == 6000000) in ipw_wx_set_rate()
[all …]
Dipw2100.c7040 u32 target_rate = wrqu->bitrate.value; in ipw2100_wx_set_rate() local
7052 if (target_rate == 1000000 || in ipw2100_wx_set_rate()
7053 (!wrqu->bitrate.fixed && target_rate > 1000000)) in ipw2100_wx_set_rate()
7055 if (target_rate == 2000000 || in ipw2100_wx_set_rate()
7056 (!wrqu->bitrate.fixed && target_rate > 2000000)) in ipw2100_wx_set_rate()
7058 if (target_rate == 5500000 || in ipw2100_wx_set_rate()
7059 (!wrqu->bitrate.fixed && target_rate > 5500000)) in ipw2100_wx_set_rate()
7061 if (target_rate == 11000000 || in ipw2100_wx_set_rate()
7062 (!wrqu->bitrate.fixed && target_rate > 11000000)) in ipw2100_wx_set_rate()
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1319 u32 target_rate = wrqu->bitrate.value; in r8711_wx_set_rate() local
1326 if (target_rate == -1) { in r8711_wx_set_rate()
1330 target_rate = target_rate / 100000; in r8711_wx_set_rate()
1331 switch (target_rate) { in r8711_wx_set_rate()