Lines Matching refs:baudRate
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()
1076 } else if ((baudRate > 460800) && (baudRate <= 806400)) { in mos7840_calc_baud_rate_divisor()
1077 *divisor = 806400 / baudRate; in mos7840_calc_baud_rate_divisor()
1079 } else if ((baudRate > 806400) && (baudRate <= 921600)) { in mos7840_calc_baud_rate_divisor()
1080 *divisor = 921600 / baudRate; in mos7840_calc_baud_rate_divisor()
1082 } else if ((baudRate > 921600) && (baudRate <= 1572864)) { in mos7840_calc_baud_rate_divisor()
1083 *divisor = 1572864 / baudRate; in mos7840_calc_baud_rate_divisor()
1085 } else if ((baudRate > 1572864) && (baudRate <= 3145728)) { in mos7840_calc_baud_rate_divisor()
1086 *divisor = 3145728 / baudRate; in mos7840_calc_baud_rate_divisor()
1099 int baudRate) in mos7840_send_cmd_write_baud_rate() argument
1107 dev_dbg(&port->dev, "%s - baud = %d\n", __func__, baudRate); in mos7840_send_cmd_write_baud_rate()
1109 if (baudRate > 115200) { in mos7840_send_cmd_write_baud_rate()
1141 status = mos7840_calc_baud_rate_divisor(port, baudRate, &divisor, in mos7840_send_cmd_write_baud_rate()