Lines Matching defs:HostP
79 int RIOFoadRta(struct Host *HostP, struct Map *MapP)
102 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) {
109 int RIOZombieRta(struct Host *HostP, struct Map *MapP)
132 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) {
139 int RIOCommandRta(struct rio_info *p, unsigned long RtaUnique, int (*func) (struct Host * HostP, struct Map * MapP))
150 struct Host *HostP = &p->RIOHosts[Host];
153 struct Map *MapP = &HostP->Mapping[Rta];
170 return (*func) (HostP, MapP);
192 struct Host *HostP = &p->RIOHosts[Host];
195 struct Map *MapP = &HostP->Mapping[Rta];
231 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) {
249 struct Host *HostP;
282 HostP = &p->RIOHosts[Host];
284 if (HostP->UniqueNum == KillUnit.UniqueNum) {
285 if (RIOQueueCmdBlk(HostP, RTAS_PER_HOST + KillUnit.Link, CmdBlkP) == RIO_FAIL) {
293 if (HostP->Mapping[ID].RtaUniqueNum == KillUnit.UniqueNum) {
295 if (RIOQueueCmdBlk(HostP, ID, CmdBlkP) == RIO_FAIL) {
307 int RIOSuspendBootRta(struct Host *HostP, int ID, int Link)
330 if (RIOQueueCmdBlk(HostP, ID - 1, CmdBlkP) == RIO_FAIL) {
370 static int RIOCommandRup(struct rio_info *p, uint Rup, struct Host *HostP, struct PKT __iomem *PacketP)
392 UnixRupP = &HostP->UnixRups[rup];
399 rio_dprintk(RIO_DEBUG_CMD, "CONTROL information: Host number %Zd, name ``%s''\n", HostP - p->RIOHosts, HostP->Name);
403 rio_dprintk(RIO_DEBUG_CMD, "CONTROL information: This is the RUP for RTA ``%s''\n", HostP->Mapping[Rup].Name);
405 rio_dprintk(RIO_DEBUG_CMD, "CONTROL information: This is the RUP for link ``%c'' of host ``%s''\n", ('A' + Rup - MAX_RUP), HostP->Name);
430 rio_dprintk(RIO_DEBUG_CMD, "Command complete on phb %d host %Zd\n", readb(&PktCmdP->PhbNum), HostP - p->RIOHosts);
530 rio_dprintk(RIO_DEBUG_CMD, "Unknown command %d on CMD_RUP of host %Zd\n", readb(&PktCmdP->Command), HostP - p->RIOHosts);
573 int RIOQueueCmdBlk(struct Host *HostP, uint Rup, struct CmdBlk *CmdBlkP)
585 UnixRupP = &HostP->UnixRups[Rup];
600 HostP->Copy(&CmdBlkP->Packet, RIO_PTR(HostP->Caddr, readw(&UnixRupP->RupP->txpkt)), sizeof(struct PKT));
650 void RIOPollHostCommands(struct rio_info *p, struct Host *HostP)
665 UnixRupP = &HostP->UnixRups[--Rup];
675 PacketP = (struct PKT __iomem *) RIO_PTR(HostP->Caddr, readw(&UnixRupP->RupP->rxpkt));
681 FreeMe = RIOBootRup(p, Rup, HostP, PacketP);
692 FreeMe = RIOCommandRup(p, Rup, HostP, PacketP);
702 FreeMe = RIORouteRup(p, Rup, HostP, PacketP);
714 put_free_end(HostP, PacketP);
781 HostP->Copy(&CmdBlkP->Packet, RIO_PTR(HostP->Caddr, readw(&UnixRupP->RupP->txpkt)), sizeof(struct PKT));
830 put_free_end(PortP->HostP, PacketP);
875 writew(1, &PortP->HostP->ParmMapP->tx_intr);
934 ** queue by calling RIOQueueCmdBlk( HostP, Rup, CmdBlkP ) where HostP is