Lines Matching full:bps
114 static inline int calc_divisor(int bps) in calc_divisor() argument
121 return (12000000 + 2*bps) / (4*bps); in calc_divisor()
198 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() local
218 dev_dbg(&port->dev, "%s - setting bps to %d\n", __func__, bps); in ark3116_set_termios()
220 switch (bps) { in ark3116_set_termios()
225 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios()
226 bps = 9600; in ark3116_set_termios()
227 quot = calc_divisor(bps); in ark3116_set_termios()
231 quot = calc_divisor(bps); in ark3116_set_termios()
235 quot = calc_divisor(bps); in ark3116_set_termios()
293 tty_termios_encode_baud_rate(termios, bps, bps); in ark3116_set_termios()