Lines Matching defs:PortP
144 struct Port *PortP;
154 PortP = NULL;
410 PortP = p->RIOPortp[port];
411 if (!PortP->Mapped) {
416 if (!(PortP->State & (RIO_LOPEN | RIO_MOPEN))) {
421 rio_spin_lock_irqsave(&PortP->portSem, flags);
425 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
429 PortP->State |= RIO_BUSY;
431 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
503 PortP = (p->RIOPortp[port]);
504 if (!PortP->Mapped) {
512 port = PortP->HostP->UnixRups[PortP->RupNum].ModTypes;
521 rio_spin_lock_irqsave(&PortP->portSem, flags);
523 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
596 PortP = (p->RIOPortp[PortParams.Port]);
597 PortParams.Config = PortP->Config;
598 PortParams.State = PortP->State;
619 PortP = (p->RIOPortp[PortTty.port]);
636 PortP = (p->RIOPortp[PortTty.port]);
637 RIOParam(PortP, RIOC_CONFIG, PortP->State & RIO_MODEM,
651 PortP = (p->RIOPortp[PortParams.Port]);
652 rio_spin_lock_irqsave(&PortP->portSem, flags);
653 PortP->Config = PortParams.Config;
654 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
667 PortP = (p->RIOPortp[portStats.port]);
668 portStats.gather = PortP->statsGather;
669 portStats.txchars = PortP->txchars;
670 portStats.rxchars = PortP->rxchars;
671 portStats.opens = PortP->opens;
672 portStats.closes = PortP->closes;
673 portStats.ioctls = PortP->ioctls;
687 PortP = (p->RIOPortp[port]);
688 rio_spin_lock_irqsave(&PortP->portSem, flags);
689 PortP->txchars = 0;
690 PortP->rxchars = 0;
691 PortP->opens = 0;
692 PortP->closes = 0;
693 PortP->ioctls = 0;
694 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
707 PortP = (p->RIOPortp[portStats.port]);
708 rio_spin_lock_irqsave(&PortP->portSem, flags);
709 PortP->statsGather = portStats.gather;
710 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
787 rio_spin_lock_irqsave(&PortP->portSem, flags);
789 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
974 rio_spin_lock_irqsave(&PortP->portSem, flags);
976 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
997 if (copy_to_user(PortReq.PortP, p->RIOPortp[PortReq.SysPort], sizeof(struct Port))) {
1150 rio_spin_lock_irqsave(&PortP->portSem, flags);
1165 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1184 PortP = p->RIOPortp[SendPack.PortNum];
1185 rio_spin_lock_irqsave(&PortP->portSem, flags);
1187 if (!can_add_transmit(&PacketP, PortP)) {
1189 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1198 add_transmit(PortP);
1202 if (PortP->statsGather)
1203 PortP->txchars += (SendPack.Len & 127);
1204 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1244 PortP = p->RIOPortp[port];
1246 rio_spin_lock_irqsave(&PortP->portSem, flags);
1248 if (RIOPreemptiveCmd(p, PortP, RIOC_MEMDUMP) == RIO_FAIL) {
1250 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1253 PortP->State |= RIO_BUSY;
1255 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1310 PortP = p->RIOPortp[port];
1312 rio_spin_lock_irqsave(&PortP->portSem, flags);
1314 if (RIOPreemptiveCmd(p, PortP, RIOC_READ_REGISTER) ==
1317 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1320 PortP->State |= RIO_BUSY;
1322 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
1390 int RIOPreemptiveCmd(struct rio_info *p, struct Port *PortP, u8 Cmd)
1398 if (PortP->State & RIO_DELETED) {
1403 if ((PortP->InUse == (typeof(PortP->InUse))-1) ||
1406 "for command %d on port %d\n", Cmd, PortP->PortNum);
1411 CmdBlkP, PortP->InUse);
1416 if (PortP->SecondBlock)
1417 rup = PortP->ID2;
1419 rup = PortP->RupNum;
1425 CmdBlkP->PostArg = (unsigned long) PortP;
1427 port = PortP->HostPort % (ushort) PORTS_PER_RTA;
1431 if (PortP->SecondBlock)
1474 CmdBlkP->Packet.data[4] = (char) PortP->ModemLines;
1485 if (PortP->WflushFlag == (typeof(PortP->WflushFlag))-1) {
1498 PortP->InUse++;
1500 Ret = RIOQueueCmdBlk(PortP->HostP, rup, CmdBlkP);