Home
last modified time | relevance | path

Searched refs:UnitId (Results 1 – 2 of 2) sorted by relevance

/drivers/char/rio/
Drioroute.c588 static int RIOCheckIsolated(struct rio_info *p, struct Host *HostP, unsigned int UnitId) in RIOCheckIsolated() argument
593 if (RIOCheck(HostP, UnitId)) { in RIOCheckIsolated()
594 rio_dprintk(RIO_DEBUG_ROUTE, "Unit %d is NOT isolated\n", UnitId); in RIOCheckIsolated()
599 RIOIsolate(p, HostP, UnitId); in RIOCheckIsolated()
610 static int RIOIsolate(struct rio_info *p, struct Host *HostP, unsigned int UnitId) in RIOIsolate() argument
614 UnitId--; /* this trick relies on the Unit Id being UNSIGNED! */ in RIOIsolate()
616 if (UnitId >= MAX_RUP) /* dontcha just lurv unsigned maths! */ in RIOIsolate()
619 if (HostP->Mapping[UnitId].Flags & BEEN_HERE) in RIOIsolate()
622 HostP->Mapping[UnitId].Flags |= BEEN_HERE; in RIOIsolate()
625 rio_dprintk(RIO_DEBUG_ROUTE, "RIOMesgIsolated %s", HostP->Mapping[UnitId].Name); in RIOIsolate()
[all …]
Drioinit.c361 int RIODefaultName(struct rio_info *p, struct Host *HostP, unsigned int UnitId) in RIODefaultName() argument
363 memcpy(HostP->Mapping[UnitId].Name, "UNKNOWN RTA X-XX", 17); in RIODefaultName()
364 HostP->Mapping[UnitId].Name[12]='1'+(HostP-p->RIOHosts); in RIODefaultName()
365 if ((UnitId+1) > 9) { in RIODefaultName()
366 HostP->Mapping[UnitId].Name[14]='0'+((UnitId+1)/10); in RIODefaultName()
367 HostP->Mapping[UnitId].Name[15]='0'+((UnitId+1)%10); in RIODefaultName()
370 HostP->Mapping[UnitId].Name[14]='1'+UnitId; in RIODefaultName()
371 HostP->Mapping[UnitId].Name[15]=0; in RIODefaultName()