Lines Matching defs:speed
91 static int ttcompatspeedtab(int speed, struct speedtab *table);
94 * These two tables encode baud rate to speed code and speed code to
130 * Description: Given a baud rate value as an integer, and a speed table,
131 * convert the baud rate to a speed code, according to the
135 * Parameters: int speed Baud rate, as an integer
136 * struct speedtab *table Baud rate table to speed code table
138 * Returns: 1 B50 speed code; returned if we can
143 * * A speed code matching the requested
150 ttcompatspeedtab(int speed, struct speedtab *table)
152 if (speed == 0)
155 if (table->sp_speed <= speed) /* nearest one, rounded down */
191 * Returns: EINVAL An input speed or output speed is
228 int speed;
230 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0)
232 else if (speed != ttcompatspeedtab(tp->t_ispeed, compatspeeds))
233 term->c_ispeed = compatspcodes[speed];
236 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0)
238 else if (speed != ttcompatspeedtab(tp->t_ospeed, compatspeeds))
239 term->c_ospeed = compatspcodes[speed];
505 * speed code for the device (all 32 bits are returned).