Lines Matching defs:entry2
728 int entry, entry2;
808 entry2 = HostP->Mapping[entry].ID2 - 1;
809 HostP->Mapping[entry2].Flags |= RTA_BOOTED | RTA_NEWBOOT;
810 sysport = HostP->Mapping[entry2].SysPort;
818 rio_dprintk(RIO_DEBUG_BOOT, "RTA will be given IDs %d+%d\n", entry + 1, entry2 + 1);
854 entry2 = HostP->Mapping[entry].ID2 - 1;
855 if ((HostP->Mapping[entry2].Flags & SLOT_TENTATIVE) && (HostP->Mapping[entry2].RtaUniqueNum == RtaUniq))
856 rio_dprintk(RIO_DEBUG_BOOT, "Found previous tentative slots (%d+%d)\n", entry, entry2);
926 for (entry2 = rta + 1; entry2 < TOTAL_MAP_ENTRIES; entry2++) {
927 if (p->RIOSavedTable[entry2].RtaUniqueNum == RtaUniq)
930 MapP2 = &p->RIOSavedTable[entry2];
931 rio_dprintk(RIO_DEBUG_BOOT, "This RTA is from table entries %d+%d\n", rta, entry2);
954 if (RIOFindFreeID(p, HostP, &entry, &entry2) == 0) {
956 rio_fill_host_slot(entry, entry2, RtaUniq, HostP);
997 HostP->Mapping[entry2].Flags = SLOT_IN_USE | RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT;
998 HostP->Mapping[entry2].SysPort = MapP2->SysPort;
1002 RIOReMapPorts(p, HostP, &HostP->Mapping[entry2]);
1003 if (HostP->Mapping[entry2].SysPort < p->RIOFirstPortsBooted)
1004 p->RIOFirstPortsBooted = HostP->Mapping[entry2].SysPort;
1005 if (HostP->Mapping[entry2].SysPort > p->RIOLastPortsBooted)
1006 p->RIOLastPortsBooted = HostP->Mapping[entry2].SysPort;
1007 rio_dprintk(RIO_DEBUG_BOOT, "SysPort %d, Name %s\n", (int) HostP->Mapping[entry2].SysPort, HostP->Mapping[entry].Name);
1009 HostP->Mapping[entry2].Flags = SLOT_TENTATIVE | RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT;
1075 void rio_fill_host_slot(int entry, int entry2, unsigned int rta_uniq, struct Host *host)
1079 rio_dprintk(RIO_DEBUG_BOOT, "rio_fill_host_slot(%d, %d, 0x%x...)\n", entry, entry2, rta_uniq);
1087 if (entry2) {
1088 host->Mapping[entry2].Flags = (RTA_BOOTED | RTA_NEWBOOT | SLOT_TENTATIVE | RTA16_SECOND_SLOT);
1089 host->Mapping[entry2].SysPort = NO_PORT;
1090 host->Mapping[entry2].RtaUniqueNum = rta_uniq;
1091 host->Mapping[entry2].HostUniqueNum = host->UniqueNum;
1092 host->Mapping[entry2].Name[0] = '\0';
1093 host->Mapping[entry2].ID = entry2 + 1;
1094 host->Mapping[entry2].ID2 = entry + 1;
1095 host->Mapping[entry].ID2 = entry2 + 1;
1104 if (entry2) {
1105 host->Mapping[entry2].Topology[link].Unit = ROUTE_DISCONNECT;
1106 host->Mapping[entry2].Topology[link].Link = NO_LINK;