Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
282 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate, in omap2_dpll_round_rate() argument
301 if (dd->max_rate && target_rate > dd->max_rate) in omap2_dpll_round_rate()
302 target_rate = dd->max_rate; in omap2_dpll_round_rate()
307 clk_name, target_rate); in omap2_dpll_round_rate()
309 scaled_rt_rp = target_rate / (ref_rate / DPLL_SCALE_FACTOR); in omap2_dpll_round_rate()
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()
361 clk_name, target_rate); in omap2_dpll_round_rate()
[all …]
Ddpll44xx.c148 unsigned long target_rate, in omap4_dpll_regm4xen_round_rate() argument
166 r = omap2_dpll_round_rate(hw, target_rate, NULL); in omap4_dpll_regm4xen_round_rate()
175 r = omap2_dpll_round_rate(hw, target_rate / OMAP4430_REGM4XEN_MULT, in omap4_dpll_regm4xen_round_rate()
Dclock.h285 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate,
309 unsigned long target_rate,
/kernel/linux/linux-5.10/drivers/clk/analogbits/
Dwrpll-cln28hpc.c144 static u8 __wrpll_calc_divq(u32 target_rate, u64 *vco_rate) in __wrpll_calc_divq() argument
154 s = div_u64(MAX_VCO_FREQ, target_rate); in __wrpll_calc_divq()
163 *vco_rate = (u64)target_rate << divq; in __wrpll_calc_divq()
221 int wrpll_configure_for_rate(struct wrpll_cfg *c, u32 target_rate, in wrpll_configure_for_rate() argument
247 if (target_rate == parent_rate) { in wrpll_configure_for_rate()
255 divq = __wrpll_calc_divq(target_rate, &target_vco_rate); in wrpll_configure_for_rate()
290 delta = abs(target_rate - vco); in wrpll_configure_for_rate()
/kernel/linux/linux-5.10/drivers/devfreq/
Drk3399_dmc.c68 unsigned long rate, target_rate; member
80 unsigned long target_volt, target_rate; in rk3399_dmcfreq_target() local
89 target_rate = dev_pm_opp_get_freq(opp); in rk3399_dmcfreq_target()
93 if (dmcfreq->rate == target_rate) in rk3399_dmcfreq_target()
99 if (target_rate >= dmcfreq->odt_dis_freq) in rk3399_dmcfreq_target()
117 if (old_clk_rate < target_rate) { in rk3399_dmcfreq_target()
127 err = clk_set_rate(dmcfreq->dmc_clk, target_rate); in rk3399_dmcfreq_target()
129 dev_err(dev, "Cannot set frequency %lu (%d)\n", target_rate, in rk3399_dmcfreq_target()
145 if (dmcfreq->rate != target_rate) { in rk3399_dmcfreq_target()
147 target_rate, dmcfreq->rate); in rk3399_dmcfreq_target()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Dclkt2xxx_dpllcore.c74 static long omap2_dpllcore_round_rate(unsigned long target_rate) in omap2_dpllcore_round_rate() argument
89 if (target_rate > high) in omap2_dpllcore_round_rate()
92 return target_rate; in omap2_dpllcore_round_rate()
94 if (target_rate > low) in omap2_dpllcore_round_rate()
/kernel/linux/linux-5.10/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()
420 unsigned long target_rate) in exynos5_dram_change_timings() argument
425 if (dmc->opp[idx].freq_hz <= target_rate) in exynos5_dram_change_timings()
510 unsigned long target_rate) in exynos5_dmc_align_bypass_dram_timings() argument
512 int idx = find_target_freq_idx(dmc, target_rate); in exynos5_dmc_align_bypass_dram_timings()
535 unsigned long target_rate, in exynos5_dmc_switch_to_bypass_configuration() argument
552 ret = exynos5_dmc_align_bypass_dram_timings(dmc, target_rate); in exynos5_dmc_switch_to_bypass_configuration()
589 unsigned long target_rate, in exynos5_dmc_change_freq_and_volt() argument
594 ret = exynos5_dmc_switch_to_bypass_configuration(dmc, target_rate, in exynos5_dmc_change_freq_and_volt()
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
Dadg.c108 unsigned int target_rate, in __rsnd_adg_get_timesel_ratio() argument
136 diff = abs(target_rate - sel_rate[sel] / div); in __rsnd_adg_get_timesel_ratio()
174 unsigned int target_rate; in rsnd_adg_get_timesel_ratio() local
184 target_rate = 0; in rsnd_adg_get_timesel_ratio()
188 target_rate = out_rate; in rsnd_adg_get_timesel_ratio()
191 target_rate = in_rate; in rsnd_adg_get_timesel_ratio()
195 if (target_rate) in rsnd_adg_get_timesel_ratio()
197 target_rate, in rsnd_adg_get_timesel_ratio()
/kernel/linux/linux-5.10/include/linux/clk/
Danalogbits-wrpll-cln28hpc.h71 int wrpll_configure_for_rate(struct wrpll_cfg *c, u32 target_rate,
/kernel/linux/linux-5.10/drivers/clk/
Dclk-plldig.c129 unsigned long target_rate) in plldig_calc_target_div() argument
133 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()
/kernel/linux/linux-5.10/drivers/clk/bcm/
Dclk-iproc-pll.c91 static int pll_calc_param(unsigned long target_rate, in pll_calc_param() argument
97 ndiv_int = target_rate / parent_rate; in pll_calc_param()
102 residual = target_rate - (ndiv_int * parent_rate); in pll_calc_param()
128 static int pll_get_rate_index(struct iproc_pll *pll, unsigned int target_rate) in pll_get_rate_index() argument
133 if (target_rate == pll->vco_param[i].rate) in pll_get_rate_index()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_softmac_wx.c232 u32 target_rate = wrqu->bitrate.value; in rtllib_wx_set_rate() local
234 ieee->rate = target_rate/100000; in rtllib_wx_set_rate()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c9120 u32 target_rate = wrqu->bitrate.value; in ipw_wx_set_rate() local
9127 if (target_rate == -1) { in ipw_wx_set_rate()
9137 if (target_rate == 1000000 || !fixed) in ipw_wx_set_rate()
9139 if (target_rate == 1000000) in ipw_wx_set_rate()
9142 if (target_rate == 2000000 || !fixed) in ipw_wx_set_rate()
9144 if (target_rate == 2000000) in ipw_wx_set_rate()
9147 if (target_rate == 5500000 || !fixed) in ipw_wx_set_rate()
9149 if (target_rate == 5500000) in ipw_wx_set_rate()
9152 if (target_rate == 6000000 || !fixed) in ipw_wx_set_rate()
9154 if (target_rate == 6000000) in ipw_wx_set_rate()
[all …]
Dipw2100.c7051 u32 target_rate = wrqu->bitrate.value; in ipw2100_wx_set_rate() local
7063 if (target_rate == 1000000 || in ipw2100_wx_set_rate()
7064 (!wrqu->bitrate.fixed && target_rate > 1000000)) in ipw2100_wx_set_rate()
7066 if (target_rate == 2000000 || in ipw2100_wx_set_rate()
7067 (!wrqu->bitrate.fixed && target_rate > 2000000)) in ipw2100_wx_set_rate()
7069 if (target_rate == 5500000 || in ipw2100_wx_set_rate()
7070 (!wrqu->bitrate.fixed && target_rate > 5500000)) in ipw2100_wx_set_rate()
7072 if (target_rate == 11000000 || in ipw2100_wx_set_rate()
7073 (!wrqu->bitrate.fixed && target_rate > 11000000)) in ipw2100_wx_set_rate()
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1321 u32 target_rate = wrqu->bitrate.value; in r8711_wx_set_rate() local
1328 if (target_rate == -1) { in r8711_wx_set_rate()
1332 target_rate = target_rate / 100000; in r8711_wx_set_rate()
1333 switch (target_rate) { in r8711_wx_set_rate()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c1388 u32 target_rate = wrqu->bitrate.value; in rtw_wx_set_rate() local
1394 …RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_, ("target_rate = %d, fixed = %d\n", target_rate, f… in rtw_wx_set_rate()
1396 if (target_rate == -1) { in rtw_wx_set_rate()
1400 target_rate /= 100000; in rtw_wx_set_rate()
1402 switch (target_rate) { in rtw_wx_set_rate()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c1651 u32 target_rate = wrqu->bitrate.value; in rtw_wx_set_rate() local
1657 …RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_, ("target_rate = %d, fixed = %d\n", target_rate, f… in rtw_wx_set_rate()
1659 if (target_rate == -1) { in rtw_wx_set_rate()
1663 target_rate = target_rate/100000; in rtw_wx_set_rate()
1665 switch (target_rate) { in rtw_wx_set_rate()