Searched refs:best_err (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | pllgt215.c | 33 u32 best_err = ~0, err; in gt215_pll_calc() local 68 if (err < best_err) { in gt215_pll_calc() 69 best_err = err; in gt215_pll_calc() 81 if (unlikely(best_err == ~0)) { in gt215_pll_calc()
|
/linux-6.1.9/drivers/clk/ |
D | clk-vt8500.c | 457 unsigned long tclk, rate_err, best_err; in wm8750_find_pll_bits() local 459 best_err = (unsigned long)-1; in wm8750_find_pll_bits() 478 if (rate_err < best_err) { in wm8750_find_pll_bits() 479 best_err = rate_err; in wm8750_find_pll_bits() 486 if (best_err == (unsigned long)-1) { in wm8750_find_pll_bits() 493 rate - best_err); in wm8750_find_pll_bits() 505 unsigned long tclk, rate_err, best_err; in wm8850_find_pll_bits() local 507 best_err = (unsigned long)-1; in wm8850_find_pll_bits() 526 if (rate_err < best_err) { in wm8850_find_pll_bits() 527 best_err = rate_err; in wm8850_find_pll_bits() [all …]
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | base.c | 54 int i, ret = -EINVAL, best_err = volt->max_uv, best = -1; in nvkm_volt_set() local 61 if (err < 0 || err > best_err) in nvkm_volt_set() 64 best_err = err; in nvkm_volt_set() 66 if (best_err == 0) in nvkm_volt_set()
|
/linux-6.1.9/drivers/media/platform/renesas/ |
D | sh_vou.c | 509 unsigned int best_err = UINT_MAX, best = 0, img_height_max; in vou_adjust_input() local 534 if (err < best_err) { in vou_adjust_input() 535 best_err = err; in vou_adjust_input() 546 best_err = UINT_MAX; in vou_adjust_input() 559 if (err < best_err) { in vou_adjust_input() 560 best_err = err; in vou_adjust_input() 578 unsigned int best_err = UINT_MAX, best = geo->in_width, in vou_adjust_output() local 603 if (err < best_err) { in vou_adjust_output() 604 best_err = err; in vou_adjust_output() 620 best_err = UINT_MAX; in vou_adjust_output() [all …]
|
/linux-6.1.9/drivers/input/misc/ |
D | axp20x-pek.c | 140 unsigned int best_err = UINT_MAX; in axp20x_store_attr() local 157 if (err < best_err) { in axp20x_store_attr() 158 best_err = err; in axp20x_store_attr()
|
/linux-6.1.9/drivers/gpu/drm/rcar-du/ |
D | rcar_mipi_dsi.c | 189 unsigned int best_err = -1; in rcar_mipi_dsi_parameters_calc() local 246 if (err < best_err) { in rcar_mipi_dsi_parameters_calc() 250 best_err = err; in rcar_mipi_dsi_parameters_calc() 260 clk, fin, setup_info->fout, fout_target, best_err / 100, in rcar_mipi_dsi_parameters_calc() 261 best_err % 100, setup_info->m, setup_info->n, setup_info->div); in rcar_mipi_dsi_parameters_calc()
|
/linux-6.1.9/drivers/video/fbdev/ |
D | sstfb.c | 294 int m, m2, n, p, best_err, fout; in sst_calc_pll() local 298 best_err = freq; in sst_calc_pll() 313 if ((abs(fout - freq) < best_err) && (m > 0)) { in sst_calc_pll() 316 best_err = abs(fout - freq); in sst_calc_pll() 318 if (200*best_err < freq) break; in sst_calc_pll()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramgk104.c | 992 int best_err = target_khz, p_ref, n_ref; in gk104_pll_calc_hiclk() local 1011 if (cur_err < best_err) { in gk104_pll_calc_hiclk() 1012 best_err = cur_err; in gk104_pll_calc_hiclk() 1022 if (cur_err < best_err) { in gk104_pll_calc_hiclk() 1023 best_err = cur_err; in gk104_pll_calc_hiclk() 1033 *fN1 = (u16)((((best_err / *N2 * *P2) * (*P1 * *M1)) << 13) / crystal); in gk104_pll_calc_hiclk()
|
/linux-6.1.9/drivers/leds/rgb/ |
D | leds-qcom-lpg.c | 264 unsigned int best_err = UINT_MAX; in lpg_calc_freq() local 317 if (error < best_err) { in lpg_calc_freq() 318 best_err = error; in lpg_calc_freq()
|