Lines Matching full:mfd

363     int mfd;			/* mouse file descriptor */  member
378 .mfd = -1,
584 rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK); in main()
585 if (rodent.mfd == -1) in main()
589 close(rodent.mfd); in main()
590 rodent.mfd = -1; in main()
614 if (rodent.mfd == -1) { in main()
629 if (rodent.mfd != -1) in main()
630 close(rodent.mfd); in main()
633 rodent.mfd = rodent.ufd = -1; in main()
680 FD_SET(rodent.mfd, &fds); in msconvd()
701 if (read(rodent.mfd, &b, 1) == -1) { in msconvd()
961 ioctl(rodent.mfd, MOUSE_SETLEVEL, &rodent.level); in r_identify()
962 rodent.level = (ioctl(rodent.mfd, MOUSE_GETLEVEL, &level) == 0) ? level : 0; in r_identify()
972 ioctl(rodent.mfd, MOUSE_GETHWINFO, &rodent.hw); in r_identify()
981 if (ioctl(rodent.mfd, MOUSE_GETMODE, &rodent.mode) == 0) { in r_identify()
1139 write(rodent.mfd, "S", 1); in r_init()
1143 if (rodent.rate <= 0) write(rodent.mfd, "O", 1); in r_init()
1144 else if (rodent.rate <= 15) write(rodent.mfd, "J", 1); in r_init()
1145 else if (rodent.rate <= 27) write(rodent.mfd, "K", 1); in r_init()
1146 else if (rodent.rate <= 42) write(rodent.mfd, "L", 1); in r_init()
1147 else if (rodent.rate <= 60) write(rodent.mfd, "R", 1); in r_init()
1148 else if (rodent.rate <= 85) write(rodent.mfd, "M", 1); in r_init()
1149 else if (rodent.rate <= 125) write(rodent.mfd, "Q", 1); in r_init()
1150 else write(rodent.mfd, "N", 1); in r_init()
1156 write(rodent.mfd, "*X", 2); in r_init()
1170 write(rodent.mfd, "z8", 2); /* Set Parity = "NONE" */ in r_init()
1172 write(rodent.mfd, "zb", 2); /* Set Format = "Binary" */ in r_init()
1174 write(rodent.mfd, "@", 1); /* Set Report Mode = "Stream" */ in r_init()
1176 write(rodent.mfd, "R", 1); /* Set Output Rate = "45 rps" */ in r_init()
1178 write(rodent.mfd, "I\x20", 2); /* Set Incrememtal Mode "20" */ in r_init()
1180 write(rodent.mfd, "E", 1); /* Set Data Type = "Relative */ in r_init()
1194 write(rodent.mfd, &c, 1); in r_init()
1197 write(rodent.mfd, "\021", 1); /* Resume DATA output */ in r_init()
1205 ioctl(rodent.mfd, TIOCFLUSH, &i); in r_init()
1208 write(rodent.mfd, s, 1); in r_init()
1210 FD_SET(rodent.mfd, &fds); in r_init()
1213 read(rodent.mfd, &c, 1); in r_init()
1226 ioctl(rodent.mfd, TIOCMBIC, &i); in r_init()
1230 ioctl(rodent.mfd, TIOCMBIC, &i); in r_init()
1244 ioctl(rodent.mfd, MOUSE_SETMODE, &rodent.mode); in r_init()
1254 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec */ in r_init()
1256 ioctl(rodent.mfd, TIOCFLUSH, &i); in r_init()
1259 FD_SET(rodent.mfd, &fds); in r_init()
1262 read(rodent.mfd, &c, 1); in r_init()
1269 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec again */ in r_init()
1272 FD_SET(rodent.mfd, &fds); in r_init()
1275 read(rodent.mfd, &c, 1); in r_init()
1281 ioctl(rodent.mfd, TIOCFLUSH, &i); in r_init()
1857 if (tcgetattr(rodent.mfd, &tty) < 0) in setmousespeed()
1890 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0) in setmousespeed()
1923 if (write(rodent.mfd, c, 2) != 2) in setmousespeed()
1931 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0) in setmousespeed()
1973 ioctl(rodent.mfd, TIOCMGET, &i); in pnpwakeup1()
1976 ioctl(rodent.mfd, TIOCMSET, &i); in pnpwakeup1()
1985 ioctl(rodent.mfd, TIOCMGET, &i); in pnpwakeup1()
1993 ioctl(rodent.mfd, TIOCMBIC, &i); in pnpwakeup1()
1996 ioctl(rodent.mfd, TIOCMBIS, &i); in pnpwakeup1()
2001 ioctl(rodent.mfd, TIOCFLUSH, &i); in pnpwakeup1()
2003 ioctl(rodent.mfd, TIOCMBIS, &i); in pnpwakeup1()
2007 FD_SET(rodent.mfd, &fds); in pnpwakeup1()
2017 ioctl(rodent.mfd, TIOCMBIC, &i); in pnpwakeup1()
2022 ioctl(rodent.mfd, TIOCFLUSH, &i); in pnpwakeup1()
2024 ioctl(rodent.mfd, TIOCMBIS, &i); in pnpwakeup1()
2028 FD_SET(rodent.mfd, &fds); in pnpwakeup1()
2051 ioctl(rodent.mfd, TIOCMGET, &i); in pnpwakeup2()
2054 ioctl(rodent.mfd, TIOCMSET, &i); in pnpwakeup2()
2061 ioctl(rodent.mfd, TIOCFLUSH, &i); in pnpwakeup2()
2063 ioctl(rodent.mfd, TIOCMBIS, &i); in pnpwakeup2()
2067 FD_SET(rodent.mfd, &fds); in pnpwakeup2()
2095 ioctl(rodent.mfd, TIOCMBIS, &i); in pnpgets()
2103 while (read(rodent.mfd, &c, 1) == 1) { in pnpgets()
2123 FD_SET(rodent.mfd, &fds); in pnpgets()
2129 read(rodent.mfd, &buf[i], 1); in pnpgets()