Lines Matching refs:speed
86 static int ttcompatspeedtab(int speed, struct speedtab *table);
89 * These two tables encode baud rate to speed code and speed code to
125 * Description: Given a baud rate value as an integer, and a speed table,
126 * convert the baud rate to a speed code, according to the
130 * Parameters: int speed Baud rate, as an integer
131 * struct speedtab *table Baud rate table to speed code table
133 * Returns: 1 B50 speed code; returned if we can
138 * * A speed code matching the requested
145 ttcompatspeedtab(int speed, struct speedtab *table)
147 if (speed == 0)
150 if (table->sp_speed <= speed) /* nearest one, rounded down */
185 * Returns: EINVAL An input speed or output speed is
217 int speed;
219 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0)
221 else if (speed != ttcompatspeedtab(tp->t_ispeed, compatspeeds))
222 term->c_ispeed = compatspcodes[speed];
225 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0)
227 else if (speed != ttcompatspeedtab(tp->t_ospeed, compatspeeds))
228 term->c_ospeed = compatspcodes[speed];
494 * speed code for the device (all 32 bits are returned).