Lines Matching defs:baud
258 int baud;
312 /* For reference buf[0]:buf[3] baud rate value */
315 * 9600 baud (at least my PL2303X always does)
317 baud = tty_get_baud_rate(tty);
318 dbg("%s - baud requested = %d", __func__, baud);
319 if (baud) {
322 if (baud_sup[k] / baud) {
325 baud = baud_ceil;
328 if ((baud_ceil % baud)
329 > (baud % baud_floor))
330 baud = baud_floor;
332 baud = baud_ceil;
337 if (baud > 1228800) {
338 /* type_0, type_1 only support up to 1228800 baud */
340 baud = 1228800;
341 else if (baud > 6000000)
342 baud = 6000000;
344 dbg("%s - baud set = %d", __func__, baud);
345 buf[0] = baud & 0xff;
346 buf[1] = (baud >> 8) & 0xff;
347 buf[2] = (baud >> 16) & 0xff;
348 buf[3] = (baud >> 24) & 0xff;
435 /* Save resulting baud rate */
436 if (baud)
437 tty_encode_baud_rate(tty, baud, baud);