Searched refs:best_err (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/media/platform/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | axp20x-pek.c | 139 unsigned int best_err = UINT_MAX; in axp20x_store_attr() local 156 if (err < best_err) { in axp20x_store_attr() 157 best_err = err; in axp20x_store_attr()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | sstfb.c | 293 int m, m2, n, p, best_err, fout; in sst_calc_pll() local 297 best_err = freq; in sst_calc_pll() 312 if ((abs(fout - freq) < best_err) && (m > 0)) { in sst_calc_pll() 315 best_err = abs(fout - freq); in sst_calc_pll() 317 if (200*best_err < freq) break; in sst_calc_pll()
|
/kernel/linux/linux-5.10/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()
|