Lines Matching refs:bps
2328 static int sci_sck_calc(struct sci_port *s, unsigned int bps, in sci_sck_calc() argument
2339 err = DIV_ROUND_CLOSEST(freq, sr) - bps; in sci_sck_calc()
2350 dev_dbg(s->port.dev, "SCK: %u%+d bps using SR %u\n", bps, min_err, in sci_sck_calc()
2355 static int sci_brg_calc(struct sci_port *s, unsigned int bps, in sci_brg_calc() argument
2366 dl = DIV_ROUND_CLOSEST(freq, sr * bps); in sci_brg_calc()
2369 err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps; in sci_brg_calc()
2381 dev_dbg(s->port.dev, "BRG: %u%+d bps using DL %u SR %u\n", bps, in sci_brg_calc()
2387 static int sci_scbrr_calc(struct sci_port *s, unsigned int bps, in sci_scbrr_calc() argument
2427 if (bps > UINT_MAX / prediv) in sci_scbrr_calc()
2430 scrate = prediv * bps; in sci_scbrr_calc()
2434 err = DIV_ROUND_CLOSEST(freq, br * prediv) - bps; in sci_scbrr_calc()
2449 dev_dbg(s->port.dev, "BRR: %u%+d bps using N %u SR %u cks %u\n", bps, in sci_scbrr_calc()