Searched refs:PortP (Results 1 - 11 of 11) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/rio/
H A Driotty.c80 static void RIOClearUp(struct Port *PortP);
83 int RIOShortCommand(struct rio_info *p, struct Port *PortP, int command, int len, int arg);
93 struct Port *PortP; /* pointer to the port structure */ local
129 PortP = p->RIOPortp[SysPort]; /* Get control struc */
130 rio_dprintk(RIO_DEBUG_TTY, "PortP: %p\n", PortP);
131 if (!PortP->Mapped) { /* we aren't mapped yet! */
141 tty->driver_data = PortP;
143 PortP->gs.port.tty = tty;
144 PortP
367 struct Port *PortP = ptr; /* pointer to the port structure */ local
546 RIOClearUp(struct Port *PortP) argument
571 RIOShortCommand(struct rio_info *p, struct Port *PortP, int command, int len, int arg) argument
[all...]
H A Driointr.c95 struct Port *PortP; local
102 PortP = (struct Port *) en;
103 p = (struct rio_info *) PortP->p;
104 tty = PortP->gs.port.tty;
107 rio_dprintk(RIO_DEBUG_INTR, "tx port %d: %d chars queued.\n", PortP->PortNum, PortP->gs.xmit_cnt);
109 if (!PortP->gs.xmit_cnt)
119 rio_spin_lock_irqsave(&PortP->portSem, flags);
121 while (can_add_transmit(&PacketP, PortP)) {
122 c = PortP
209 struct Port *PortP = p->RIOPortp[port]; local
288 struct Port *PortP = p->RIOPortp[port]; local
512 RIOReceive(struct rio_info *p, struct Port *PortP) argument
[all...]
H A Drioparam.c132 ** RIOParam is used to open or configure a port. You pass it a PortP,
135 ** of the tty struct inside the PortP, and the port is either opened
147 int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) argument
162 TtyP = PortP->gs.port.tty;
164 rio_dprintk(RIO_DEBUG_PARAM, "RIOParam: Port:%d cmd:%d Modem:%d SleepFlag:%d Mapped: %d, tty=%p\n", PortP->PortNum, cmd, Modem, SleepFlag, PortP->Mapped, TtyP);
173 rio_spin_lock_irqsave(&PortP->portSem, flags);
186 while (!(res = can_add_transmit(&PacketP, PortP)) || (PortP->InUse != NOT_INUSE)) {
190 if (PortP
577 can_add_transmit(struct PKT __iomem **PktP, struct Port *PortP) argument
591 add_transmit(struct Port *PortP) argument
644 can_remove_receive(struct PKT __iomem **PktP, struct Port *PortP) argument
658 remove_receive(struct Port *PortP) argument
[all...]
H A Driotable.c457 struct Port *PortP; local
497 PortP = p->RIOPortp[port];
500 rio_spin_lock_irqsave(&PortP->portSem, sem_flags);
502 PortP->Mapped = 0;
504 if (PortP->State & (RIO_MOPEN | RIO_LOPEN)) {
507 PortP->TxBufferIn = PortP->TxBufferOut = 0;
509 wakeup( &PortP->TxBufferIn );
510 wakeup( &PortP->TxBufferOut);
512 PortP
730 struct Port *PortP; local
[all...]
H A Driocmd.c340 struct Port *PortP; local
344 PortP = p->RIOPortp[port];
346 rio_spin_lock_irqsave(&PortP->portSem, flags);
347 PortP->Config = 0;
348 PortP->State = 0;
349 PortP->InUse = NOT_INUSE;
350 PortP->PortState = 0;
351 PortP->FlushCmdBodge = 0;
352 PortP->ModemLines = 0;
353 PortP
373 struct Port *PortP; local
810 struct Port *PortP = (struct Port *) iPortP; local
822 struct Port *PortP = (struct Port *) iPortP; local
847 struct Port *PortP = (struct Port *) iPortP; local
[all...]
H A Drioctrl.c144 struct Port *PortP; local
154 PortP = NULL;
410 PortP = p->RIOPortp[port];
411 if (!PortP->Mapped) {
416 if (!(PortP->State & (RIO_LOPEN | RIO_MOPEN))) {
421 rio_spin_lock_irqsave(&PortP->portSem, flags);
425 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
429 PortP->State |= RIO_BUSY;
431 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
503 PortP
1390 RIOPreemptiveCmd(struct rio_info *p, struct Port *PortP, u8 Cmd) argument
[all...]
H A Drio_linux.c303 int RIODelay(struct Port *PortP, int njiffies) argument
319 int RIODelay_ni(struct Port *PortP, int njiffies) argument
441 struct Port *PortP = ptr; local
446 /* hn = PortP->HostP - p->RIOHosts;
451 RIOTxEnable((char *) PortP);
457 PortP->gs.port.flags &= ~GS_TX_INTEN;
480 struct Port *PortP = container_of(port, struct Port, gs.port); local
484 rv = (PortP->ModemState & RIOC_MSVR1_CD) != 0;
507 struct Port *PortP; local
511 PortP
526 struct Port *PortP; local
543 struct Port *PortP; local
582 struct Port *PortP; local
[all...]
H A Drioroute.c89 struct Port *PortP; local
381 PortP = p->RIOPortp[port + HostP->Mapping[ThisUnit].SysPort];
382 if (PortP->State & (RIO_MOPEN | RIO_LOPEN)) {
384 rio_spin_lock_irqsave(&PortP->portSem, flags);
385 PortP->MagicFlags |= MAGIC_REBOOT;
386 rio_spin_unlock_irqrestore(&PortP->portSem, flags);
391 PortP = p->RIOPortp[port + HostP->Mapping[ThisUnit2].SysPort];
392 if (PortP->State & (RIO_MOPEN | RIO_LOPEN)) {
394 rio_spin_lock_irqsave(&PortP->portSem, flags);
395 PortP
497 struct Port *PortP; local
[all...]
H A Dfunc.h90 int RIODelay(struct Port *PortP, int);
91 int RIODelay_ni(struct Port *PortP, int);
H A Drioboot.c533 ** point the PortP->Phbs at the real Phbs
537 struct Port *PortP = p->RIOPortp[PortN]; local
541 if (!PortP->Mapped)
544 PhbP = &HostP->PhbP[PortP->HostPort];
545 rio_spin_lock_irqsave(&PortP->portSem, flags);
547 PortP->PhbP = PhbP;
549 PortP->TxAdd = (u16 __iomem *) RIO_PTR(Cad, readw(&PhbP->tx_add));
550 PortP->TxStart = (u16 __iomem *) RIO_PTR(Cad, readw(&PhbP->tx_start));
551 PortP->TxEnd = (u16 __iomem *) RIO_PTR(Cad, readw(&PhbP->tx_end));
552 PortP
[all...]
H A Ddaemon.h91 struct Port __user *PortP; member in struct:PortReq

Completed in 77 milliseconds