Lines Matching defs:speed
56 static int ttcompatspeedtab(int speed, struct speedtab *table);
89 ttcompatspeedtab(int speed, struct speedtab *table)
91 if (speed == 0)
94 if (table->sp_speed <= speed) /* nearest one, rounded down */
106 int speed;
108 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0)
110 else if (speed != ttcompatspeedtab(tp->t_termios.c_ispeed,
112 term->c_ispeed = compatspcodes[speed];
115 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0)
117 else if (speed != ttcompatspeedtab(tp->t_termios.c_ospeed,
119 term->c_ospeed = compatspcodes[speed];