Searched refs:baudRate (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | mos7840.c | 1058 int baudRate, int *divisor, in mos7840_calc_baud_rate_divisor() argument 1061 dev_dbg(&port->dev, "%s - %d\n", __func__, baudRate); in mos7840_calc_baud_rate_divisor() 1063 if (baudRate <= 115200) { in mos7840_calc_baud_rate_divisor() 1064 *divisor = 115200 / baudRate; in mos7840_calc_baud_rate_divisor() 1067 if ((baudRate > 115200) && (baudRate <= 230400)) { in mos7840_calc_baud_rate_divisor() 1068 *divisor = 230400 / baudRate; in mos7840_calc_baud_rate_divisor() 1070 } else if ((baudRate > 230400) && (baudRate <= 403200)) { in mos7840_calc_baud_rate_divisor() 1071 *divisor = 403200 / baudRate; in mos7840_calc_baud_rate_divisor() 1073 } else if ((baudRate > 403200) && (baudRate <= 460800)) { in mos7840_calc_baud_rate_divisor() 1074 *divisor = 460800 / baudRate; in mos7840_calc_baud_rate_divisor() [all …]
|
H A D | io_edgeport.c | 177 __u32 baudRate; member 2182 int baudRate) in send_cmd_write_baud_rate() argument 2197 baudRate); in send_cmd_write_baud_rate() 2201 dev_dbg(dev, "%s - baud = %d\n", __func__, baudRate); in send_cmd_write_baud_rate() 2203 status = calc_baud_rate_divisor(dev, baudRate, &divisor); in send_cmd_write_baud_rate()
|