Home
last modified time | relevance | path

Searched refs:besterr (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/tty/serial/
Dmax310x.c542 static int max310x_update_best_err(unsigned long f, long *besterr) in max310x_update_best_err() argument
547 if ((*besterr < 0) || (*besterr > err)) { in max310x_update_best_err()
548 *besterr = err; in max310x_update_best_err()
559 long besterr = -1; in max310x_set_ref_clk() local
563 max310x_update_best_err(freq, &besterr); in max310x_set_ref_clk()
566 for (div = 1; (div <= 63) && besterr; div++) { in max310x_set_ref_clk()
572 if (!max310x_update_best_err(fmul, &besterr)) { in max310x_set_ref_clk()
579 if (!max310x_update_best_err(fmul, &besterr)) { in max310x_set_ref_clk()
586 if (!max310x_update_best_err(fmul, &besterr)) { in max310x_set_ref_clk()
593 if (!max310x_update_best_err(fmul, &besterr)) { in max310x_set_ref_clk()
Dsccnxp.c258 static int sccnxp_update_best_err(int a, int b, int *besterr) in sccnxp_update_best_err() argument
262 if (*besterr > err) { in sccnxp_update_best_err()
263 *besterr = err; in sccnxp_update_best_err()
310 int div_std, tmp_baud, bestbaud = INT_MAX, besterr = INT_MAX; in sccnxp_set_baud() local
318 sccnxp_update_best_err(baud, bestbaud, &besterr); in sccnxp_set_baud()
327 for (i = 0; baud_std[i].baud && besterr; i++) { in sccnxp_set_baud()
332 if (!sccnxp_update_best_err(baud, tmp_baud, &besterr)) { in sccnxp_set_baud()