Lines Matching defs:bps
2262 static int sci_sck_calc(struct sci_port *s, unsigned int bps,
2273 err = DIV_ROUND_CLOSEST(freq, sr) - bps;
2284 dev_dbg(s->port.dev, "SCK: %u%+d bps using SR %u\n", bps, min_err,
2289 static int sci_brg_calc(struct sci_port *s, unsigned int bps,
2300 dl = DIV_ROUND_CLOSEST(freq, sr * bps);
2303 err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps;
2315 dev_dbg(s->port.dev, "BRG: %u%+d bps using DL %u SR %u\n", bps,
2321 static int sci_scbrr_calc(struct sci_port *s, unsigned int bps,
2355 * br = freq / (prediv * bps) clamped to [1..256]
2356 * err = freq / (br * prediv) - bps
2361 if (bps > UINT_MAX / prediv)
2364 scrate = prediv * bps;
2368 err = DIV_ROUND_CLOSEST(freq, br * prediv) - bps;
2383 dev_dbg(s->port.dev, "BRR: %u%+d bps using N %u SR %u cks %u\n", bps,
2534 dev_dbg(port->dev, "Using clk %pC for %u%+d bps\n",