Home
last modified time | relevance | path

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

/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/soc/qcom/
Dqcom-geni-se.c636 unsigned long best_delta; in geni_se_clk_freq_match() local
647 best_delta = ULONG_MAX; in geni_se_clk_freq_match()
651 if (new_delta < best_delta) { in geni_se_clk_freq_match()
661 best_delta = new_delta; in geni_se_clk_freq_match()
/linux-6.1.9/drivers/i2c/busses/
Di2c-mv64xxx.c827 int freq, delta, best_delta = INT_MAX; in mv64xxx_find_baud_factors() local
834 if (delta >= 0 && delta < best_delta) { in mv64xxx_find_baud_factors()
837 best_delta = delta; in mv64xxx_find_baud_factors()
839 if (best_delta == 0) in mv64xxx_find_baud_factors()
842 if (best_delta == INT_MAX) in mv64xxx_find_baud_factors()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/regulator/
Dcore.c3978 unsigned int delta, best_delta; in regulator_do_balance_voltage() local
3991 best_delta = 0; in regulator_do_balance_voltage()
4023 if (delta && best_delta <= delta) { in regulator_do_balance_voltage()
4025 best_delta = delta; in regulator_do_balance_voltage()
/linux-6.1.9/kernel/sched/
Dfair.c7183 unsigned long prev_delta = ULONG_MAX, best_delta = ULONG_MAX; in find_energy_efficient_cpu() local
7306 best_delta = min(best_delta, prev_delta); in find_energy_efficient_cpu()
7317 if (cur_delta < best_delta) { in find_energy_efficient_cpu()
7318 best_delta = cur_delta; in find_energy_efficient_cpu()
7325 if (best_delta < prev_delta) in find_energy_efficient_cpu()