Lines Matching refs:speed
52 static int ttcompatspeedtab(int speed, struct speedtab *table);
85 ttcompatspeedtab(int speed, struct speedtab *table) in ttcompatspeedtab() argument
87 if (speed == 0) in ttcompatspeedtab()
90 if (table->sp_speed <= speed) /* nearest one, rounded down */ in ttcompatspeedtab()
102 int speed; in ttsetcompat() local
104 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0) in ttsetcompat()
106 else if (speed != ttcompatspeedtab(tp->t_termios.c_ispeed, in ttsetcompat()
108 term->c_ispeed = compatspcodes[speed]; in ttsetcompat()
111 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0) in ttsetcompat()
113 else if (speed != ttcompatspeedtab(tp->t_termios.c_ospeed, in ttsetcompat()
115 term->c_ospeed = compatspcodes[speed]; in ttsetcompat()