Searched refs:UnitId (Results 1 - 2 of 2) sorted by relevance
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/rio/ |
H A D | rioroute.c | 592 static int RIOCheckIsolated(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 597 if (RIOCheck(HostP, UnitId)) { 598 rio_dprintk(RIO_DEBUG_ROUTE, "Unit %d is NOT isolated\n", UnitId); 603 RIOIsolate(p, HostP, UnitId); 614 static int RIOIsolate(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 618 UnitId--; /* this trick relies on the Unit Id being UNSIGNED! */ 620 if (UnitId >= MAX_RUP) /* dontcha just lurv unsigned maths! */ 623 if (HostP->Mapping[UnitId].Flags & BEEN_HERE) 626 HostP->Mapping[UnitId].Flags |= BEEN_HERE; 629 rio_dprintk(RIO_DEBUG_ROUTE, "RIOMesgIsolated %s", HostP->Mapping[UnitId] 641 RIOCheck(struct Host *HostP, unsigned int UnitId) argument [all...] |
H A D | rioinit.c | 365 int RIODefaultName(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 367 memcpy(HostP->Mapping[UnitId].Name, "UNKNOWN RTA X-XX", 17); 368 HostP->Mapping[UnitId].Name[12]='1'+(HostP-p->RIOHosts); 369 if ((UnitId+1) > 9) { 370 HostP->Mapping[UnitId].Name[14]='0'+((UnitId+1)/10); 371 HostP->Mapping[UnitId].Name[15]='0'+((UnitId+1)%10); 374 HostP->Mapping[UnitId].Name[14]='1'+UnitId; [all...] |
Completed in 101 milliseconds