Lines Matching refs:rate
53 static int rate_to_code (int rate);
54 static void hardwire_setbaudrate (struct serial *scb, int rate);
239 int rate;
401 rate_to_code (int rate)
405 for (i = 0; baudtab[i].rate != -1; i++)
408 if (rate == baudtab[i].rate)
413 if (rate < baudtab[i].rate)
417 error (_("Invalid baud rate %d. "
419 rate, baudtab[i - 1].rate, baudtab[i].rate);
423 error (_("Invalid baud rate %d. Minimum value is %d."),
424 rate, baudtab[0].rate);
431 error (_("Invalid baud rate %d. Maximum value is %d."),
432 rate, baudtab[i - 1].rate);
436 hardwire_setbaudrate (struct serial *scb, int rate)
439 int baud_code = rate_to_code (rate);