Lines Matching refs:HostMapP
87 struct Map *HostMapP;
326 HostMapP = &HostP->Mapping[MapP->ID - 1];
333 *HostMapP = *MapP;
335 HostMapP->Flags = SLOT_IN_USE;
337 HostMapP->Flags |= RTA16_SECOND_SLOT;
339 RIOReMapPorts(p, HostP, HostMapP);
456 struct Map *HostMapP;
475 HostMapP = &HostP->Mapping[entry];
482 if (HostMapP->Topology[link].Unit != ROUTE_DISCONNECT) {
493 SysPort = HostMapP->SysPort;
527 u16 dest_unit = HostMapP->ID;
552 memset(HostMapP, 0, sizeof(struct Map));
581 struct Map *HostMapP;
655 HostMapP = &p->RIOHosts[host].Mapping[nNewID];
656 HostMapP->RtaUniqueNum = MapP->RtaUniqueNum;
657 HostMapP->HostUniqueNum = MapP->HostUniqueNum;
658 HostMapP->ID = MapP->ID;
660 HostMapP->Topology[link].Unit = ROUTE_DISCONNECT;
661 HostMapP->Topology[link].Link = NO_LINK;
673 HostMapP->Flags |= RTA16_SECOND_SLOT;
674 HostMapP->ID2 = MapP->ID2 = p->RIOHosts[host].Mapping[unit].ID;
680 HostMapP = &p->RIOHosts[host].Mapping[MapP->ID - 1];
682 if (HostMapP->Flags & SLOT_IN_USE) {
692 HostMapP->SysPort = MapP->SysPort;
694 memcpy(HostMapP->Name, MapP->Name, MAX_NAME_LEN);
695 HostMapP->Flags = SLOT_IN_USE | RTA_BOOTED;
700 HostMapP->Flags |= RTA16_SECOND_SLOT;
702 RIOReMapPorts(p, &p->RIOHosts[host], HostMapP);
707 RIOFixPhbs(p, &p->RIOHosts[host], HostMapP->ID - 1);
709 if (HostMapP->SysPort != NO_PORT) {
710 if (HostMapP->SysPort < p->RIOFirstPortsBooted)
711 p->RIOFirstPortsBooted = HostMapP->SysPort;
712 if (HostMapP->SysPort > p->RIOLastPortsBooted)
713 p->RIOLastPortsBooted = HostMapP->SysPort;
728 int RIOReMapPorts(struct rio_info *p, struct Host *HostP, struct Map *HostMapP)
737 rio_dprintk(RIO_DEBUG_TABLE, "Mapping sysport %d to id %d\n", (int) HostMapP->SysPort, HostMapP->ID);
742 HostP->UnixRups[HostMapP->ID - 1].BaseSysPort = HostMapP->SysPort;
744 if (HostMapP->SysPort == NO_PORT)
747 RtaType = GetUnitType(HostMapP->RtaUniqueNum);
748 rio_dprintk(RIO_DEBUG_TABLE, "Mapping sysport %d-%d\n", (int) HostMapP->SysPort, (int) HostMapP->SysPort + PORTS_PER_RTA - 1);
754 rio_dprintk(RIO_DEBUG_TABLE, "subent = %d, HostMapP->SysPort = %d\n", SubEnt, (int) HostMapP->SysPort);
755 SysPort = HostMapP->SysPort + SubEnt; /* portnumber within system */
758 HostPort = (HostMapP->ID - 1) * PORTS_PER_RTA + SubEnt;
793 PortP->RupNum = HostMapP->ID - 1;
794 if (HostMapP->Flags & RTA16_SECOND_SLOT) {
795 PortP->ID2 = HostMapP->ID2 - 1;
801 PortP->RtaUniqueNum = HostMapP->RtaUniqueNum;
810 HostMapP->Flags &= ~RTA_NEWBOOT;
820 PortP->Config |= p->RIOModuleTypes[HostP->UnixRups[HostMapP->ID - 1].ModTypes].Flags[SubEnt % PORTS_PER_MODULE];
823 PortP->Config |= p->RIOModuleTypes[LONYBLE(HostP->UnixRups[HostMapP->ID - 1].ModTypes)].Flags[SubEnt % PORTS_PER_MODULE];
825 PortP->Config |= p->RIOModuleTypes[HINYBLE(HostP->UnixRups[HostMapP->ID - 1].ModTypes)].Flags[SubEnt % PORTS_PER_MODULE];
848 PortP->Name = &HostMapP->Name[0];
877 if (HostMapP->SysPort < p->RIOFirstPortsMapped)
878 p->RIOFirstPortsMapped = HostMapP->SysPort;
879 if (HostMapP->SysPort > p->RIOLastPortsMapped)
880 p->RIOLastPortsMapped = HostMapP->SysPort;
888 struct Map *HostMapP;
922 HostMapP = &p->RIOHosts[host].Mapping[MapP->ID - 1];
924 if (HostMapP->RtaUniqueNum != MapP->RtaUniqueNum) {
928 memcpy(HostMapP->Name, MapP->Name, MAX_NAME_LEN);