/Linux-v5.4/drivers/clk/mxs/ |
D | clk-frac.c | 38 u64 tmp_rate; in clk_frac_recalc_rate() local 43 tmp_rate = (u64)parent_rate * div; in clk_frac_recalc_rate() 44 return tmp_rate >> frac->width; in clk_frac_recalc_rate() 53 u64 tmp, tmp_rate, result; in clk_frac_round_rate() local 66 tmp_rate = (u64)parent_rate * div; in clk_frac_round_rate() 67 result = tmp_rate >> frac->width; in clk_frac_round_rate() 68 if ((result << frac->width) < tmp_rate) in clk_frac_round_rate()
|
/Linux-v5.4/drivers/clk/sunxi/ |
D | clk-sun4i-tcon-ch1.c | 111 unsigned long tmp_rate; in tcon_ch1_calc_divider() local 113 tmp_rate = parent_rate / m / d; in tcon_ch1_calc_divider() 115 if (tmp_rate > rate) in tcon_ch1_calc_divider() 119 (rate - tmp_rate) < (rate - best_rate)) { in tcon_ch1_calc_divider() 120 best_rate = tmp_rate; in tcon_ch1_calc_divider() 143 unsigned long tmp_rate; in tcon_ch1_determine_rate() local 152 tmp_rate = tcon_ch1_calc_divider(req->rate, parent_rate, in tcon_ch1_determine_rate() 156 (req->rate - tmp_rate) < (req->rate - best_rate)) { in tcon_ch1_determine_rate() 157 best_rate = tmp_rate; in tcon_ch1_determine_rate()
|
/Linux-v5.4/drivers/clk/at91/ |
D | clk-programmable.c | 56 unsigned long tmp_rate = 0; in clk_programmable_determine_rate() local 68 tmp_rate = parent_rate / (shift + 1); in clk_programmable_determine_rate() 69 if (tmp_rate <= req->rate) in clk_programmable_determine_rate() 74 tmp_rate = parent_rate >> shift; in clk_programmable_determine_rate() 75 if (tmp_rate <= req->rate) in clk_programmable_determine_rate() 80 if (tmp_rate > req->rate) in clk_programmable_determine_rate() 84 (req->rate - tmp_rate) < (req->rate - best_rate)) { in clk_programmable_determine_rate() 85 best_rate = tmp_rate; in clk_programmable_determine_rate()
|
D | clk-usb.c | 60 unsigned long tmp_rate; in at91sam9x5_clk_usb_determine_rate() local 78 tmp_rate = DIV_ROUND_CLOSEST(tmp_parent_rate, div); in at91sam9x5_clk_usb_determine_rate() 79 if (tmp_rate < req->rate) in at91sam9x5_clk_usb_determine_rate() 80 tmp_diff = req->rate - tmp_rate; in at91sam9x5_clk_usb_determine_rate() 82 tmp_diff = tmp_rate - req->rate; in at91sam9x5_clk_usb_determine_rate() 85 best_rate = tmp_rate; in at91sam9x5_clk_usb_determine_rate() 91 if (!best_diff || tmp_rate < req->rate) in at91sam9x5_clk_usb_determine_rate()
|
D | clk-audio-pll.c | 281 long tmp_rate; in clk_audio_pll_pad_round_rate() local 308 tmp_rate = best_parent_rate / (div * tmp_qd); in clk_audio_pll_pad_round_rate() 309 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pad_round_rate() 313 best_rate = tmp_rate; in clk_audio_pll_pad_round_rate() 331 long tmp_rate; in clk_audio_pll_pmc_round_rate() local 345 tmp_rate = best_parent_rate / div; in clk_audio_pll_pmc_round_rate() 346 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pmc_round_rate() 350 best_rate = tmp_rate; in clk_audio_pll_pmc_round_rate()
|
D | clk-generated.c | 103 unsigned long tmp_rate; in clk_generated_best_diff() local 107 tmp_rate = parent_rate; in clk_generated_best_diff() 109 tmp_rate = parent_rate / div; in clk_generated_best_diff() 110 tmp_diff = abs(req->rate - tmp_rate); in clk_generated_best_diff() 113 *best_rate = tmp_rate; in clk_generated_best_diff()
|
/Linux-v5.4/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_ddc_clk.c | 38 unsigned long tmp_rate; in sun4i_ddc_calc_divider() local 40 tmp_rate = (((parent_rate / pre_div) / 10) >> _n) / in sun4i_ddc_calc_divider() 43 if (tmp_rate > rate) in sun4i_ddc_calc_divider() 46 if (abs(rate - tmp_rate) < abs(rate - best_rate)) { in sun4i_ddc_calc_divider() 47 best_rate = tmp_rate; in sun4i_ddc_calc_divider()
|
D | sun4i_hdmi_tmds_clk.c | 41 unsigned long tmp_rate; in sun4i_tmds_calc_divider() local 43 tmp_rate = parent_rate / m / d; in sun4i_tmds_calc_divider() 45 if (tmp_rate > rate) in sun4i_tmds_calc_divider() 49 (rate - tmp_rate) < (rate - best_rate)) { in sun4i_tmds_calc_divider() 50 best_rate = tmp_rate; in sun4i_tmds_calc_divider()
|
D | sun8i_hdmi_phy_clk.c | 89 unsigned long tmp_rate = parent_rate / m; in sun8i_phy_clk_set_rate() local 91 if (tmp_rate > rate) in sun8i_phy_clk_set_rate() 95 (rate - tmp_rate) < (rate - best_rate)) { in sun8i_phy_clk_set_rate() 96 best_rate = tmp_rate; in sun8i_phy_clk_set_rate()
|
/Linux-v5.4/drivers/clk/sunxi-ng/ |
D | ccu_mux.c | 113 unsigned long tmp_rate, parent_rate; in ccu_mux_helper_determine_rate() local 123 tmp_rate = round(cm, parent, &parent_rate, req->rate, data); in ccu_mux_helper_determine_rate() 132 if (tmp_rate == req->rate) { in ccu_mux_helper_determine_rate() 135 best_rate = tmp_rate; in ccu_mux_helper_determine_rate() 139 if ((req->rate - tmp_rate) < (req->rate - best_rate)) { in ccu_mux_helper_determine_rate() 140 best_rate = tmp_rate; in ccu_mux_helper_determine_rate()
|
D | ccu_nkm.c | 29 unsigned long tmp_rate; in ccu_nkm_find_best() local 31 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best() 33 if (tmp_rate > rate) in ccu_nkm_find_best() 35 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nkm_find_best() 36 best_rate = tmp_rate; in ccu_nkm_find_best()
|
D | ccu_nk.c | 27 unsigned long tmp_rate = parent * _n * _k; in ccu_nk_find_best() local 29 if (tmp_rate > rate) in ccu_nk_find_best() 32 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nk_find_best() 33 best_rate = tmp_rate; in ccu_nk_find_best()
|
D | ccu_nkmp.c | 43 unsigned long tmp_rate; in ccu_nkmp_find_best() local 45 tmp_rate = ccu_nkmp_calc_rate(parent, in ccu_nkmp_find_best() 49 if (tmp_rate > rate) in ccu_nkmp_find_best() 52 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nkmp_find_best() 53 best_rate = tmp_rate; in ccu_nkmp_find_best()
|
D | ccu_mp.c | 23 unsigned long tmp_rate = parent / _p / _m; in ccu_mp_find_best() local 25 if (tmp_rate > rate) in ccu_mp_find_best() 28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best() 29 best_rate = tmp_rate; in ccu_mp_find_best()
|
D | ccu_nm.c | 39 unsigned long tmp_rate = ccu_nm_calc_rate(parent, in ccu_nm_find_best() local 42 if (tmp_rate > rate) in ccu_nm_find_best() 45 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nm_find_best() 46 best_rate = tmp_rate; in ccu_nm_find_best()
|
/Linux-v5.4/drivers/clk/ |
D | clk-composite.c | 54 long tmp_rate, best_rate = 0; in clk_composite_determine_rate() local 88 tmp_rate = rate_ops->round_rate(rate_hw, req->rate, in clk_composite_determine_rate() 90 if (tmp_rate < 0) in clk_composite_determine_rate() 93 rate_diff = abs(req->rate - tmp_rate); in clk_composite_determine_rate() 100 best_rate = tmp_rate; in clk_composite_determine_rate()
|
/Linux-v5.4/drivers/rtc/ |
D | rtc-ac100.c | 146 unsigned long best_rate = 0, tmp_rate, tmp_prate; in ac100_clkout_round_rate() local 156 tmp_rate = divider_round_rate(hw, rate, &tmp_prate, NULL, in ac100_clkout_round_rate() 160 if (tmp_rate > rate) in ac100_clkout_round_rate() 162 if (rate - tmp_rate < best_rate - tmp_rate) in ac100_clkout_round_rate() 163 best_rate = tmp_rate; in ac100_clkout_round_rate()
|
/Linux-v5.4/drivers/clk/samsung/ |
D | clk-cpu.c | 189 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change() local 191 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; in exynos_cpuclk_pre_rate_change() 311 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change() local 313 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; in exynos5433_cpuclk_pre_rate_change()
|
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac_wx.c | 233 u32 tmp_rate; in ieee80211_wx_get_rate() local 235 tmp_rate = TxCountToDataRate(ieee, ieee->softmac_stats.CurrentShowTxate); in ieee80211_wx_get_rate() 237 wrqu->bitrate.value = tmp_rate * 500000; in ieee80211_wx_get_rate()
|
/Linux-v5.4/drivers/staging/rtl8192e/ |
D | rtllib_softmac_wx.c | 243 u32 tmp_rate; in rtllib_wx_get_rate() local 245 tmp_rate = TxCountToDataRate(ieee, in rtllib_wx_get_rate() 247 wrqu->bitrate.value = tmp_rate * 500000; in rtllib_wx_get_rate()
|
/Linux-v5.4/drivers/clk/bcm/ |
D | clk-bcm2835.c | 1150 unsigned long tmp_rate; in bcm2835_clock_choose_div_and_prate() local 1152 tmp_rate = clk_hw_round_rate(parent, rate * curdiv); in bcm2835_clock_choose_div_and_prate() 1153 tmp_rate /= curdiv; in bcm2835_clock_choose_div_and_prate() 1155 (tmp_rate > best_rate && tmp_rate <= rate)) in bcm2835_clock_choose_div_and_prate() 1156 best_rate = tmp_rate; in bcm2835_clock_choose_div_and_prate()
|
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 3387 u8 i, j, tmp_rate; in _rtl8821ae_rate_to_bitmap_2ssvht() local 3391 tmp_rate = (le16_to_cpu(vht_rate) >> i) & 3; in _rtl8821ae_rate_to_bitmap_2ssvht() 3393 switch (tmp_rate) { in _rtl8821ae_rate_to_bitmap_2ssvht()
|