• 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 refs:ID

154 			if (MapP->ID || MapP->SysPort || MapP->Flags) {
181 /* MapP->ID = 0; */
190 if (!MapP->ID) {
191 rio_dprintk(RIO_DEBUG_TABLE, "RIO: RTA %s has been allocated an ID of zero!\n", MapP->Name);
196 if (MapP->ID > MAX_RUP) {
197 rio_dprintk(RIO_DEBUG_TABLE, "RIO: RTA %s has been allocated an invalid ID %d\n", MapP->Name, MapP->ID);
203 if (MapP->HostUniqueNum == p->RIOConnectTable[SubEnt].HostUniqueNum && MapP->ID == p->RIOConnectTable[SubEnt].ID) {
204 rio_dprintk(RIO_DEBUG_TABLE, "Dupl. ID number allocated to RTA %s and RTA %s\n", MapP->Name, p->RIOConnectTable[SubEnt].Name);
215 && (MapP->ID2 != p->RIOConnectTable[SubEnt].ID)) {
265 if (MapP->ID) {
266 rio_dprintk(RIO_DEBUG_TABLE, "RIO:HOST %s has been allocated ID that isn't zero!\n", MapP->Name);
315 if (MapP->ID == 0) {
324 ** ID one.
326 HostMapP = &HostP->Mapping[MapP->ID - 1];
423 MapP->ID = 0;
527 u16 dest_unit = HostMapP->ID;
586 rio_dprintk(RIO_DEBUG_TABLE, "Assign entry on host %x, rta %x, ID %d, Sysport %d\n", MapP->HostUniqueNum, MapP->RtaUniqueNum, MapP->ID, (int) MapP->SysPort);
588 if ((MapP->ID != (u16) - 1) && ((int) MapP->ID < (int) 1 || (int) MapP->ID > MAX_RUP)) {
589 rio_dprintk(RIO_DEBUG_TABLE, "Bad ID in map entry!\n");
631 ** Now we have a host we need to allocate an ID
634 if (MapP->ID == (u16) - 1) {
637 rio_dprintk(RIO_DEBUG_TABLE, "Attempting to get a new ID for rta \"%s\"\n", MapP->Name);
644 ** - Find a free ID and allocate it to the RTA.
653 MapP->ID = (u16) nNewID + 1;
654 rio_dprintk(RIO_DEBUG_TABLE, "Allocated ID %d for this new RTA.\n", MapP->ID);
658 HostMapP->ID = MapP->ID;
674 HostMapP->ID2 = MapP->ID2 = p->RIOHosts[host].Mapping[unit].ID;
675 p->RIOHosts[host].Mapping[unit].ID2 = MapP->ID;
676 rio_dprintk(RIO_DEBUG_TABLE, "Cross referenced id %d to ID %d.\n", MapP->ID, p->RIOHosts[host].Mapping[unit].ID);
680 HostMapP = &p->RIOHosts[host].Mapping[MapP->ID - 1];
683 rio_dprintk(RIO_DEBUG_TABLE, "Map table slot for ID %d is already in use.\n", MapP->ID);
697 RIO_SV_BROADCAST(p->RIOHosts[host].svFlags[MapP->ID - 1]);
707 RIOFixPhbs(p, &p->RIOHosts[host], HostMapP->ID - 1);
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;
758 HostPort = (HostMapP->ID - 1) * PORTS_PER_RTA + SubEnt;
791 ** For each part of a 16 port RTA, RupNum is ID - 1.
793 PortP->RupNum = HostMapP->ID - 1;
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];
891 rio_dprintk(RIO_DEBUG_TABLE, "Change name entry on host %x, rta %x, ID %d, Sysport %d\n", MapP->HostUniqueNum, MapP->RtaUniqueNum, MapP->ID, (int) MapP->SysPort);
893 if (MapP->ID > MAX_RUP) {
894 rio_dprintk(RIO_DEBUG_TABLE, "Bad ID in map entry!\n");
917 if (MapP->ID == 0) {
922 HostMapP = &p->RIOHosts[host].Mapping[MapP->ID - 1];