Searched refs:UnitId (Results 1 - 2 of 2) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/rio/ |
H A D | rioroute.c | 587 static int RIOCheckIsolated(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 592 if (RIOCheck(HostP, UnitId)) { 593 rio_dprintk(RIO_DEBUG_ROUTE, "Unit %d is NOT isolated\n", UnitId); 598 RIOIsolate(p, HostP, UnitId); 609 static int RIOIsolate(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 613 UnitId--; /* this trick relies on the Unit Id being UNSIGNED! */ 615 if (UnitId >= MAX_RUP) /* dontcha just lurv unsigned maths! */ 618 if (HostP->Mapping[UnitId].Flags & BEEN_HERE) 621 HostP->Mapping[UnitId].Flags |= BEEN_HERE; 624 rio_dprintk(RIO_DEBUG_ROUTE, "RIOMesgIsolated %s", HostP->Mapping[UnitId] 636 RIOCheck(struct Host *HostP, unsigned int UnitId) argument [all...] |
H A D | rioinit.c | 360 int RIODefaultName(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 362 memcpy(HostP->Mapping[UnitId].Name, "UNKNOWN RTA X-XX", 17); 363 HostP->Mapping[UnitId].Name[12]='1'+(HostP-p->RIOHosts); 364 if ((UnitId+1) > 9) { 365 HostP->Mapping[UnitId].Name[14]='0'+((UnitId+1)/10); 366 HostP->Mapping[UnitId].Name[15]='0'+((UnitId+1)%10); 369 HostP->Mapping[UnitId].Name[14]='1'+UnitId; [all...] |
Completed in 152 milliseconds