Home | History | Annotate | Download | only in moused

Lines Matching defs:mfd

350     int mfd;			/* mouse file descriptor */
370 .mfd = -1,
776 if ((rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK, 0))
781 close(rodent.mfd);
782 rodent.mfd = -1;
806 if (rodent.mfd == -1) {
821 if (rodent.mfd != -1)
822 close(rodent.mfd);
825 rodent.mfd = rodent.cfd = -1;
896 set[0].fd = rodent.mfd;
934 if (read(rodent.mfd, &b, 1) == -1)
1265 write(rodent.mfd, "S", 1);
1269 if (rodent.rate <= 0) write(rodent.mfd, "O", 1);
1270 else if (rodent.rate <= 15) write(rodent.mfd, "J", 1);
1271 else if (rodent.rate <= 27) write(rodent.mfd, "K", 1);
1272 else if (rodent.rate <= 42) write(rodent.mfd, "L", 1);
1273 else if (rodent.rate <= 60) write(rodent.mfd, "R", 1);
1274 else if (rodent.rate <= 85) write(rodent.mfd, "M", 1);
1275 else if (rodent.rate <= 125) write(rodent.mfd, "Q", 1);
1276 else write(rodent.mfd, "N", 1);
1282 write(rodent.mfd, "*X", 2);
1296 write(rodent.mfd, "z8", 2); /* Set Parity = "NONE" */
1298 write(rodent.mfd, "zb", 2); /* Set Format = "Binary" */
1300 write(rodent.mfd, "@", 1); /* Set Report Mode = "Stream" */
1302 write(rodent.mfd, "R", 1); /* Set Output Rate = "45 rps" */
1304 write(rodent.mfd, "I\x20", 2); /* Set Incrememtal Mode "20" */
1306 write(rodent.mfd, "E", 1); /* Set Data Type = "Relative */
1320 write(rodent.mfd, &c, 1);
1323 write(rodent.mfd, "\021", 1); /* Resume DATA output */
1331 ioctl(rodent.mfd, TIOCFLUSH, &i);
1333 set[0].fd = rodent.mfd;
1336 write(rodent.mfd, s, 1);
1339 read(rodent.mfd, &c, 1);
1350 ioctl(rodent.mfd, TIOCMBIC, &i);
1354 ioctl(rodent.mfd, TIOCMBIC, &i);
1371 ioctl(rodent.mfd, MOUSE_SETMODE, &rodent.mode);
1384 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec */
1386 ioctl(rodent.mfd, TIOCFLUSH, &i);
1387 set[0].fd = rodent.mfd;
1392 read(rodent.mfd, &c, 1);
1399 tcsendbreak(rodent.mfd, 0); /* send break for 400 msec again */
1403 read(rodent.mfd, &c, 1);
1409 ioctl(rodent.mfd, TIOCFLUSH, &i);
2239 if (tcgetattr(rodent.mfd, &tty) < 0)
2272 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
2305 if (write(rodent.mfd, c, 2) != 2)
2313 if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
2354 ioctl(rodent.mfd, TIOCMGET, &i);
2357 ioctl(rodent.mfd, TIOCMSET, &i);
2366 ioctl(rodent.mfd, TIOCMGET, &i);
2374 ioctl(rodent.mfd, TIOCMBIC, &i);
2377 ioctl(rodent.mfd, TIOCMBIS, &i);
2382 ioctl(rodent.mfd, TIOCFLUSH, &i);
2384 ioctl(rodent.mfd, TIOCMBIS, &i);
2387 set[0].fd = rodent.mfd;
2396 ioctl(rodent.mfd, TIOCMBIC, &i);
2401 ioctl(rodent.mfd, TIOCFLUSH, &i);
2403 ioctl(rodent.mfd, TIOCMBIS, &i);
2425 ioctl(rodent.mfd, TIOCMGET, &i);
2428 ioctl(rodent.mfd, TIOCMSET, &i);
2435 ioctl(rodent.mfd, TIOCFLUSH, &i);
2437 ioctl(rodent.mfd, TIOCMBIS, &i);
2440 set[0].fd = rodent.mfd;
2466 ioctl(rodent.mfd, TIOCMBIS, &i);
2474 while (read(rodent.mfd, &c, 1) == 1) {
2492 set[0].fd = rodent.mfd;
2498 read(rodent.mfd, &buf[i], 1);