Lines Matching full:speed
44 static _PROTOTYPE( int tc_to_sg_speed, (speed_t speed) );
45 static _PROTOTYPE( speed_t sg_to_tc_speed, (int speed) );
48 /* The speed get/set functions could be macros in the Minix implementation
49 * because there are speed fields in the structure with no fancy packing
67 speed_t cfsetispeed(termios_p, speed) in cfsetispeed() argument
69 speed_t speed;
71 termios_p->c_ispeed = speed;
75 speed_t cfsetospeed(termios_p, speed) in cfsetospeed() argument
77 speed_t speed;
79 termios_p->c_ospeed = speed;
83 static speed_t sg_to_tc_speed(speed) in sg_to_tc_speed() argument
84 int speed; in sg_to_tc_speed()
86 /* The speed encodings in sgtty.h and termios.h are different. Both are
90 switch (speed) {
118 static int tc_to_sg_speed(speed) in tc_to_sg_speed() argument
119 speed_t speed; in tc_to_sg_speed()
125 if (speed == 0) return 0;
126 if (speed == 110) return B110;
127 if (speed == 200) return B200;
128 if (speed == 300) return B300;
129 if (speed == 600) return B600;
130 if (speed == 1200) return B1200;
131 if (speed == 1800) return B1800;
132 if (speed == 2400) return B2400;
133 if (speed == 4800) return B4800;
134 if (speed == 9600) return B9600;
135 if (speed == 19200) return B19200;
137 if (speed == 28800) return B28800;
140 if (speed == 38400) return B38400;
143 if (speed == 57600) return B57600;
146 if (speed == 115200) return B115200;