Lines Matching defs:mode
256 /* Safely change the mode bits in the ECR */
260 int mode;
265 /* Bits <7:5> contain the mode. */
266 mode = (priv->reg[2] >> 5) & 0x7;
267 if (mode == m)
269 /* We have to go through mode 000 or 001 */
270 if (mode > ECR_PS2 && m > ECR_PS2)
275 /* This mode resets the FIFO, so we may
278 switch (mode) {
279 case ECR_PPF: /* Parallel Port FIFO mode */
280 case ECR_ECP: /* ECP Parallel Port mode */
296 /* Set the mode. */
724 /* set the USS720 control register to manual mode, no ECP compression, enable all ints */
726 set_1284_register(pp, 6, 0x30, GFP_KERNEL); /* PS/2 mode */