• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/rio/

Lines Matching defs:entry

461 		 ** The links entry should be 0xFFFF; we set it up
728 int entry, entry2;
758 ** a new table entry for it.
784 ** Check for a SLOT_IN_USE entry for this RTA attached to the
794 for (entry = 0; entry < MAX_RUP; entry++) {
797 if ((HostP->Mapping[entry].Flags & SLOT_IN_USE) && (HostP->Mapping[entry].RtaUniqueNum == RtaUniq)) {
798 HostP->Mapping[entry].Flags |= RTA_BOOTED | RTA_NEWBOOT;
799 if ((sysport = HostP->Mapping[entry].SysPort) != NO_PORT) {
808 entry2 = HostP->Mapping[entry].ID2 - 1;
818 rio_dprintk(RIO_DEBUG_BOOT, "RTA will be given IDs %d+%d\n", entry + 1, entry2 + 1);
820 rio_dprintk(RIO_DEBUG_BOOT, "RTA will be given ID %d\n", entry + 1);
843 ** There is no SLOT_IN_USE entry for this RTA attached to the current
846 ** Check for a SLOT_TENTATIVE entry for this RTA attached to the
851 for (entry = 0; entry < MAX_RUP; entry++) {
852 if ((HostP->Mapping[entry].Flags & SLOT_TENTATIVE) && (HostP->Mapping[entry].RtaUniqueNum == RtaUniq)) {
854 entry2 = HostP->Mapping[entry].ID2 - 1;
856 rio_dprintk(RIO_DEBUG_BOOT, "Found previous tentative slots (%d+%d)\n", entry, entry2);
860 rio_dprintk(RIO_DEBUG_BOOT, "Found previous tentative slot (%d)\n", entry);
868 ** There is no SLOT_IN_USE or SLOT_TENTATIVE entry for this RTA
871 ** Check if there is a SLOT_IN_USE or SLOT_TENTATIVE entry on another
874 ** For a SLOT_IN_USE entry on another host, we need to delete the RTA
875 ** entry from the other host and add it to this host (using some of
877 ** For a SLOT_TENTATIVE entry on another host, we must cope with the
880 ** + Plug 8 port RTA into host A. (This creates SLOT_TENTATIVE entry
909 ** There is no SLOT_IN_USE or SLOT_TENTATIVE entry for this RTA
912 ** If we have not found a SLOT_IN_USE or SLOT_TENTATIVE entry on
915 ** Check for a SLOT_IN_USE entry for this RTA in the config table.
920 rio_dprintk(RIO_DEBUG_BOOT, "Check table entry %d (%x)", rta, p->RIOSavedTable[rta].RtaUniqueNum);
933 rio_dprintk(RIO_DEBUG_BOOT, "This RTA is from table entry %d\n", rta);
940 ** There is no SLOT_IN_USE or SLOT_TENTATIVE entry for this RTA
943 ** We may have found a SLOT_IN_USE entry on another host for this
944 ** RTA in the config table, or a SLOT_IN_USE or SLOT_TENTATIVE entry
950 ** tentative entry in the table.
954 if (RIOFindFreeID(p, HostP, &entry, &entry2) == 0) {
955 RIODefaultName(p, HostP, entry);
956 rio_fill_host_slot(entry, entry2, RtaUniq, HostP);
960 if (RIOFindFreeID(p, HostP, &entry, NULL) == 0) {
961 RIODefaultName(p, HostP, entry);
962 rio_fill_host_slot(entry, 0, RtaUniq, HostP);
968 ** There is no SLOT_IN_USE or SLOT_TENTATIVE entry for this RTA
971 ** If we found a SLOT_IN_USE entry on another host for this
975 ** If we found a SLOT_TENTATIVE entry on another host for this
976 ** RTA in the driver table, just delete the other host entry.
981 rio_dprintk(RIO_DEBUG_BOOT, "This RTA configured on another host - move entry to current host (1)\n");
982 HostP->Mapping[entry].SysPort = MapP->SysPort;
983 memcpy(HostP->Mapping[entry].Name, MapP->Name, MAX_NAME_LEN);
984 HostP->Mapping[entry].Flags = SLOT_IN_USE | RTA_BOOTED | RTA_NEWBOOT;
985 RIOReMapPorts(p, HostP, &HostP->Mapping[entry]);
986 if (HostP->Mapping[entry].SysPort < p->RIOFirstPortsBooted)
987 p->RIOFirstPortsBooted = HostP->Mapping[entry].SysPort;
988 if (HostP->Mapping[entry].SysPort > p->RIOLastPortsBooted)
989 p->RIOLastPortsBooted = HostP->Mapping[entry].SysPort;
992 rio_dprintk(RIO_DEBUG_BOOT, "This RTA has a tentative entry on another host - delete that entry (1)\n");
993 HostP->Mapping[entry].Flags = SLOT_TENTATIVE | RTA_BOOTED | RTA_NEWBOOT;
1007 rio_dprintk(RIO_DEBUG_BOOT, "SysPort %d, Name %s\n", (int) HostP->Mapping[entry2].SysPort, HostP->Mapping[entry].Name);
1022 ** There is no room in the driver table to make an entry for the
1028 for (entry = 0; entry < HostP->NumExtraBooted; entry++) {
1029 if (HostP->ExtraUnits[entry] == RtaUniq) {
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);
1081 host->Mapping[entry].Flags = (RTA_BOOTED | RTA_NEWBOOT | SLOT_TENTATIVE);
1082 host->Mapping[entry].SysPort = NO_PORT;
1083 host->Mapping[entry].RtaUniqueNum = rta_uniq;
1084 host->Mapping[entry].HostUniqueNum = host->UniqueNum;
1085 host->Mapping[entry].ID = entry + 1;
1086 host->Mapping[entry].ID2 = 0;
1094 host->Mapping[entry2].ID2 = entry + 1;
1095 host->Mapping[entry].ID2 = entry2 + 1;
1102 host->Mapping[entry].Topology[link].Unit = ROUTE_DISCONNECT;
1103 host->Mapping[entry].Topology[link].Link = NO_LINK;