Lines Matching refs:mfd

408     int mfd;			/* mouse file descriptor */
435 .mfd = -1,
892 rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK);
893 if (rodent.mfd == -1)
897 close(rodent.mfd);
898 rodent.mfd = -1;
922 if (rodent.mfd == -1) {
937 if (rodent.mfd != -1)
938 close(rodent.mfd);
941 rodent.mfd = rodent.cfd = -1;
1074 FD_SET(rodent.mfd, &fds);
1110 if (read(rodent.mfd, &b, 1) == -1) {
1493 ioctl(rodent.mfd, MOUSE_SETLEVEL, &rodent.level);
1494 rodent.level = (ioctl(rodent.mfd, MOUSE_GETLEVEL, &level) == 0) ? level : 0;
1504 ioctl(rodent.mfd, MOUSE_GETHWINFO, &rodent.hw);
1513 if (ioctl(rodent.mfd, MOUSE_GETMODE, &rodent.mode) == 0) {
1671 write(rodent.mfd, "S", 1);
1675 if (rodent.rate <= 0) write(rodent.mfd, "O", 1);
1676 else if (rodent.rate <= 15) write(rodent.mfd, "J", 1);
1677 else if (rodent.rate <= 27) write(rodent.mfd, "K", 1);
1678 else if (rodent.rate <= 42) write(rodent.mfd, "L", 1);
1679 else if (rodent.rate <= 60) write(rodent.mfd, "R", 1);
1680 else if (rodent.rate <= 85) write(rodent.mfd, "M", 1);
1681 else if (rodent.rate <= 125) write(rodent.mfd, "Q", 1);
1682 else write(rodent.mfd, "N", 1);
1688 write(rodent.mfd, "*X", 2);
1702 write(rodent.mfd, "z8", 2); /* Set Parity = "NONE" */
1704 write(rodent.mfd, "zb", 2); /* Set Format = "Binary" */
1706 write(rodent.mfd, "@", 1); /* Set Report Mode = "Stream" */
1708 write(rodent.mfd, "R", 1); /* Set Output Rate = "45 rps" */
1710 write(rodent.mfd, "I\x20", 2); /* Set Incrememtal Mode "20" */
1712 write(rodent.mfd, "E", 1); /* Set Data Type = "Relative */
1726 write(rodent.mfd, &c, 1);
1729 write(rodent.mfd, "\021", 1); /* Resume DATA output */
1737 ioctl(rodent.mfd, TIOCFLUSH, &i);
1740 write(rodent.mfd, s, 1);
1742 FD_SET(rodent.mfd, &fds);
1745 read(rodent.mfd, &c, 1);
1758 ioctl(rodent.mfd, TIOCMBIC, &i);
1762 ioctl(rodent.mfd, TIOCMBIC, &i);
1778 ioctl(rodent.mfd, MOUSE_SETMODE, &rodent.mode);
1788 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec */
1790 ioctl(rodent.mfd, TIOCFLUSH, &i);
1793 FD_SET(rodent.mfd, &fds);
1796 read(rodent.mfd, &c, 1);
1803 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec again */
1806 FD_SET(rodent.mfd, &fds);
1809 read(rodent.mfd, &c, 1);
1815 ioctl(rodent.mfd, TIOCFLUSH, &i);
2693 if (tcgetattr(rodent.mfd, &tty) < 0)
2726 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
2759 if (write(rodent.mfd, c, 2) != 2)
2767 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
2809 ioctl(rodent.mfd, TIOCMGET, &i);
2812 ioctl(rodent.mfd, TIOCMSET, &i);
2821 ioctl(rodent.mfd, TIOCMGET, &i);
2829 ioctl(rodent.mfd, TIOCMBIC, &i);
2832 ioctl(rodent.mfd, TIOCMBIS, &i);
2837 ioctl(rodent.mfd, TIOCFLUSH, &i);
2839 ioctl(rodent.mfd, TIOCMBIS, &i);
2843 FD_SET(rodent.mfd, &fds);
2853 ioctl(rodent.mfd, TIOCMBIC, &i);
2858 ioctl(rodent.mfd, TIOCFLUSH, &i);
2860 ioctl(rodent.mfd, TIOCMBIS, &i);
2864 FD_SET(rodent.mfd, &fds);
2887 ioctl(rodent.mfd, TIOCMGET, &i);
2890 ioctl(rodent.mfd, TIOCMSET, &i);
2897 ioctl(rodent.mfd, TIOCFLUSH, &i);
2899 ioctl(rodent.mfd, TIOCMBIS, &i);
2903 FD_SET(rodent.mfd, &fds);
2931 ioctl(rodent.mfd, TIOCMBIS, &i);
2939 while (read(rodent.mfd, &c, 1) == 1) {
2959 FD_SET(rodent.mfd, &fds);
2965 read(rodent.mfd, &buf[i], 1);