Home
last modified time | relevance | path

Searched refs:newspd (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/drivers/tty/
Dmxser.c484 static int mxser_set_baud(struct tty_struct *tty, speed_t newspd) in mxser_set_baud() argument
491 if (newspd > info->board->max_baud) in mxser_set_baud()
494 if (newspd == 134) { in mxser_set_baud()
497 } else if (newspd) { in mxser_set_baud()
498 quot = MXSER_BAUD_BASE / newspd; in mxser_set_baud()
533 quot = MXSER_BAUD_BASE % newspd; in mxser_set_baud()
535 if (quot % newspd > newspd / 2) { in mxser_set_baud()
536 quot /= newspd; in mxser_set_baud()
539 quot /= newspd; in mxser_set_baud()