Lines Matching refs:lp

235     struct local_info *lp;  in fmvj18x_probe()  local
244 lp = netdev_priv(dev); in fmvj18x_probe()
246 lp->p_dev = link; in fmvj18x_probe()
247 lp->base = NULL; in fmvj18x_probe()
330 struct local_info *lp = netdev_priv(dev); in fmvj18x_config() local
517 lp->cardtype = cardtype; in fmvj18x_config()
587 struct local_info *lp = netdev_priv(dev); in fmvj18x_setup_mfc() local
596 lp->base = ioremap(link->resource[3]->start, in fmvj18x_setup_mfc()
598 if (lp->base == NULL) { in fmvj18x_setup_mfc()
605 iounmap(lp->base); in fmvj18x_setup_mfc()
606 lp->base = NULL; in fmvj18x_setup_mfc()
611 writeb(0x47, lp->base+0x800); /* Config Option Register of LAN */ in fmvj18x_setup_mfc()
612 writeb(0x0, lp->base+0x802); /* Config and Status Register */ in fmvj18x_setup_mfc()
614 writeb(ioaddr & 0xff, lp->base+0x80a); /* I/O Base(Low) of LAN */ in fmvj18x_setup_mfc()
615 writeb((ioaddr >> 8) & 0xff, lp->base+0x80c); /* I/O Base(High) of LAN */ in fmvj18x_setup_mfc()
617 writeb(0x45, lp->base+0x820); /* Config Option Register of Modem */ in fmvj18x_setup_mfc()
618 writeb(0x8, lp->base+0x822); /* Config and Status Register */ in fmvj18x_setup_mfc()
629 struct local_info *lp = netdev_priv(dev); in fmvj18x_release() local
634 if (lp->base != NULL) { in fmvj18x_release()
635 tmp = lp->base; in fmvj18x_release()
636 lp->base = NULL; /* set NULL before iounmap */ in fmvj18x_release()
714 struct local_info *lp = netdev_priv(dev); in fjn_interrupt() local
742 dev->stats.tx_packets += lp->sent ; in fjn_interrupt()
743 lp->sent = 0 ; in fjn_interrupt()
744 if (lp->tx_queue) { in fjn_interrupt()
745 outb(DO_TX | lp->tx_queue, ioaddr + TX_START); in fjn_interrupt()
746 lp->sent = lp->tx_queue ; in fjn_interrupt()
747 lp->tx_queue = 0; in fjn_interrupt()
748 lp->tx_queue_len = 0; in fjn_interrupt()
751 lp->tx_started = 0; in fjn_interrupt()
761 if (lp->base != NULL) { in fjn_interrupt()
763 writeb(0x01, lp->base+0x802); in fjn_interrupt()
764 writeb(0x09, lp->base+0x822); in fjn_interrupt()
775 struct local_info *lp = netdev_priv(dev); in fjn_tx_timeout() local
793 lp->tx_started = 0; in fjn_tx_timeout()
794 lp->tx_queue = 0; in fjn_tx_timeout()
795 lp->tx_queue_len = 0; in fjn_tx_timeout()
796 lp->sent = 0; in fjn_tx_timeout()
797 lp->open_time = jiffies; in fjn_tx_timeout()
805 struct local_info *lp = netdev_priv(dev); in fjn_start_xmit() local
840 lp->tx_queue++; in fjn_start_xmit()
841 lp->tx_queue_len += ((length+3) & ~1); in fjn_start_xmit()
843 if (lp->tx_started == 0) { in fjn_start_xmit()
845 outb(DO_TX | lp->tx_queue, ioaddr + TX_START); in fjn_start_xmit()
846 lp->sent = lp->tx_queue ; in fjn_start_xmit()
847 lp->tx_queue = 0; in fjn_start_xmit()
848 lp->tx_queue_len = 0; in fjn_start_xmit()
849 lp->tx_started = 1; in fjn_start_xmit()
853 if (lp->tx_queue_len < (4096 - (ETH_FRAME_LEN +2)) ) in fjn_start_xmit()
857 if (lp->tx_queue_len < (8192 - (ETH_FRAME_LEN +2)) && in fjn_start_xmit()
858 lp->tx_queue < 127 ) in fjn_start_xmit()
877 struct local_info *lp = netdev_priv(dev); in fjn_reset() local
890 if (lp->cardtype == MBH10302) in fjn_reset()
908 if (lp->cardtype == MBH10302) in fjn_reset()
914 if( lp->cardtype == TDK || lp->cardtype == CONTEC) in fjn_reset()
940 if (lp->cardtype == MBH10302) in fjn_reset()
948 if (lp->cardtype == MBH10302) in fjn_reset()
1061 struct local_info *lp = netdev_priv(dev); in fjn_open() local
1062 struct pcmcia_device *link = lp->p_dev; in fjn_open()
1073 lp->tx_started = 0; in fjn_open()
1074 lp->tx_queue = 0; in fjn_open()
1075 lp->tx_queue_len = 0; in fjn_open()
1076 lp->open_time = jiffies; in fjn_open()
1086 struct local_info *lp = netdev_priv(dev); in fjn_close() local
1087 struct pcmcia_device *link = lp->p_dev; in fjn_close()
1092 lp->open_time = 0; in fjn_close()
1107 if (lp->cardtype == MBH10302) in fjn_close()