Home
last modified time | relevance | path

Searched refs:best_rate (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/clk/
Dclk-hsdk-cgu.c404 unsigned long best_rate; in hsdk_pll_round_rate() local
411 best_rate = pll_cfg[0].rate; in hsdk_pll_round_rate()
414 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in hsdk_pll_round_rate()
415 best_rate = pll_cfg[i].rate; in hsdk_pll_round_rate()
418 pr_debug("chosen best rate: %lu\n", best_rate); in hsdk_pll_round_rate()
420 return best_rate; in hsdk_pll_round_rate()
480 unsigned long best_rate; in pll_set() local
484 best_rate = hsdk_pll_round_rate(sclk, rate); in pll_set()
487 if (pll_cfg[i].rate == best_rate) { in pll_set()
488 return clk->pll_devdata->update_rate(clk, best_rate, in pll_set()
[all …]
Dclk_zynq.c292 ulong new_rate, best_rate = 0; in zynq_clk_calc_peripheral_two_divs() local
305 best_rate = new_rate; in zynq_clk_calc_peripheral_two_divs()
310 return best_rate; in zynq_clk_calc_peripheral_two_divs()
Dclk_zynqmp.c496 ulong new_rate, best_rate = 0; in zynqmp_clk_calc_peripheral_two_divs() local
509 best_rate = new_rate; in zynqmp_clk_calc_peripheral_two_divs()
514 return best_rate; in zynqmp_clk_calc_peripheral_two_divs()
/external/u-boot/drivers/clk/uniphier/
Dclk-uniphier-core.c182 unsigned long best_rate = 0; in __uniphier_clk_set_rate() local
210 if (parent_rate <= rate && best_rate < parent_rate) { in __uniphier_clk_set_rate()
211 best_rate = parent_rate; in __uniphier_clk_set_rate()
216 dev_dbg(priv->dev, "id=%u, best_rate=%lu\n", data->id, best_rate); in __uniphier_clk_set_rate()
222 return best_rate; in __uniphier_clk_set_rate()
227 return best_rate = __uniphier_clk_set_rate(priv, best_parent_data, in __uniphier_clk_set_rate()
/external/u-boot/drivers/clk/at91/
Dclk-usb.c50 ulong tmp_rate, best_rate = rate, source_rate; in at91_usb_clk_set_rate() local
72 best_rate = tmp_rate; in at91_usb_clk_set_rate()
89 best_source.dev->name, best_rate, best_div); in at91_usb_clk_set_rate()
Dclk-generated.c82 ulong tmp_rate, best_rate = rate, parent_rate; in generic_clk_set_rate() local
104 best_rate = tmp_rate; in generic_clk_set_rate()
122 best_parent.dev->name, best_rate, best_div); in generic_clk_set_rate()
/external/u-boot/drivers/clk/rockchip/
Dclk_rk3368.c204 ulong best_rate = 0; in rk3368_mmc_find_best_rate_and_parent() local
234 if (new_rate <= best_rate) in rk3368_mmc_find_best_rate_and_parent()
238 best_rate = new_rate; in rk3368_mmc_find_best_rate_and_parent()
244 __func__, *best_mux, *best_div, best_rate); in rk3368_mmc_find_best_rate_and_parent()
246 return best_rate; in rk3368_mmc_find_best_rate_and_parent()
/external/libvpx/libvpx/vp8/encoder/
Dpickinter.c1307 int rate_, best_rate = 0, distortion, best_sse; in vp8_pick_intra_mode() local
1332 best_rate = rate_; in vp8_pick_intra_mode()
1340 best_rate = rate_; in vp8_pick_intra_mode()
1343 *rate = best_rate; in vp8_pick_intra_mode()