Lines Matching defs:rate
76 static int rate_to_code (int rate);
77 static int hardwire_setbaudrate (struct serial *scb, int rate);
649 int rate;
745 rate_to_code (int rate)
749 for (i = 0; baudtab[i].rate != -1; i++)
752 if (rate == baudtab[i].rate)
757 if (rate < baudtab[i].rate)
761 warning ("Invalid baud rate %d. Closest values are %d and %d.",
762 rate, baudtab[i - 1].rate, baudtab[i].rate);
766 warning ("Invalid baud rate %d. Minimum value is %d.",
767 rate, baudtab[0].rate);
775 warning ("Invalid baud rate %d. Maximum value is %d.",
776 rate, baudtab[i - 1].rate);
781 hardwire_setbaudrate (struct serial *scb, int rate)
784 int baud_code = rate_to_code (rate);
788 /* The baud rate was not valid.
1096 ser_unix_nop_setbaudrate (struct serial *scb, int rate)