Lines Matching refs:pDpa
125 PDPA pDpa = dev->priv; in rcpci45_remove_one() local
138 if (pDpa->msgbuf) in rcpci45_remove_one()
139 kfree (pDpa->msgbuf); in rcpci45_remove_one()
140 if (pDpa->pPab) in rcpci45_remove_one()
141 kfree (pDpa->pPab); in rcpci45_remove_one()
150 PDPA pDpa; in rcpci45_init_one() local
167 dev = init_etherdev (NULL, sizeof (*pDpa)); in rcpci45_init_one()
189 pDpa = dev->priv; in rcpci45_init_one()
190 pDpa->id = card_idx; in rcpci45_init_one()
191 pDpa->pci_addr = pci_start; in rcpci45_init_one()
205 pDpa->msgbuf = kmalloc (MSG_BUF_SIZE, GFP_DMA | GFP_KERNEL); in rcpci45_init_one()
206 if (!pDpa->msgbuf) { in rcpci45_init_one()
218 pDpa->PLanApiPA = (void *) (((long) pDpa->msgbuf + 0xff) & ~0xff); in rcpci45_init_one()
251 kfree (pDpa->msgbuf); in rcpci45_init_one()
280 PDPA pDpa = dev->priv; in RCopen() local
286 if (pDpa->nexus) { in RCopen()
299 pDpa->nexus = 1; in RCopen()
359 pDpa->numOutRcvBuffers = MAX_NMBR_RCV_BUFFERS - post_buffers; in RCopen()
360 pDpa->shutdown = 0; /* just in case */ in RCopen()
375 PDPA pDpa = dev->priv; in RC_xmit_packet() local
382 if (pDpa->shutdown || pDpa->reboot) { in RC_xmit_packet()
435 PDPA pDpa = dev->priv; in RCxmit_callback() local
437 if (!pDpa) { in RCxmit_callback()
446 if (pDpa->shutdown || pDpa->reboot) in RCxmit_callback()
461 PDPA pDpa = dev->priv; in RCreset_callback() local
467 if (pDpa->shutdown) { in RCreset_callback()
470 pDpa->shutdown = 0; in RCreset_callback()
471 pDpa->reboot = 0; in RCreset_callback()
472 } else if (pDpa->reboot) { in RCreset_callback()
484 init_timer (&pDpa->timer); in RCreset_callback()
485 pDpa->timer.expires = RUN_AT ((40 * HZ) / 10); /* 4 sec. */ in RCreset_callback()
486 pDpa->timer.data = (unsigned long) dev; in RCreset_callback()
487 pDpa->timer.function = &rc_timer; /* timer handler */ in RCreset_callback()
488 add_timer (&pDpa->timer); in RCreset_callback()
495 PDPA pDpa = dev->priv; in RCreboot_callback() local
498 dev->name, (uint) pDpa->numOutRcvBuffers); in RCreboot_callback()
500 if (pDpa->shutdown) { in RCreboot_callback()
505 pDpa->reboot = 1; in RCreboot_callback()
547 PDPA pDpa = dev->priv; in RCrecv_callback() local
554 if ((pDpa->shutdown || pDpa->reboot) && !Status) in RCrecv_callback()
558 if ((Status != I2O_REPLY_STATUS_SUCCESS) || pDpa->shutdown) { in RCrecv_callback()
564 if (!pDpa->shutdown && !pDpa->reboot) in RCrecv_callback()
579 pDpa->numOutRcvBuffers--; in RCrecv_callback()
594 pDpa->numOutRcvBuffers--; in RCrecv_callback()
606 if (!pDpa->shutdown && !pDpa->reboot) { in RCrecv_callback()
609 pDpa->numOutRcvBuffers); in RCrecv_callback()
610 pDpa->numOutRcvBuffers += count; in RCrecv_callback()
627 PDPA pDpa; in RCinterrupt() local
630 pDpa = dev->priv; in RCinterrupt()
632 if (pDpa->shutdown) in RCinterrupt()
644 PDPA pDpa = dev->priv; in rc_timer() local
651 if (pDpa->reboot) { in rc_timer()
660 pDpa->reboot = 0; in rc_timer()
661 pDpa->shutdown = 0; /* just in case */ in rc_timer()
684 pDpa->numOutRcvBuffers = in rc_timer()
711 init_timer (&pDpa->timer); in rc_timer()
712 pDpa->timer.expires = RUN_AT ((40 * HZ) / 10); in rc_timer()
713 pDpa->timer.data = (unsigned long) dev; in rc_timer()
714 pDpa->timer.function = &rc_timer; in rc_timer()
715 add_timer (&pDpa->timer); in rc_timer()
724 PDPA pDpa = dev->priv; in RCclose() local
729 if (pDpa->reboot) { in RCclose()
732 pDpa->shutdown = 1; in RCclose()
737 pDpa->shutdown = 1; in RCclose()
760 PDPA pDpa = dev->priv; in RCget_stats() local
762 if (!pDpa) { in RCget_stats()
773 pDpa->stats.rx_packets = RCstats.Rcv_good in RCget_stats()
775 pDpa->stats.tx_packets = RCstats.TX_good; in RCget_stats()
777 pDpa->stats.rx_errors = RCstats.Rcv_CRCerr + in RCget_stats()
781 pDpa->stats.tx_errors = RCstats.TX_urun + RCstats.TX_crs + in RCget_stats()
787 pDpa->stats.rx_dropped = 0; /* no space in linux buffers */ in RCget_stats()
788 pDpa->stats.tx_dropped = 0; /* no space available in linux */ in RCget_stats()
789 pDpa->stats.multicast = 0; /* multicast packets received */ in RCget_stats()
790 pDpa->stats.collisions = RCstats.TX_totcol; in RCget_stats()
793 pDpa->stats.rx_length_errors = 0; in RCget_stats()
794 pDpa->stats.rx_over_errors = RCstats.Rcv_orun; in RCget_stats()
795 pDpa->stats.rx_crc_errors = RCstats.Rcv_CRCerr; in RCget_stats()
796 pDpa->stats.rx_frame_errors = 0; in RCget_stats()
797 pDpa->stats.rx_fifo_errors = 0; in RCget_stats()
798 pDpa->stats.rx_missed_errors = 0; in RCget_stats()
801 pDpa->stats.tx_aborted_errors = 0; in RCget_stats()
802 pDpa->stats.tx_carrier_errors = 0; in RCget_stats()
803 pDpa->stats.tx_fifo_errors = 0; in RCget_stats()
804 pDpa->stats.tx_heartbeat_errors = 0; in RCget_stats()
805 pDpa->stats.tx_window_errors = 0; in RCget_stats()
807 return ((struct net_device_stats *) &(pDpa->stats)); in RCget_stats()
816 PDPA pDpa = dev->priv; in RCioctl() local
850 dev->base_addr + pDpa->pci_addr_len; in RCioctl()
851 RCUD_GETINFO->base_addr = pDpa->pci_addr; in RCioctl()