Lines Matching defs:baud
7 * optional features including the ability to use a baud rate clock
8 * mux for more accurate high speed baud rate selection and also
676 static u32 find_quot(struct device *dev, u32 freq, u32 baud, u32 *percent)
685 quot = DIV_ROUND_CLOSEST(rate, baud);
691 hires_baud = (u64)baud * 10000;
699 *percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud);
702 baud, freq, *percent / 100, *percent % 100);
708 u32 baud)
725 quot = find_quot(up->dev, priv->default_mux_rate, baud, &percent);
731 /* If more than 1% error, find the closest match for specified baud */
737 quot = find_quot(up->dev, freq, baud, &percent);
749 dev_err(up->dev, "Error, %d BAUD rate is too fast.\n", baud);
758 dev_err(up->dev, "Error, baud: %d has %u.%u%% error\n",
759 baud, percent / 100, percent % 100);
763 dev_dbg(up->dev, "Requested baud: %u, Actual baud: %u\n",
764 baud, real_baud);
766 /* calc nanoseconds for 1.5 characters time at the given baud rate */
1143 * baud rate has been restored.