Lines Matching defs:rate
153 static usb_error_t umcs7840_calc_baudrate(uint32_t rate, uint16_t *, uint8_t *);
1024 umcs7840_set_baudrate(struct umcs7840_softc *sc, uint8_t portno, uint32_t rate)
1031 if (umcs7840_calc_baudrate(rate, &divisor, &clk)) {
1032 DPRINTF("Port %d bad speed: %d\n", portno, rate);
1036 DPRINTF("Port %d bad speed calculation: %d\n", portno, rate);
1039 DPRINTF("Port %d set speed: %d (%02x / %d)\n", portno, rate, clk, divisor);
1077 umcs7840_calc_baudrate(uint32_t rate, uint16_t *divisor, uint8_t *clk)
1081 if (rate > umcs7840_baudrate_divisors[umcs7840_baudrate_divisors_len - 1])
1085 !(rate > umcs7840_baudrate_divisors[i] && rate <= umcs7840_baudrate_divisors[i + 1]); ++i);
1086 if (rate == 0)
1089 *divisor = umcs7840_baudrate_divisors[i + 1] / rate;