Home
last modified time | relevance | path

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

/drivers/clk/sunxi/
Dclk-sun4i-tcon-ch1.c111 unsigned long best_rate = 0; in tcon_ch1_calc_divider() local
126 if (!best_rate || in tcon_ch1_calc_divider()
127 (rate - tmp_rate) < (rate - best_rate)) { in tcon_ch1_calc_divider()
128 best_rate = tmp_rate; in tcon_ch1_calc_divider()
140 return best_rate; in tcon_ch1_calc_divider()
146 long best_rate = -EINVAL; in tcon_ch1_determine_rate() local
163 if (best_rate < 0 || in tcon_ch1_determine_rate()
164 (req->rate - tmp_rate) < (req->rate - best_rate)) { in tcon_ch1_determine_rate()
165 best_rate = tmp_rate; in tcon_ch1_determine_rate()
171 if (best_rate < 0) in tcon_ch1_determine_rate()
[all …]
/drivers/clk/at91/
Dclk-programmable.c58 long best_rate = -EINVAL; in clk_programmable_determine_rate() local
79 if (best_rate < 0 || in clk_programmable_determine_rate()
80 (req->rate - tmp_rate) < (req->rate - best_rate)) { in clk_programmable_determine_rate()
81 best_rate = tmp_rate; in clk_programmable_determine_rate()
86 if (!best_rate) in clk_programmable_determine_rate()
90 if (best_rate < 0) in clk_programmable_determine_rate()
91 return best_rate; in clk_programmable_determine_rate()
93 req->rate = best_rate; in clk_programmable_determine_rate()
Dclk-generated.c107 long best_rate = -EINVAL; in clk_generated_determine_rate() local
132 best_rate = tmp_rate; in clk_generated_determine_rate()
147 __func__, best_rate, in clk_generated_determine_rate()
151 if (best_rate < 0) in clk_generated_determine_rate()
152 return best_rate; in clk_generated_determine_rate()
154 req->rate = best_rate; in clk_generated_determine_rate()
Dclk-usb.c62 long best_rate = -EINVAL; in at91sam9x5_clk_usb_determine_rate() local
88 best_rate = tmp_rate; in at91sam9x5_clk_usb_determine_rate()
102 if (best_rate < 0) in at91sam9x5_clk_usb_determine_rate()
103 return best_rate; in at91sam9x5_clk_usb_determine_rate()
105 req->rate = best_rate; in at91sam9x5_clk_usb_determine_rate()
Dclk-peripheral.c257 unsigned long best_rate; in clk_sam9x5_peripheral_round_rate() local
278 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
288 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
295 return best_rate; in clk_sam9x5_peripheral_round_rate()
/drivers/clk/sunxi-ng/
Dccu_mux.c63 unsigned long best_parent_rate = 0, best_rate = 0; in ccu_mux_helper_determine_rate() local
83 best_rate = tmp_rate; in ccu_mux_helper_determine_rate()
87 if ((req->rate - tmp_rate) < (req->rate - best_rate)) { in ccu_mux_helper_determine_rate()
88 best_rate = tmp_rate; in ccu_mux_helper_determine_rate()
94 if (best_rate == 0) in ccu_mux_helper_determine_rate()
100 req->rate = best_rate; in ccu_mux_helper_determine_rate()
Dccu_nk.c21 unsigned long best_rate = 0; in ccu_nk_find_best() local
32 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nk_find_best()
33 best_rate = tmp_rate; in ccu_nk_find_best()
Dccu_mp.c20 unsigned long best_rate = 0; in ccu_mp_find_best() local
31 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best()
32 best_rate = tmp_rate; in ccu_mp_find_best()
Dccu_nkm.c26 unsigned long best_rate = 0; in ccu_nkm_find_best() local
41 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nkm_find_best()
42 best_rate = tmp_rate; in ccu_nkm_find_best()
Dccu_nkmp.c27 unsigned long best_rate = 0; in ccu_nkmp_find_best() local
44 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nkmp_find_best()
45 best_rate = tmp_rate; in ccu_nkmp_find_best()
/drivers/clk/
Dclk-multiplier.c57 unsigned long parent_rate, current_rate, best_rate = ~0; in __bestmult() local
91 if (__is_best_rate(rate, current_rate, best_rate, flags)) { in __bestmult()
93 best_rate = current_rate; in __bestmult()
Dclk-composite.c66 long tmp_rate, best_rate = 0; in clk_composite_determine_rate() local
112 best_rate = tmp_rate; in clk_composite_determine_rate()
119 req->rate = best_rate; in clk_composite_determine_rate()
/drivers/spi/
Dspi-sh-hspi.c110 u32 rate, best_rate, min, tmp; in hspi_hw_setup() local
116 best_rate = 0; in hspi_hw_setup()
135 best_rate = rate; in hspi_hw_setup()
144 dev_dbg(dev, "speed %d/%d\n", t->speed_hz, best_rate); in hspi_hw_setup()
/drivers/clk/microchip/
Dclk-core.c131 unsigned long divided_rate, divided_rate_down, best_rate; in calc_best_divided_rate() local
145 best_rate = divided_rate_down; in calc_best_divided_rate()
147 best_rate = divided_rate; in calc_best_divided_rate()
149 return best_rate; in calc_best_divided_rate()
609 unsigned long new_rate, best_rate = rate; in spll_calc_mult_div() local
624 best_rate = new_rate; in spll_calc_mult_div()
638 rate, parent_rate, best_mul, best_div, best_rate); in spll_calc_mult_div()
646 return best_rate; in spll_calc_mult_div()
/drivers/rtc/
Drtc-ac100.c152 unsigned long best_rate = 0, tmp_rate, tmp_prate; in ac100_clkout_round_rate() local
168 if (rate - tmp_rate < best_rate - tmp_rate) in ac100_clkout_round_rate()
169 best_rate = tmp_rate; in ac100_clkout_round_rate()
172 return best_rate; in ac100_clkout_round_rate()
/drivers/clk/bcm/
Dclk-kona.c1028 unsigned long best_rate; in kona_peri_clk_determine_rate() local
1052 best_rate = kona_peri_clk_round_rate(hw, req->rate, &parent_rate); in kona_peri_clk_determine_rate()
1053 best_delta = abs(best_rate - req->rate); in kona_peri_clk_determine_rate()
1072 best_rate = other_rate; in kona_peri_clk_determine_rate()
1078 req->rate = best_rate; in kona_peri_clk_determine_rate()
Dclk-bcm2835.c1032 unsigned long rate, best_rate = 0; in bcm2835_clock_determine_rate() local
1060 if (rate > best_rate && rate <= req->rate) { in bcm2835_clock_determine_rate()
1063 best_rate = rate; in bcm2835_clock_determine_rate()
1073 req->rate = best_rate; in bcm2835_clock_determine_rate()
/drivers/media/platform/atmel/
Datmel-isc.c237 long best_rate = -EINVAL; in isc_clk_determine_rate() local
261 best_rate = rate; in isc_clk_determine_rate()
277 __func__, best_rate, in isc_clk_determine_rate()
281 if (best_rate < 0) in isc_clk_determine_rate()
282 return best_rate; in isc_clk_determine_rate()
284 req->rate = best_rate; in isc_clk_determine_rate()
/drivers/tty/serial/
Dmsm_serial.c1034 unsigned long target, old, best_rate = 0, diff, best_diff = ULONG_MAX; in msm_find_best_baud() local
1070 best_rate = target; in msm_find_best_baud()
1093 *rate = best_rate; in msm_find_best_baud()