Home
last modified time | relevance | path

Searched refs:best_delta (Results 1 – 12 of 12) sorted by relevance

/drivers/soc/samsung/
Dexynos-regulator-coupler.c127 unsigned int delta, best_delta; in exynos_coupler_balance_voltage() local
140 best_delta = 0; in exynos_coupler_balance_voltage()
172 if (delta && best_delta <= delta) { in exynos_coupler_balance_voltage()
174 best_delta = delta; in exynos_coupler_balance_voltage()
/drivers/clk/analogbits/
Dwrpll-cln28hpc.c229 u64 target_vco_rate, delta, best_delta, f_pre_div, vco, vco_pre; in wrpll_configure_for_rate() local
270 best_delta = MAX_VCO_FREQ; in wrpll_configure_for_rate()
295 if (delta < best_delta) { in wrpll_configure_for_rate()
296 best_delta = delta; in wrpll_configure_for_rate()
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk20a.c110 u32 best_delta = ~0; in gk20a_pllg_calc_mnp() local
175 if (delta < best_delta) { in gk20a_pllg_calc_mnp()
176 best_delta = delta; in gk20a_pllg_calc_mnp()
181 if (best_delta == 0) in gk20a_pllg_calc_mnp()
190 WARN_ON(best_delta == ~0); in gk20a_pllg_calc_mnp()
192 if (best_delta != 0) in gk20a_pllg_calc_mnp()
/drivers/clk/microchip/
Dclk-core.c391 unsigned int i, delta, best_delta = -1; in roclk_determine_rate() local
409 if ((nearest_rate >= req->rate) && (delta < best_delta)) { in roclk_determine_rate()
413 best_delta = delta; in roclk_determine_rate()
430 best, best_delta); in roclk_determine_rate()
605 unsigned int best_delta = -1, delta, match_found = 0; in spll_calc_mult_div() local
617 if ((new_rate >= rate) && (delta < best_delta)) { in spll_calc_mult_div()
618 best_delta = delta; in spll_calc_mult_div()
/drivers/gpu/drm/stm/
Ddw_mipi_dsi-stm.c146 int fvco_min, fvco_max, delta, best_delta; /* all in khz */ in dsi_pll_get_params() local
155 best_delta = 1000000; /* big started value (1000000khz) */ in dsi_pll_get_params()
182 if (delta < best_delta) { in dsi_pll_get_params()
186 best_delta = delta; in dsi_pll_get_params()
/drivers/soc/qcom/
Dqcom-geni-se.c625 unsigned long best_delta; in geni_se_clk_freq_match() local
636 best_delta = ULONG_MAX; in geni_se_clk_freq_match()
640 if (new_delta < best_delta) { in geni_se_clk_freq_match()
650 best_delta = new_delta; in geni_se_clk_freq_match()
/drivers/i2c/busses/
Di2c-mv64xxx.c838 int freq, delta, best_delta = INT_MAX; in mv64xxx_find_baud_factors() local
845 if (delta >= 0 && delta < best_delta) { in mv64xxx_find_baud_factors()
848 best_delta = delta; in mv64xxx_find_baud_factors()
850 if (best_delta == 0) in mv64xxx_find_baud_factors()
853 if (best_delta == INT_MAX) in mv64xxx_find_baud_factors()
/drivers/clk/bcm/
Dclk-kona.c1020 unsigned long best_delta; in kona_peri_clk_determine_rate() local
1046 best_delta = abs(best_rate - req->rate); in kona_peri_clk_determine_rate()
1063 if (delta < best_delta) { in kona_peri_clk_determine_rate()
1064 best_delta = delta; in kona_peri_clk_determine_rate()
/drivers/gpu/drm/bridge/
Dtc358767.c516 int delta, best_delta; in tc_pxl_pll_en() local
538 best_delta = pixelclock; in tc_pxl_pll_en()
568 if (abs(delta) < abs(best_delta)) { in tc_pxl_pll_en()
573 best_delta = delta; in tc_pxl_pll_en()
586 best_delta); in tc_pxl_pll_en()
/drivers/iio/imu/bno055/
Dbno055.c583 int best_delta; in bno055_set_regmask() local
635 if (first || delta < best_delta) { in bno055_set_regmask()
636 best_delta = delta; in bno055_set_regmask()
/drivers/net/ethernet/ti/
Ddavinci_cpdma.c448 u32 delta = UINT_MAX, prev_delta = UINT_MAX, best_delta = UINT_MAX; in cpdma_chan_set_factors() local
478 if (delta < best_delta) { in cpdma_chan_set_factors()
479 best_delta = delta; in cpdma_chan_set_factors()
/drivers/regulator/
Dcore.c4054 unsigned int delta, best_delta; in regulator_do_balance_voltage() local
4067 best_delta = 0; in regulator_do_balance_voltage()
4099 if (delta && best_delta <= delta) { in regulator_do_balance_voltage()
4101 best_delta = delta; in regulator_do_balance_voltage()