Lines Matching defs:bps
2518 static int sci_sck_calc(struct sci_port *s, unsigned int bps,
2529 err = DIV_ROUND_CLOSEST(freq, sr) - bps;
2540 dev_dbg(s->port.dev, "SCK: %u%+d bps using SR %u\n", bps, min_err,
2545 static int sci_brg_calc(struct sci_port *s, unsigned int bps,
2556 dl = DIV_ROUND_CLOSEST(freq, sr * bps);
2559 err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps;
2571 dev_dbg(s->port.dev, "BRG: %u%+d bps using DL %u SR %u\n", bps,
2577 int sci_scbrr_calc(struct sci_port *s, unsigned int bps, unsigned int *brr,
2610 * br = freq / (prediv * bps) clamped to [1..256]
2611 * err = freq / (br * prediv) - bps
2616 if (bps > UINT_MAX / prediv)
2619 scrate = prediv * bps;
2623 err = DIV_ROUND_CLOSEST(freq, br * prediv) - bps;
2638 dev_dbg(s->port.dev, "BRR: %u%+d bps using N %u SR %u cks %u\n", bps,
2790 dev_dbg(port->dev, "Using clk %pC for %u%+d bps\n",