Home
last modified time | relevance | path

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

/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.h286 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate,
310 unsigned long target_rate,
/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()
/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 …]
/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 …]
/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()
/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()
/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()
/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()
/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()
/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()
/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c1496 u32 target_rate = wrqu->bitrate.value; in rtw_wx_set_rate() local
1501 if (target_rate == -1) { in rtw_wx_set_rate()
1505 target_rate = target_rate / 100000; in rtw_wx_set_rate()
1507 switch (target_rate) { in rtw_wx_set_rate()