/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/rio/ |
H A D | rioboot.c | 73 static int RIOBootComplete(struct rio_info *p, struct Host *HostP, unsigned int Rup, struct PktCmd __iomem *PktCmdP); 166 * @HostP: The RIO to kick off 172 void rio_start_card_running(struct Host *HostP) argument 174 switch (HostP->Type) { 177 writeb(BOOT_FROM_RAM | EXTERNAL_BUS_ON | HostP->Mode | RIOAtVec2Ctrl[HostP->Ivec & 0xF], &HostP->Control); 186 writeb(PCITpBootFromRam | PCITpBusEnable | HostP->Mode, &HostP->Control); 189 rio_dprintk(RIO_DEBUG_BOOT, "Unknown host type %d\n", HostP 205 struct Host *HostP; local 599 RIOBootRup(struct rio_info *p, unsigned int Rup, struct Host *HostP, struct PKT __iomem *PacketP) argument 720 RIOBootComplete(struct rio_info *p, struct Host *HostP, unsigned int Rup, struct PktCmd __iomem *PktCmdP) argument 1054 RIOBootOk(struct rio_info *p, struct Host *HostP, unsigned long RtaUniq) argument [all...] |
H A D | rioroute.c | 84 int RIORouteRup(struct rio_info *p, unsigned int Rup, struct Host *HostP, struct PKT __iomem * PacketP) argument 107 MapP = HostP->Mapping; 118 TopP = HostP->Topology; 120 MyName = HostP->Name; 124 TopP = HostP->Mapping[Rup].Topology; 126 MyName = HostP->Mapping[Rup].Name; 199 RIOConCon(p, HostP, ThisUnit, ThisLink, OldUnit, OldLink, DISCONNECT); 203 RIOConCon(p, HostP, ThisUnit, ThisLink, NewUnit, NewLink, CONNECT); 219 if (HostP->Topology[OldLink].Unit == ThisUnit && HostP 494 RIOFixPhbs(struct rio_info *p, struct Host *HostP, unsigned int unit) argument 587 RIOCheckIsolated(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 609 RIOIsolate(struct rio_info *p, struct Host *HostP, unsigned int UnitId) argument 636 RIOCheck(struct Host *HostP, unsigned int UnitId) argument 725 RIOConCon(struct rio_info *p, struct Host *HostP, unsigned int FromId, unsigned int FromLink, unsigned int ToId, unsigned int ToLink, int Change) argument 824 RIOFreeDisconnected(struct rio_info *p, struct Host *HostP, int unit) argument 886 RIOFindFreeID(struct rio_info *p, struct Host *HostP, unsigned int * pID1, unsigned int * pID2) argument [all...] |
H A D | riointr.c | 141 rio_memcpy_toio(PortP->HostP->Caddr, PacketP->data, PortP->gs.xmit_buf + PortP->gs.xmit_tail, c); 173 void RIOServiceHost(struct rio_info *p, struct Host *HostP) argument 175 rio_spin_lock(&HostP->HostLock); 176 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { 178 rio_spin_unlock(&HostP->HostLock); 180 rio_dprintk(RIO_DEBUG_INTR, "Interrupt but host not running. flags=%x.\n", (int) HostP->Flags); 183 rio_spin_unlock(&HostP->HostLock); 185 if (readw(&HostP->ParmMapP->rup_intr)) { 186 writew(0, &HostP->ParmMapP->rup_intr); 189 rio_dprintk(RIO_DEBUG_INTR, "rio: RUP interrupt on host %Zd\n", HostP [all...] |
H A D | riotable.c | 88 struct Host *HostP; local 167 HostP = &p->RIOHosts[Host]; 310 HostP = &p->RIOHosts[MapP->Topology[0].Unit]; 317 memcpy(HostP->Name, MapP->Name, MAX_NAME_LEN); 326 HostMapP = &HostP->Mapping[MapP->ID - 1]; 339 RIOReMapPorts(p, HostP, HostMapP); 404 struct Host *HostP; local 413 HostP = &p->RIOHosts[Host]; 414 rio_spin_lock_irqsave(&HostP->HostLock, flags); 417 MapP->HostUniqueNum = HostP 455 struct Host *HostP; local 728 RIOReMapPorts(struct rio_info *p, struct Host *HostP, struct Map *HostMapP) argument [all...] |
H A D | riocmd.c | 79 int RIOFoadRta(struct Host *HostP, struct Map *MapP) argument 102 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) { 109 int RIOZombieRta(struct Host *HostP, struct Map *MapP) argument 132 if (RIOQueueCmdBlk(HostP, MapP->ID - 1, CmdBlkP) == RIO_FAIL) { 139 int RIOCommandRta(struct rio_info *p, unsigned long RtaUnique, int (*func) (struct Host * HostP, struct Map * MapP)) argument 150 struct Host *HostP = &p->RIOHosts[Host]; local 153 struct Map *MapP = &HostP->Mapping[Rta]; 170 return (*func) (HostP, MapP); 192 struct Host *HostP = &p->RIOHosts[Host]; local 195 struct Map *MapP = &HostP 249 struct Host *HostP; local 307 RIOSuspendBootRta(struct Host *HostP, int ID, int Link) argument 370 RIOCommandRup(struct rio_info *p, uint Rup, struct Host *HostP, struct PKT __iomem *PacketP) argument 573 RIOQueueCmdBlk(struct Host *HostP, uint Rup, struct CmdBlk *CmdBlkP) argument 650 RIOPollHostCommands(struct rio_info *p, struct Host *HostP) argument [all...] |
H A D | rioparam.c | 605 void put_free_end(struct Host *HostP, struct PKT __iomem *PktP) argument 611 rio_spin_lock_irqsave(&HostP->HostLock, flags); 620 if ((old_end = readw(&HostP->ParmMapP->free_list_end)) != TPNULL) { 621 new_end = RIO_OFF(HostP->Caddr, PktP); 622 tmp_pointer = (struct rio_free_list __iomem *) RIO_PTR(HostP->Caddr, old_end); 626 writew(new_end, &HostP->ParmMapP->free_list_end); 629 writew(RIO_OFF(HostP->Caddr, PktP), &HostP->ParmMapP->free_list_end); 634 rio_dprintk(RIO_DEBUG_CMD, "Before unlock: %p\n", &HostP->HostLock); 635 rio_spin_unlock_irqrestore(&HostP [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); 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; 370 HostP->Mapping[UnitId].Name[15]=0;
|
H A D | rio_linux.c | 345 static void rio_reset_interrupt(struct Host *HostP) argument 349 switch (HostP->Type) { 353 writeb(0xFF, &HostP->ResetInt); 362 struct Host *HostP; local 365 HostP = ptr; /* &p->RIOHosts[(long)ptr]; */ 366 rio_dprintk(RIO_DEBUG_IFLOW, "rio: enter rio_interrupt (%d/%d)\n", irq, HostP->Ivec); 386 if (HostP->Ivec == irq) { 388 rio_reset_interrupt(HostP); 391 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) 394 if (test_and_set_bit(RIO_BOARD_INTR_LOCK, &HostP [all...] |
H A D | func.h | 127 extern void rio_start_card_running(struct Host *HostP);
|
H A D | port.h | 42 struct Host *HostP; member in struct:Port
|
H A D | daemon.h | 102 struct Host __user *HostP; member in struct:HostReq
|
H A D | rioctrl.c | 141 struct Host *HostP; local 512 port = PortP->HostP->UnixRups[PortP->RupNum].ModTypes; 928 if (copy_to_user(HostReq.HostP, &p->RIOHosts[HostReq.HostNum], sizeof(struct Host))) { 1025 HostP = &p->RIOHosts[RupReq.HostNum]; 1027 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { 1034 if (copy_from_io(RupReq.RupP, HostP->UnixRups[RupReq.RupNum].RupP, sizeof(struct RUP))) { 1062 HostP = &p->RIOHosts[LpbReq.Host]; 1064 if ((HostP->Flags & RUN_STATE) != RC_RUNNING) { 1071 if (copy_from_io(LpbReq.LpbP, &HostP->LinkStrP[LpbReq.Link], sizeof(struct LPB))) { 1500 Ret = RIOQueueCmdBlk(PortP->HostP, ru [all...] |
H A D | riotty.c | 157 if ((PortP->HostP->Flags & RUN_STATE) != RC_RUNNING) { 173 while (!(PortP->HostP->Mapping[PortP->RupNum].Flags & RTA_BOOTED)) {
|