Lines Matching refs:speed
46 static _PROTOTYPE( int tc_to_sg_speed, (speed_t speed) );
47 static _PROTOTYPE( speed_t sg_to_tc_speed, (int speed) );
50 /* The speed get/set functions could be macros in the Minix implementation
51 * because there are speed fields in the structure with no fancy packing
69 speed_t cfsetispeed(termios_p, speed)
71 speed_t speed;
73 termios_p->c_ispeed = speed;
77 speed_t cfsetospeed(termios_p, speed)
79 speed_t speed;
81 termios_p->c_ospeed = speed;
85 static speed_t sg_to_tc_speed(speed)
86 int speed;
88 /* The speed encodings in sgtty.h and termios.h are different. Both are
92 switch (speed) {
120 static int tc_to_sg_speed(speed)
121 speed_t speed;
127 if (speed == 0) return 0;
128 if (speed == 110) return B110;
129 if (speed == 200) return B200;
130 if (speed == 300) return B300;
131 if (speed == 600) return B600;
132 if (speed == 1200) return B1200;
133 if (speed == 1800) return B1800;
134 if (speed == 2400) return B2400;
135 if (speed == 4800) return B4800;
136 if (speed == 9600) return B9600;
137 if (speed == 19200) return B19200;
139 if (speed == 28800) return B28800;
142 if (speed == 38400) return B38400;
145 if (speed == 57600) return B57600;
148 if (speed == 115200) return B115200;