• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/parport/

Lines Matching defs:mode

226 /* Terminate a negotiated mode. */
233 switch (port->ieee1284.mode) {
237 /* Terminate from EPP mode. */
311 port->ieee1284.mode = IEEE1284_MODE_COMPAT;
314 DPRINTK (KERN_DEBUG "%s: In compatibility (forward idle) mode\n",
320 * parport_negotiate - negotiate an IEEE 1284 mode
322 * @mode: mode to negotiate to
324 * Use this to negotiate to a particular IEEE 1284 transfer mode.
325 * The @mode parameter should be one of the constants in
329 * negotiation to the mode specified, -1 if the peripheral is not
334 int parport_negotiate (struct parport *port, int mode)
337 if (mode == IEEE1284_MODE_COMPAT)
342 int m = mode & ~IEEE1284_ADDR;
349 if (port->ieee1284.mode == mode)
353 if ((port->ieee1284.mode & ~IEEE1284_ADDR) == (mode & ~IEEE1284_ADDR)){
354 port->ieee1284.mode = mode;
358 /* Go to compability forward idle mode */
359 if (port->ieee1284.mode != IEEE1284_MODE_COMPAT)
362 if (mode == IEEE1284_MODE_COMPAT)
363 /* Compatibility mode: no negotiation. */
366 switch (mode) {
378 if (mode & IEEE1284_EXT_LINK)
442 port->name, mode, port->ops->read_status (port));
450 if (mode && !xflag) {
453 port->name, mode);
459 if (mode & IEEE1284_EXT_LINK) {
460 m = mode & 0x7f;
493 port->name, mode,
504 /* Extended mode not supported. */
505 DPRINTK (KERN_DEBUG "%s: Extended mode 0x%02x not "
506 "supported\n", port->name, mode);
515 DPRINTK (KERN_DEBUG "%s: In mode 0x%02x\n", port->name, mode);
516 port->ieee1284.mode = mode;
519 if (!(mode & IEEE1284_EXT_LINK) && (m & IEEE1284_MODE_ECP)) {
539 } else switch (mode) {
596 * specified, using the IEEE 1284 transfer mode most recently
598 * mode supports forward transfers (host to peripheral).
613 int mode = port->ieee1284.mode;
614 int addr = mode & IEEE1284_ADDR;
618 mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR);
620 /* Use the mode we're in. */
621 switch (mode) {
626 DPRINTK (KERN_DEBUG "%s: Using compatibility mode\n",
632 DPRINTK (KERN_DEBUG "%s: Using EPP mode\n", port->name);
640 DPRINTK (KERN_DEBUG "%s: Using software-emulated EPP mode\n",
650 DPRINTK (KERN_DEBUG "%s: Using ECP mode\n", port->name);
659 DPRINTK (KERN_DEBUG "%s: Using software-emulated ECP mode\n",
671 DPRINTK (KERN_DEBUG "%s: Unknown mode 0x%02x\n", port->name,
672 port->ieee1284.mode);
689 * specified, using the IEEE 1284 transfer mode most recently
691 * mode supports reverse transfers (peripheral to host).
706 int mode = port->physport->ieee1284.mode;
707 int addr = mode & IEEE1284_ADDR;
711 mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR);
713 /* Use the mode we're in. */
714 switch (mode) {
716 /* if we can tri-state use BYTE mode instead of NIBBLE mode,
717 * if that fails, revert to NIBBLE mode -- ought to store somewhere
718 * the device's ability to do BYTE mode reverse transfers, so we don't
723 /* got into BYTE mode OK */
724 DPRINTK (KERN_DEBUG "%s: Using byte mode\n", port->name);
733 DPRINTK (KERN_DEBUG "%s: Using nibble mode\n", port->name);
738 DPRINTK (KERN_DEBUG "%s: Using byte mode\n", port->name);
743 DPRINTK (KERN_DEBUG "%s: Using EPP mode\n", port->name);
751 DPRINTK (KERN_DEBUG "%s: Using software-emulated EPP mode\n",
761 DPRINTK (KERN_DEBUG "%s: Using ECP mode\n", port->name);
766 DPRINTK (KERN_DEBUG "%s: Using software-emulated ECP mode\n",
772 DPRINTK (KERN_DEBUG "%s: Unknown mode 0x%02x\n", port->name,
773 port->physport->ieee1284.mode);