• Home
  • Raw
  • Download

Lines Matching refs:mode

220 	switch (port->ieee1284.mode) {  in parport_ieee1284_terminate()
295 port->ieee1284.mode = IEEE1284_MODE_COMPAT; in parport_ieee1284_terminate()
317 int parport_negotiate (struct parport *port, int mode) in parport_negotiate() argument
320 if (mode == IEEE1284_MODE_COMPAT) in parport_negotiate()
325 int m = mode & ~IEEE1284_ADDR; in parport_negotiate()
332 if (port->ieee1284.mode == mode) in parport_negotiate()
336 if ((port->ieee1284.mode & ~IEEE1284_ADDR) == (mode & ~IEEE1284_ADDR)){ in parport_negotiate()
337 port->ieee1284.mode = mode; in parport_negotiate()
342 if (port->ieee1284.mode != IEEE1284_MODE_COMPAT) in parport_negotiate()
345 if (mode == IEEE1284_MODE_COMPAT) in parport_negotiate()
349 switch (mode) { in parport_negotiate()
361 if (mode & IEEE1284_EXT_LINK) in parport_negotiate()
423 port->name, mode, port->ops->read_status (port)); in parport_negotiate()
431 if (mode && !xflag) { in parport_negotiate()
434 port->name, mode); in parport_negotiate()
440 if (mode & IEEE1284_EXT_LINK) { in parport_negotiate()
441 m = mode & 0x7f; in parport_negotiate()
471 port->name, mode, in parport_negotiate()
484 port->name, mode); in parport_negotiate()
493 pr_debug("%s: In mode 0x%02x\n", port->name, mode); in parport_negotiate()
494 port->ieee1284.mode = mode; in parport_negotiate()
497 if (!(mode & IEEE1284_EXT_LINK) && (m & IEEE1284_MODE_ECP)) { in parport_negotiate()
515 } else switch (mode) { in parport_negotiate()
589 int mode = port->ieee1284.mode; in parport_write()
590 int addr = mode & IEEE1284_ADDR; in parport_write()
594 mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR); in parport_write()
597 switch (mode) { in parport_write()
646 port->name, port->ieee1284.mode); in parport_write()
680 int mode = port->physport->ieee1284.mode; in parport_read()
681 int addr = mode & IEEE1284_ADDR; in parport_read()
685 mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR); in parport_read()
688 switch (mode) { in parport_read()
745 port->name, port->physport->ieee1284.mode); in parport_read()