/linux-6.6.21/drivers/soc/samsung/ |
D | exynos-regulator-coupler.c | 127 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.6.21/drivers/clk/analogbits/ |
D | wrpll-cln28hpc.c | 229 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.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gk20a.c | 110 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.6.21/drivers/clk/microchip/ |
D | clk-core.c | 391 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.6.21/drivers/gpu/drm/stm/ |
D | dw_mipi_dsi-stm.c | 146 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.6.21/drivers/soc/qcom/ |
D | qcom-geni-se.c | 625 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()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-mv64xxx.c | 838 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()
|
/linux-6.6.21/drivers/clk/bcm/ |
D | clk-kona.c | 1020 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.6.21/drivers/gpu/drm/bridge/ |
D | tc358767.c | 516 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.6.21/drivers/iio/imu/bno055/ |
D | bno055.c | 583 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.6.21/drivers/net/ethernet/ti/ |
D | davinci_cpdma.c | 448 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.6.21/drivers/regulator/ |
D | core.c | 4048 unsigned int delta, best_delta; in regulator_do_balance_voltage() local 4061 best_delta = 0; in regulator_do_balance_voltage() 4093 if (delta && best_delta <= delta) { in regulator_do_balance_voltage() 4095 best_delta = delta; in regulator_do_balance_voltage()
|
/linux-6.6.21/kernel/sched/ |
D | fair.c | 7818 unsigned long prev_delta = ULONG_MAX, best_delta = ULONG_MAX; in find_energy_efficient_cpu() local 7950 best_delta = min(best_delta, prev_delta); in find_energy_efficient_cpu() 7979 (cur_delta >= best_delta)) in find_energy_efficient_cpu() 7982 best_delta = cur_delta; in find_energy_efficient_cpu() 7991 ((best_fits > 0) && (best_delta < prev_delta)) || in find_energy_efficient_cpu()
|