/drivers/clk/ti/ |
D | clkt_dpll.c | 141 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 …]
|
D | dpll44xx.c | 148 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()
|
D | clock.h | 284 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate, 308 unsigned long target_rate,
|
/drivers/clk/analogbits/ |
D | wrpll-cln28hpc.c | 144 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()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 24 unsigned long target_volt, target_rate; in panfrost_devfreq_target() local 31 target_rate = dev_pm_opp_get_freq(opp); in panfrost_devfreq_target() 35 if (old_clk_rate == target_rate) in panfrost_devfreq_target() 42 if (old_clk_rate < target_rate) { in panfrost_devfreq_target() 52 err = clk_set_rate(pfdev->clock, target_rate); in panfrost_devfreq_target() 54 dev_err(dev, "Cannot set frequency %lu (%d)\n", target_rate, in panfrost_devfreq_target() 63 if (old_clk_rate > target_rate) { in panfrost_devfreq_target() 70 pfdev->devfreq.cur_freq = target_rate; in panfrost_devfreq_target()
|
/drivers/devfreq/ |
D | rk3399_dmc.c | 68 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() 98 if (target_rate >= dmcfreq->odt_dis_freq) in rk3399_dmcfreq_target() 115 if (old_clk_rate < target_rate) { in rk3399_dmcfreq_target() 125 err = clk_set_rate(dmcfreq->dmc_clk, target_rate); in rk3399_dmcfreq_target() 127 dev_err(dev, "Cannot set frequency %lu (%d)\n", target_rate, in rk3399_dmcfreq_target() 143 if (dmcfreq->rate != target_rate) { in rk3399_dmcfreq_target() 145 target_rate, dmcfreq->rate); in rk3399_dmcfreq_target() [all …]
|
/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 91 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/ |
D | ieee80211_softmac_wx.c | 221 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/ |
D | rtllib_softmac_wx.c | 232 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/ |
D | ipw2200.c | 9125 u32 target_rate = wrqu->bitrate.value; in ipw_wx_set_rate() local 9132 if (target_rate == -1) { in ipw_wx_set_rate() 9142 if (target_rate == 1000000 || !fixed) in ipw_wx_set_rate() 9144 if (target_rate == 1000000) in ipw_wx_set_rate() 9147 if (target_rate == 2000000 || !fixed) in ipw_wx_set_rate() 9149 if (target_rate == 2000000) in ipw_wx_set_rate() 9152 if (target_rate == 5500000 || !fixed) in ipw_wx_set_rate() 9154 if (target_rate == 5500000) in ipw_wx_set_rate() 9157 if (target_rate == 6000000 || !fixed) in ipw_wx_set_rate() 9159 if (target_rate == 6000000) in ipw_wx_set_rate() [all …]
|
D | ipw2100.c | 7073 u32 target_rate = wrqu->bitrate.value; in ipw2100_wx_set_rate() local 7085 if (target_rate == 1000000 || in ipw2100_wx_set_rate() 7086 (!wrqu->bitrate.fixed && target_rate > 1000000)) in ipw2100_wx_set_rate() 7088 if (target_rate == 2000000 || in ipw2100_wx_set_rate() 7089 (!wrqu->bitrate.fixed && target_rate > 2000000)) in ipw2100_wx_set_rate() 7091 if (target_rate == 5500000 || in ipw2100_wx_set_rate() 7092 (!wrqu->bitrate.fixed && target_rate > 5500000)) in ipw2100_wx_set_rate() 7094 if (target_rate == 11000000 || in ipw2100_wx_set_rate() 7095 (!wrqu->bitrate.fixed && target_rate > 11000000)) in ipw2100_wx_set_rate()
|
/drivers/clk/ |
D | clk-cdce925.c | 418 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/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 1325 u32 target_rate = wrqu->bitrate.value; in r8711_wx_set_rate() local 1332 if (target_rate == -1) { in r8711_wx_set_rate() 1336 target_rate = target_rate / 100000; in r8711_wx_set_rate() 1337 switch (target_rate) { in r8711_wx_set_rate()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 1399 u32 target_rate = wrqu->bitrate.value; in rtw_wx_set_rate() local 1405 …RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_info_, ("target_rate = %d, fixed = %d\n", target_rate, f… in rtw_wx_set_rate() 1407 if (target_rate == -1) { in rtw_wx_set_rate() 1411 target_rate = target_rate/100000; in rtw_wx_set_rate() 1413 switch (target_rate) { in rtw_wx_set_rate()
|
/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 1651 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()
|