• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching defs:lp

233 #define	MEM		lp->mem
473 struct lance_private *lp;
532 lp = netdev_priv(dev);
534 IO = lp->iobase = (struct lance_ioreg *)ioaddr;
536 lp->memcpy_f = init_rec->slow_flag ? slow_memcpy : memcpy;
545 lp->cardtype = PAM_CARD;
548 lp->cardtype = NEW_RIEBL;
551 lp->cardtype = OLD_RIEBL;
553 if (lp->cardtype == PAM_CARD ||
582 dev->name, lance_names[lp->cardtype],
589 switch( lp->cardtype ) {
595 lp->memcpy_f( dev->dev_addr, RIEBL_HWADDR_ADDR, 6 );
607 if (lp->cardtype == OLD_RIEBL) {
613 spin_lock_init(&lp->devlock);
627 if (lp->cardtype == PAM_CARD)
645 struct lance_private *lp = netdev_priv(dev);
646 struct lance_ioreg *IO = lp->iobase;
654 REGA( CSR3 ) = CSR3_BSWP | (lp->cardtype == PAM_CARD ? CSR3_ACON : 0);
686 struct lance_private *lp = netdev_priv(dev);
690 lp->tx_full = 0;
691 lp->cur_rx = lp->cur_tx = 0;
692 lp->dirty_tx = 0;
700 if (lp->cardtype == OLD_RIEBL || lp->cardtype == NEW_RIEBL) { \
734 struct lance_private *lp = netdev_priv(dev);
735 struct lance_ioreg *IO = lp->iobase;
745 REGA( CSR3 ) = CSR3_BSWP | (lp->cardtype == PAM_CARD ? CSR3_ACON : 0);
750 lp->dirty_tx, lp->cur_tx,
751 lp->tx_full ? " (full)" : "",
752 lp->cur_rx ));
776 struct lance_private *lp = netdev_priv(dev);
777 struct lance_ioreg *IO = lp->iobase;
791 else if (lp->cardtype == PAM_CARD && (len & 1))
812 spin_lock_irqsave (&lp->devlock, flags);
815 entry = lp->cur_tx & TX_RING_MOD_MASK;
825 lp->memcpy_f( PKTBUF_ADDR(head), (void *)skb->data, skb->len );
829 lp->cur_tx++;
830 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) {
831 lp->cur_tx -= TX_RING_SIZE;
832 lp->dirty_tx -= TX_RING_SIZE;
842 lp->tx_full = 1;
843 spin_unlock_irqrestore (&lp->devlock, flags);
853 struct lance_private *lp;
863 lp = netdev_priv(dev);
864 IO = lp->iobase;
865 spin_lock (&lp->devlock);
883 int dirty_tx = lp->dirty_tx;
885 while( dirty_tx < lp->cur_tx) {
920 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) {
923 dirty_tx, lp->cur_tx, lp->tx_full ));
928 if (lp->tx_full && (netif_queue_stopped(dev)) &&
929 dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
931 lp->tx_full = 0;
935 lp->dirty_tx = dirty_tx;
956 spin_unlock (&lp->devlock);
963 struct lance_private *lp = netdev_priv(dev);
964 int entry = lp->cur_rx & RX_RING_MOD_MASK;
1009 lp->cur_rx++;
1029 lp->memcpy_f( skb->data, PKTBUF_ADDR(head), pkt_len );
1038 entry = (++lp->cur_rx) & RX_RING_MOD_MASK;
1040 lp->cur_rx &= RX_RING_MOD_MASK;
1052 struct lance_private *lp = netdev_priv(dev);
1053 struct lance_ioreg *IO = lp->iobase;
1079 struct lance_private *lp = netdev_priv(dev);
1080 struct lance_ioreg *IO = lp->iobase;
1110 REGA( CSR3 ) = CSR3_BSWP | (lp->cardtype == PAM_CARD ? CSR3_ACON : 0);
1121 struct lance_private *lp = netdev_priv(dev);
1125 if (lp->cardtype != OLD_RIEBL && lp->cardtype != NEW_RIEBL)
1138 lp->memcpy_f( RIEBL_HWADDR_ADDR, dev->dev_addr, 6 );