Lines Matching refs:UnixRupP

411 	struct UnixRup *UnixRupP;  local
435 UnixRupP = &HostP->UnixRups[rup];
436 SysPort = UnixRupP->BaseSysPort +
442 CheckUnixRupP( UnixRupP );
444 if ( UnixRupP->BaseSysPort == NO_PORT ) {
656 struct UnixRup *UnixRupP; local
670 UnixRupP = &HostP->UnixRups[Rup];
672 rio_spin_lock_irqsave(&UnixRupP->RupLock, flags);
678 if ( (UnixRupP->CmdsWaitingP == NULL) && (UnixRupP->CmdPendingP == NULL) &&
679 (RWORD(UnixRupP->RupP->txcontrol) == TX_RUP_INACTIVE ) &&
690 RIO_PTR(HostP->Caddr, UnixRupP->RupP->txpkt ), sizeof(PKT) );
695 UnixRupP->CmdPendingP = CmdBlkP;
700 WWORD(UnixRupP->RupP->txcontrol , TX_PACKET_READY);
702 rio_spin_unlock_irqrestore(&UnixRupP->RupLock, flags);
708 if ( UnixRupP->CmdsWaitingP != NULL)
710 if ( UnixRupP->CmdPendingP != NULL )
712 if ( RWORD(UnixRupP->RupP->txcontrol) != TX_RUP_INACTIVE )
715 Base = &UnixRupP->CmdsWaitingP;
732 rio_spin_unlock_irqrestore(&UnixRupP->RupLock, flags);
747 register struct UnixRup *UnixRupP; local
759 UnixRupP = &HostP->UnixRups[--Rup];
761 spin_lock_irqsave(&UnixRupP->RupLock, flags);
766 if ( RWORD(UnixRupP->RupP->rxcontrol) != RX_RUP_INACTIVE ) {
769 PacketP =(PKT *)RIO_PTR(HostP->Caddr,RWORD(UnixRupP->RupP->rxpkt));
778 rio_spin_unlock_irqrestore(&UnixRupP->RupLock, flags);
780 rio_spin_lock_irqsave(&UnixRupP->RupLock, flags);
789 rio_spin_unlock_irqrestore(&UnixRupP->RupLock, flags);
797 rio_spin_lock_irqsave(&UnixRupP->RupLock, flags);
801 rio_spin_unlock_irqrestore( &UnixRupP->RupLock, flags);
803 rio_spin_lock_irqsave( &UnixRupP->RupLock, flags );
816 WWORD(UnixRupP->RupP->rxcontrol , RX_RUP_INACTIVE);
818 if ( RWORD(UnixRupP->RupP->handshake)==PHB_HANDSHAKE_SET ) {
820 WWORD(UnixRupP->RupP->handshake,
830 if ( (CmdBlkP = UnixRupP->CmdPendingP) && /* ASSIGN! */
831 (RWORD(UnixRupP->RupP->txcontrol) == TX_RUP_INACTIVE)) {
850 rio_spin_unlock_irqrestore(&UnixRupP->RupLock, flags);
852 rio_spin_lock_irqsave(&UnixRupP->RupLock, flags);
858 UnixRupP->CmdPendingP = NULL;
870 if ( (CmdBlkP = UnixRupP->CmdsWaitingP) && /* ASSIGN! */
871 (UnixRupP->CmdPendingP == NULL) &&
872 (RWORD(UnixRupP->RupP->txcontrol) == TX_RUP_INACTIVE)) {
892 CheckPacketP ((PKT *)RIO_PTR(HostP->Caddr, UnixRupP->RupP->txpkt));
895 RIO_PTR(HostP->Caddr, UnixRupP->RupP->txpkt), sizeof(PKT));
900 UnixRupP->CmdsWaitingP = CmdBlkP->NextP;
905 UnixRupP->CmdPendingP = CmdBlkP;
910 WWORD(UnixRupP->RupP->txcontrol,TX_PACKET_READY);
918 spin_unlock_irqrestore(&UnixRupP->RupLock, flags);