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

Lines Matching defs:PortP

340 	struct Port *PortP;
344 PortP = p->RIOPortp[port];
346 rio_spin_lock_irqsave(&PortP->portSem, flags);
347 PortP->Config = 0;
348 PortP->State = 0;
349 PortP->InUse = NOT_INUSE;
350 PortP->PortState = 0;
351 PortP->FlushCmdBodge = 0;
352 PortP->ModemLines = 0;
353 PortP->ModemState = 0;
354 PortP->CookMode = 0;
355 PortP->ParamSem = 0;
356 PortP->Mapped = 0;
357 PortP->WflushFlag = 0;
358 PortP->MagicFlags = 0;
359 PortP->RxDataStart = 0;
360 PortP->TxBufferIn = 0;
361 PortP->TxBufferOut = 0;
362 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
373 struct Port *PortP;
415 PortP = p->RIOPortp[SysPort];
416 rio_spin_lock_irqsave(&PortP->portSem, flags);
426 gs_got_break(&PortP->gs);
446 rio_dprintk(RIO_DEBUG_CMD, "New status is 0x%x was 0x%x\n", readb(&PktCmdP->PortStatus), PortP->PortState);
447 if (PortP->PortState != readb(&PktCmdP->PortStatus)) {
449 PortP->PortState = readb(&PktCmdP->PortStatus);
451 wakeup( &PortP->PortState );
464 if ((PortP->ModemState & RIOC_MSVR1_HOST) ==
466 rio_dprintk(RIO_DEBUG_CMD, "Modem status unchanged 0x%x\n", PortP->ModemState);
471 PortP->ModemState = ReportedModemStatus;
473 rio_dprintk(RIO_DEBUG_CMD, "Modem status change from 0x%x to 0x%x\n", PortP->ModemState, ReportedModemStatus);
474 PortP->ModemState = ReportedModemStatus;
476 if (PortP->Mapped) {
488 if (PortP->gs.port.tty == NULL)
490 if (PortP->gs.port.tty->termios == NULL)
493 if (!(PortP->gs.port.tty->termios->c_cflag & CLOCAL) && ((PortP->State & (RIO_MOPEN | RIO_WOPEN)))) {
499 if (PortP->ModemState & RIOC_MSVR1_CD) {
503 if (!(PortP->State & RIO_CARR_ON)) {
505 PortP->State |= RIO_CARR_ON;
509 if (PortP->State & (PORT_ISOPEN | RIO_WOPEN))
510 wake_up_interruptible(&PortP->gs.port.open_wait);
516 if (PortP->State & RIO_CARR_ON) {
517 if (PortP->State & (PORT_ISOPEN | RIO_WOPEN | RIO_MOPEN))
518 tty_hangup(PortP->gs.port.tty);
519 PortP->State &= ~RIO_CARR_ON;
533 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
810 struct Port *PortP = (struct Port *) iPortP;
813 rio_spin_lock_irqsave(&PortP->portSem, flags);
814 PortP->WflushFlag++;
815 PortP->MagicFlags |= MAGIC_FLUSH;
816 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
822 struct Port *PortP = (struct Port *) iPortP;
826 rio_spin_lock_irqsave(&PortP->portSem, flags);
828 while (can_remove_receive(&PacketP, PortP)) {
829 remove_receive(PortP);
830 put_free_end(PortP->HostP, PacketP);
833 if (readw(&PortP->PhbP->handshake) == PHB_HANDSHAKE_SET) {
839 writew(PHB_HANDSHAKE_SET | PHB_HANDSHAKE_RESET, &PortP->PhbP->handshake);
841 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
847 struct Port *PortP = (struct Port *) iPortP;
850 rio_spin_lock_irqsave(&PortP->portSem, flags);
854 if (PortP->InUse) {
855 if (--PortP->InUse != NOT_INUSE) {
856 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
861 ** While PortP->InUse is set (i.e. a preemptive command has been sent to
868 ** was called to flush the read queue preemptively. PortP->InUse was
872 ** When PortP->InUse becomes NOT_INUSE, we must ensure that any data
875 writew(1, &PortP->HostP->ParmMapP->tx_intr);
877 wakeup( (caddr_t)&(PortP->InUse) );
879 rio_spin_unlock_irqrestore(&PortP->portSem, flags);