Home
last modified time | relevance | path

Searched refs:HostP (Results 1 – 13 of 13) sorted by relevance

/drivers/char/rio/
Drioboot.c73 static int RIOBootComplete(struct rio_info *p, struct Host *HostP, unsigned int Rup, struct PktCmd …
172 void rio_start_card_running(struct Host *HostP) in rio_start_card_running() argument
174 switch (HostP->Type) { in rio_start_card_running()
177 …writeb(BOOT_FROM_RAM | EXTERNAL_BUS_ON | HostP->Mode | RIOAtVec2Ctrl[HostP->Ivec & 0xF], &HostP->C… in rio_start_card_running()
186 writeb(PCITpBootFromRam | PCITpBusEnable | HostP->Mode, &HostP->Control); in rio_start_card_running()
189 rio_dprintk(RIO_DEBUG_BOOT, "Unknown host type %d\n", HostP->Type); in rio_start_card_running()
205 struct Host *HostP; in RIOBootCodeHOST() local
219 HostP = NULL; /* Assure the compiler we've initialized it */ in RIOBootCodeHOST()
225 HostP = &p->RIOHosts[host]; in RIOBootCodeHOST()
227 …_DEBUG_BOOT, "Host Type = 0x%x, Mode = 0x%x, IVec = 0x%x\n", HostP->Type, HostP->Mode, HostP->Ivec… in RIOBootCodeHOST()
[all …]
Drioroute.c85 int RIORouteRup(struct rio_info *p, unsigned int Rup, struct Host *HostP, struct PKT __iomem * Pack… in RIORouteRup() argument
108 MapP = HostP->Mapping; in RIORouteRup()
119 TopP = HostP->Topology; in RIORouteRup()
121 MyName = HostP->Name; in RIORouteRup()
125 TopP = HostP->Mapping[Rup].Topology; in RIORouteRup()
127 MyName = HostP->Mapping[Rup].Name; in RIORouteRup()
200 RIOConCon(p, HostP, ThisUnit, ThisLink, OldUnit, OldLink, DISCONNECT); in RIORouteRup()
204 RIOConCon(p, HostP, ThisUnit, ThisLink, NewUnit, NewLink, CONNECT); in RIORouteRup()
220 if (HostP->Topology[OldLink].Unit == ThisUnit && HostP->Topology[OldLink].Link == ThisLink) { in RIORouteRup()
222 HostP->Topology[OldLink].Unit = ROUTE_DISCONNECT; in RIORouteRup()
[all …]
Driocmd.c78 int RIOFoadRta(struct Host *HostP, struct Map *MapP) in RIOFoadRta() argument
101 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) { in RIOFoadRta()
108 int RIOZombieRta(struct Host *HostP, struct Map *MapP) in RIOZombieRta() argument
131 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) { in RIOZombieRta()
138 int RIOCommandRta(struct rio_info *p, unsigned long RtaUnique, int (*func) (struct Host * HostP, st… in RIOCommandRta() argument
149 struct Host *HostP = &p->RIOHosts[Host]; in RIOCommandRta() local
152 struct Map *MapP = &HostP->Mapping[Rta]; in RIOCommandRta()
169 return (*func) (HostP, MapP); in RIOCommandRta()
191 struct Host *HostP = &p->RIOHosts[Host]; in RIOIdentifyRta() local
194 struct Map *MapP = &HostP->Mapping[Rta]; in RIOIdentifyRta()
[all …]
Driointr.c142 rio_memcpy_toio(PortP->HostP->Caddr, PacketP->data, PortP->gs.xmit_buf + PortP->gs.xmit_tail, c); in RIOTxEnable()
174 void RIOServiceHost(struct rio_info *p, struct Host *HostP) in RIOServiceHost() argument
176 rio_spin_lock(&HostP->HostLock); in RIOServiceHost()
177 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { in RIOServiceHost()
179 rio_spin_unlock(&HostP->HostLock); in RIOServiceHost()
181 rio_dprintk(RIO_DEBUG_INTR, "Interrupt but host not running. flags=%x.\n", (int) HostP->Flags); in RIOServiceHost()
184 rio_spin_unlock(&HostP->HostLock); in RIOServiceHost()
186 if (readw(&HostP->ParmMapP->rup_intr)) { in RIOServiceHost()
187 writew(0, &HostP->ParmMapP->rup_intr); in RIOServiceHost()
190 rio_dprintk(RIO_DEBUG_INTR, "rio: RUP interrupt on host %Zd\n", HostP - p->RIOHosts); in RIOServiceHost()
[all …]
Driotable.c88 struct Host *HostP; in RIONewTable() local
167 HostP = &p->RIOHosts[Host]; in RIONewTable()
310 HostP = &p->RIOHosts[MapP->Topology[0].Unit]; in RIONewTable()
317 memcpy(HostP->Name, MapP->Name, MAX_NAME_LEN); in RIONewTable()
326 HostMapP = &HostP->Mapping[MapP->ID - 1]; in RIONewTable()
339 RIOReMapPorts(p, HostP, HostMapP); in RIONewTable()
410 struct Host *HostP; in RIOApel() local
419 HostP = &p->RIOHosts[Host]; in RIOApel()
420 rio_spin_lock_irqsave(&HostP->HostLock, flags); in RIOApel()
423 MapP->HostUniqueNum = HostP->UniqueNum; in RIOApel()
[all …]
Drioparam.c606 void put_free_end(struct Host *HostP, struct PKT __iomem *PktP) in put_free_end() argument
612 rio_spin_lock_irqsave(&HostP->HostLock, flags); in put_free_end()
621 if ((old_end = readw(&HostP->ParmMapP->free_list_end)) != TPNULL) { in put_free_end()
622 new_end = RIO_OFF(HostP->Caddr, PktP); in put_free_end()
623 tmp_pointer = (struct rio_free_list __iomem *) RIO_PTR(HostP->Caddr, old_end); in put_free_end()
627 writew(new_end, &HostP->ParmMapP->free_list_end); in put_free_end()
630 writew(RIO_OFF(HostP->Caddr, PktP), &HostP->ParmMapP->free_list_end); in put_free_end()
635 rio_dprintk(RIO_DEBUG_CMD, "Before unlock: %p\n", &HostP->HostLock); in put_free_end()
636 rio_spin_unlock_irqrestore(&HostP->HostLock, flags); in put_free_end()
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()
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()
Drio_linux.c345 static void rio_reset_interrupt(struct Host *HostP) in rio_reset_interrupt() argument
349 switch (HostP->Type) { in rio_reset_interrupt()
353 writeb(0xFF, &HostP->ResetInt); in rio_reset_interrupt()
362 struct Host *HostP; in rio_interrupt() local
365 HostP = ptr; /* &p->RIOHosts[(long)ptr]; */ in rio_interrupt()
366 rio_dprintk(RIO_DEBUG_IFLOW, "rio: enter rio_interrupt (%d/%d)\n", irq, HostP->Ivec); in rio_interrupt()
386 if (HostP->Ivec == irq) { in rio_interrupt()
388 rio_reset_interrupt(HostP); in rio_interrupt()
391 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) in rio_interrupt()
394 if (test_and_set_bit(RIO_BOARD_INTR_LOCK, &HostP->locks)) { in rio_interrupt()
[all …]
Drioctrl.c140 struct Host *HostP; in riocontrol() local
511 port = PortP->HostP->UnixRups[PortP->RupNum].ModTypes; in riocontrol()
927 if (copy_to_user(HostReq.HostP, &p->RIOHosts[HostReq.HostNum], sizeof(struct Host))) { in riocontrol()
1024 HostP = &p->RIOHosts[RupReq.HostNum]; in riocontrol()
1026 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { in riocontrol()
1033 if (copy_from_io(RupReq.RupP, HostP->UnixRups[RupReq.RupNum].RupP, sizeof(struct RUP))) { in riocontrol()
1061 HostP = &p->RIOHosts[LpbReq.Host]; in riocontrol()
1063 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { in riocontrol()
1070 if (copy_from_io(LpbReq.LpbP, &HostP->LinkStrP[LpbReq.Link], sizeof(struct LPB))) { in riocontrol()
1500 Ret = RIOQueueCmdBlk(PortP->HostP, rup, CmdBlkP); in RIOPreemptiveCmd()
Dport.h42 struct Host *HostP; member
Driotty.c157 if ((PortP->HostP->Flags & RUN_STATE) != RC_RUNNING) { in riotopen()
173 while (!(PortP->HostP->Mapping[PortP->RupNum].Flags & RTA_BOOTED)) { in riotopen()
Dfunc.h141 extern void rio_start_card_running(struct Host *HostP);
Ddaemon.h102 struct Host __user *HostP; member