Lines Matching defs:mode

110 static void setEPPMode (int mode);
156 /* parport mode setting */
164 /* mode dependent operations */
315 static int gEPAT = 0; /* signals fast mode ? */
543 * gain direct access to IO port, and set parport to the 'right' mode
555 int mode, modes, rc;
674 mode = IEEE1284_MODE_COMPAT;
675 ioctl (fd, PPSETMODE, &mode);
688 mode = 0;
690 /* preferred mode is EPP */
693 mode = IEEE1284_MODE_EPP;
696 rc = ioctl (fd, PPNEGOT, &mode);
700 "umax_pp: ppdev couldn't negotiate mode IEEE1284_MODE_EPP for '%s' (ignored)\n",
703 if (ioctl (fd, PPSETMODE, &mode))
706 "umax_pp: ppdev couldn't set mode to IEEE1284_MODE_EPP for '%s'\n",
709 mode = 0;
714 "umax_pp: mode set to PARPORT_MODE_EPP for '%s'\n",
719 if ((modes & PARPORT_MODE_ECP) && (mode == 0))
721 mode = IEEE1284_MODE_ECP;
722 rc = ioctl (fd, PPNEGOT, &mode);
726 "umax_pp: ppdev couldn't negotiate mode IEEE1284_MODE_ECP for '%s' (ignored)\n",
729 if (ioctl (fd, PPSETMODE, &mode))
732 "umax_pp: ppdev couldn't set mode to IEEE1284_MODE_ECP for '%s'\n",
738 mode = IEEE1284_MODE_COMPAT;
739 ioctl (fd, PPSETMODE, &mode);
748 "umax_pp: mode set to PARPORT_MODE_ECP for '%s'\n",
754 /* always start in compat mode (for probe) */
755 mode = IEEE1284_MODE_COMPAT;
756 rc = ioctl (fd, PPSETMODE, &mode);
760 mode = 0; /* data forward */
761 rc = ioctl (fd, PPDATADIR, &mode);
765 mode = 1; /* FW IDLE */
766 rc = ioctl (fd, PPSETPHASE, &mode);
870 int fd, rc, mode, exmode;
892 mode = val & 0x20;
893 rc = ioctl (fd, PPDATADIR, &mode);
911 mode = 0; /* data forward */
912 rc = ioctl (fd, PPDATADIR, &mode);
916 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
917 rc = ioctl (fd, PPSETMODE, &mode);
937 mode = 0; /* data forward */
938 rc = ioctl (fd, PPDATADIR, &mode);
942 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
943 rc = ioctl (fd, PPSETMODE, &mode);
1036 int fd, rc, mode;
1081 mode = 1; /* data_reverse */
1082 rc = ioctl (fd, PPDATADIR, &mode);
1086 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
1087 rc = ioctl (fd, PPSETMODE, &mode);
1094 mode = 0; /* data_forward */
1095 rc = ioctl (fd, PPDATADIR, &mode);
1333 setEPPMode (int mode)
1335 if (mode == 8)
1425 ppdev_set_mode (int mode)
1433 rc = ioctl (fd, PPSETMODE, &mode);
1446 /* set parallel port mode to 'compatible'*/
1459 /* set parallel port mode to 'bidirectionel'*/
1472 /* set parallel port mode to 'fifo'*/
1612 * surely some register reading in PS2 mode
2323 /* these 3 lines set to 'inital mode' */
2395 int rc, mode, fd;
2404 mode = 1; /* data_reverse */
2405 rc = ioctl (fd, PPDATADIR, &mode);
2422 mode = 0; /* data_forward */
2423 rc = ioctl (fd, PPDATADIR, &mode);
2435 /* ECP FIFO mode, interrupt bit, dma disabled,
2453 /* byte mode, interrupt bit, dma disabled,
2458 /* ECP FIFO mode, interrupt bit, dma disabled,
2485 int fd, mode, rc;
2498 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2499 rc = ioctl (fd, PPSETMODE, &mode);
2507 mode = 1; /* data_reverse */
2508 rc = ioctl (fd, PPDATADIR, &mode);
2513 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
2514 rc = ioctl (fd, PPSETMODE, &mode);
2523 mode = 0; /* forward */
2524 rc = ioctl (fd, PPDATADIR, &mode);
2590 /* standard mode, interrupt bit, dma disabled,
2595 /* ECP FIFO mode, interrupt bit, dma disabled,
2632 int fd, mode, rc;
2644 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2645 rc = ioctl (fd, PPSETMODE, &mode);
2654 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
2655 rc = ioctl (fd, PPSETMODE, &mode);
2697 int fd, mode, rc;
2705 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2706 rc = ioctl (fd, PPSETMODE, &mode);
2721 int fd, mode, rc, nb;
2733 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2734 rc = ioctl (fd, PPSETMODE, &mode);
2740 mode = 1; /* data_reverse */
2741 rc = ioctl (fd, PPDATADIR, &mode);
2746 mode = PP_FASTREAD;
2747 rc = ioctl (fd, PPSETFLAGS, &mode);
2752 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
2753 rc = ioctl (fd, PPSETMODE, &mode);
2764 mode = 0; /* forward */
2765 rc = ioctl (fd, PPDATADIR, &mode);
2770 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2771 rc = ioctl (fd, PPSETMODE, &mode);
2777 mode = 1; /* data_reverse */
2778 rc = ioctl (fd, PPDATADIR, &mode);
2782 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
2783 rc = ioctl (fd, PPSETMODE, &mode);
2789 mode = 0; /* forward */
2790 rc = ioctl (fd, PPDATADIR, &mode);
2834 /* mode and size setting */
2914 byteMode (); /*Outb (ECR, 0x20); byte mode */
2935 byteMode (); /*Outb (ECR, 0x20); byte mode */
2973 int fd, mode, rc;
2984 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
2985 rc = ioctl (fd, PPSETMODE, &mode);
2991 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
2992 rc = ioctl (fd, PPSETMODE, &mode);
3081 /* final FIFO check and go to Byte mode */
3208 /* returns 0 if mode OK, else -1 */
3251 /* write 1 byte in EPP mode, returning scnner's status */
3692 int fd, mode, rc, nb;
3704 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
3705 rc = ioctl (fd, PPSETMODE, &mode);
3711 mode = 1; /* data_reverse */
3712 rc = ioctl (fd, PPDATADIR, &mode);
3717 mode = PP_FASTREAD;
3718 rc = ioctl (fd, PPSETFLAGS, &mode);
3723 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
3724 rc = ioctl (fd, PPSETMODE, &mode);
3737 mode = 0; /* forward */
3738 rc = ioctl (fd, PPDATADIR, &mode);
3743 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
3744 rc = ioctl (fd, PPSETMODE, &mode);
3750 mode = 1; /* data_reverse */
3751 rc = ioctl (fd, PPDATADIR, &mode);
3755 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
3756 rc = ioctl (fd, PPSETMODE, &mode);
3762 mode = 0; /* forward */
3763 rc = ioctl (fd, PPDATADIR, &mode);
3796 int fd, mode, rc;
3812 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
3813 rc = ioctl (fd, PPSETMODE, &mode);
3820 mode = PP_FASTWRITE;
3821 rc = ioctl (fd, PPSETFLAGS, &mode);
3826 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
3827 rc = ioctl (fd, PPSETMODE, &mode);
3890 int fd, rc, mode;
3904 mode = 1; /* data_reverse */
3905 rc = ioctl (fd, PPDATADIR, &mode);
3910 mode = PP_FASTREAD;
3911 rc = ioctl (fd, PPSETFLAGS, &mode);
3916 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
3917 rc = ioctl (fd, PPSETMODE, &mode);
4046 mode = 0; /* forward */
4047 rc = ioctl (fd, PPDATADIR, &mode);
4052 mode = IEEE1284_MODE_EPP | IEEE1284_ADDR;
4053 rc = ioctl (fd, PPSETMODE, &mode);
4059 mode = 1; /* data_reverse */
4060 rc = ioctl (fd, PPDATADIR, &mode);
4064 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
4065 rc = ioctl (fd, PPSETMODE, &mode);
4072 mode = 0; /* forward */
4073 rc = ioctl (fd, PPDATADIR, &mode);
4344 int exmode, mode, rc, fd;
4356 mode = IEEE1284_MODE_COMPAT;
4357 rc = ioctl (fd, PPSETMODE, &mode);
4498 /* bit0 is timeout bit in EPP mode, should we take care of it ? */
5961 DBG (1, "No EPP mode detected\n");
5966 DBG (1, "EPP mode detected\n");
6288 * try PS2 mode
6305 /* end test for nibble byte/byte mode */
6307 /* now we try nibble buffered mode */
6358 /* catch any failure to read back data in EPP mode */
6477 /* test EPP32 mode */
6478 /* we set 32 bits I/O mode first, then step back to */
6573 * try ECP mode
6596 byteMode (); /*Outb (ECR, 0x20); byte mode */
6651 byteMode (); /*Outb (ECR, 0x20); byte mode */
6828 /* in probeEPP(), we begin 32 bit mode test here */
7035 /* test PS2 mode */
7102 /* comm mode ? */
7104 DBG (1, "UMAX Astra 1220/1600/2000 P ASIC detected (mode=%d)\n", model);
7173 { /* PS2 mode works */
7186 { /* EPP mode works */
7196 { /* ECP mode works */
7204 DBG (1, "No EPP or ECP mode working, giving up ... (%s:%d)\n",
7256 /* 0x00 when in ECP mode ... */
8244 int fd, mode, rc, wait;
8373 mode = 1; /* data_reverse */
8374 rc = ioctl (fd, PPDATADIR, &mode);
8381 mode = PP_FASTREAD;
8382 rc = ioctl (fd, PPSETFLAGS, &mode);
8388 mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
8389 rc = ioctl (fd, PPSETMODE, &mode);
8840 /* in it according to the color mode, before polling the scanner */
10277 /* in color mode, we need extra lines to reorder data */
10370 /* in color mode we have to fill the 'reserve' area
11541 /* really dirty hack: something is buggy in BW mode */
11542 /* we override mode with color until the bug is found */
11646 opsc48[13] = 0xC0; /* B&W mode */
11651 opsc48[13] = 0xC1; /* some strange mode ? */