Lines Matching refs:Mapping
125 MapP = HostP->Mapping; in RIORouteRup()
145 TopP = HostP->Mapping[Rup].Topology; in RIORouteRup()
147 MyName = HostP->Mapping[Rup].Name; in RIORouteRup()
277 OldLink+'A',HostP->Mapping[ThisUnit-1].Name,ThisLink+'A'); in RIORouteRup()
282 if ( HostP->Mapping[OldUnit-1].Topology[OldLink].Unit == ThisUnit && in RIORouteRup()
283 HostP->Mapping[OldUnit-1].Topology[OldLink].Link == ThisLink ) in RIORouteRup()
286 HostP->Mapping[OldUnit-1].Name,OldLink+'A'); in RIORouteRup()
287 HostP->Mapping[OldUnit-1].Topology[OldLink].Unit=ROUTE_DISCONNECT; in RIORouteRup()
288 HostP->Mapping[OldUnit-1].Topology[OldLink].Link=NO_LINK; in RIORouteRup()
293 HostP->Mapping[OldUnit-1].Name,OldLink+'A', in RIORouteRup()
294 HostP->Mapping[ThisUnit-1].Name,ThisLink+'A'); in RIORouteRup()
307 HostP->Mapping[NewUnit-1].Name,NewLink+'A',MyName,ThisLink+'A'); in RIORouteRup()
308 HostP->Mapping[NewUnit-1].Topology[NewLink].Unit=ThisUnit; in RIORouteRup()
309 HostP->Mapping[NewUnit-1].Topology[NewLink].Link=ThisLink; in RIORouteRup()
402 HostP->Mapping[ThisUnit].Flags & SLOT_IN_USE ? in RIORouteRup()
404 HostP->Mapping[ThisUnit].Flags & SLOT_TENTATIVE ? in RIORouteRup()
406 HostP->Mapping[ThisUnit].RtaUniqueNum); in RIORouteRup()
411 if ( (HostP->Mapping[ThisUnit].Flags & (SLOT_IN_USE | SLOT_TENTATIVE)) && in RIORouteRup()
412 (HostP->Mapping[ThisUnit].RtaUniqueNum == RtaUniq) ) in RIORouteRup()
416 ThisUnit2 = HostP->Mapping[ThisUnit].ID2 - 1; in RIORouteRup()
429 if ( (HostP->Mapping[ThisUnit].Flags & SLOT_IN_USE) && in RIORouteRup()
430 !(HostP->Mapping[ThisUnit].Flags & RTA_BOOTED) ) in RIORouteRup()
432 if ( !(HostP->Mapping[ThisUnit].Flags & MSG_DONE) ) in RIORouteRup()
435 cprintf("RTA '%s' is being updated.\n",HostP->Mapping[ThisUnit].Name); in RIORouteRup()
436 HostP->Mapping[ThisUnit].Flags |= MSG_DONE; in RIORouteRup()
454 if (HostP->Mapping[ThisUnit].Flags & SLOT_IN_USE) in RIORouteRup()
462 HostP->Mapping[ThisUnit].Name, PktReplyP->IDNum, PktReplyP->IDNum2); in RIORouteRup()
468 HostP->Mapping[ThisUnit].Name,PktReplyP->IDNum); in RIORouteRup()
479 if ( (HostP->Mapping[ThisUnit].Flags & RTA_NEWBOOT) && in RIORouteRup()
480 (HostP->Mapping[ThisUnit].SysPort != NO_PORT) ) in RIORouteRup()
489 PortP = p->RIOPortp[port+HostP->Mapping[ThisUnit].SysPort]; in RIORouteRup()
502 PortP = p->RIOPortp[port+HostP->Mapping[ThisUnit2].SysPort]; in RIORouteRup()
526 if ( HostP->Mapping[ThisUnit].SysPort != NO_PORT ) in RIORouteRup()
530 p->RIOPortp[port+HostP->Mapping[ThisUnit].SysPort]->Config &= ~RIO_NOMASK; in RIORouteRup()
531 p->RIOPortp[port+HostP->Mapping[ThisUnit].SysPort]->Config |= in RIORouteRup()
533 p->RIOPortp[port+PORTS_PER_MODULE+HostP->Mapping[ThisUnit].SysPort]->Config &= ~RIO_NOMASK; in RIORouteRup()
534 …p->RIOPortp[port+PORTS_PER_MODULE+HostP->Mapping[ThisUnit].SysPort]->Config |= p->RIOModuleTypes[M… in RIORouteRup()
540 p->RIOPortp[port+HostP->Mapping[ThisUnit2].SysPort]->Config &= ~RIO_NOMASK; in RIORouteRup()
541 …p->RIOPortp[port+HostP->Mapping[ThisUnit2].SysPort]->Config |= p->RIOModuleTypes[Mod1].Flags[port]; in RIORouteRup()
542 p->RIOPortp[port+PORTS_PER_MODULE+HostP->Mapping[ThisUnit2].SysPort]->Config &= ~RIO_NOMASK; in RIORouteRup()
543 …p->RIOPortp[port+PORTS_PER_MODULE+HostP->Mapping[ThisUnit2].SysPort]->Config |= p->RIOModuleTypes[… in RIORouteRup()
629 int PortN = HostP->Mapping[unit].SysPort;
634 ushort dest_unit = HostP->Mapping[unit].ID2;
639 PortP = p->RIOPortp[HostP->Mapping[dest_unit - 1].SysPort];
769 if ( HostP->Mapping[UnitId].Flags & BEEN_HERE )
772 HostP->Mapping[UnitId].Flags |= BEEN_HERE;
775 rio_dprintk (RIO_DEBUG_ROUTE, "RIOMesgIsolated %s", HostP->Mapping[UnitId].Name);
778 unit = HostP->Mapping[UnitId].Topology[link].Unit;
779 HostP->Mapping[UnitId].Topology[link].Unit = ROUTE_DISCONNECT;
780 HostP->Mapping[UnitId].Topology[link].Link = NO_LINK;
783 HostP->Mapping[UnitId].Flags &= ~BEEN_HERE;
814 if ( HostP->Mapping[UnitId].Topology[link].Unit==HOST_ID ) {
821 if ( HostP->Mapping[UnitId].Flags & BEEN_HERE ) {
826 HostP->Mapping[UnitId].Flags |= BEEN_HERE;
830 if ( RIOCheck( HostP, HostP->Mapping[UnitId].Topology[link].Unit ) ) {
832 HostP->Mapping[UnitId].Flags &= ~BEEN_HERE;
837 HostP->Mapping[UnitId].Flags &= ~BEEN_HERE;
950 FromName = FromId ? HostP->Mapping[FromId-1].Name : HostP->Name;
952 ToName = ToId ? HostP->Mapping[ToId-1].Name : HostP->Name;
1012 if (HostP->Mapping[unit].Topology[link].Unit != ROUTE_DISCONNECT) in RIOFreeDisconnected()
1046 if (HostP->Mapping[unit].ID2 != 0) in RIOFreeDisconnected()
1048 int nOther = (HostP->Mapping[unit].ID2) -1; in RIOFreeDisconnected()
1051 bzero((caddr_t)&HostP->Mapping[nOther], sizeof(struct Map)); in RIOFreeDisconnected()
1053 RIORemoveFromSavedTable(p, &HostP->Mapping[unit]); in RIOFreeDisconnected()
1090 if (HostP->Mapping[unit].Flags == 0) in RIOFindFreeID()
1128 if (((HostP->Mapping[unit].Flags & SLOT_TENTATIVE) || in RIOFindFreeID()
1129 (HostP->Mapping[unit].Flags == 0)) && ! in RIOFindFreeID()
1130 (HostP->Mapping[unit].Flags & RTA16_SECOND_SLOT )) in RIOFindFreeID()
1148 if (HostP->Mapping[unit].Flags != 0) in RIOFindFreeID()
1162 bzero(&HostP->Mapping[unit], sizeof(struct Map)); in RIOFindFreeID()
1183 bzero(&HostP->Mapping[unit], sizeof(struct Map)); in RIOFindFreeID()