• Home
  • Raw
  • Download

Lines Matching refs:ei_local

144     struct ei_device *ei_local;  in axnet_probe()  local
152 ei_local = netdev_priv(dev); in axnet_probe()
153 spin_lock_init(&ei_local->page_lock); in axnet_probe()
652 struct ei_device *ei_local = netdev_priv(dev); in block_input() local
655 if ((netif_msg_rx_status(ei_local)) && (count != 4)) in block_input()
807 #define ei_reset_8390 (ei_local->reset_8390)
808 #define ei_block_output (ei_local->block_output)
809 #define ei_block_input (ei_local->block_input)
810 #define ei_get_8390_hdr (ei_local->get_8390_hdr)
860 struct ei_device *ei_local = netdev_priv(dev); in ax_open() local
867 spin_lock_irqsave(&ei_local->page_lock, flags); in ax_open()
872 spin_unlock_irqrestore(&ei_local->page_lock, flags); in ax_open()
873 ei_local->irqlock = 0; in ax_open()
912 struct ei_device *ei_local = netdev_priv(dev); in axnet_tx_timeout() local
918 spin_lock_irqsave(&ei_local->page_lock, flags); in axnet_tx_timeout()
921 spin_unlock_irqrestore(&ei_local->page_lock, flags); in axnet_tx_timeout()
931 ei_local->interface_num ^= 1; /* Try a different xcvr. */ in axnet_tx_timeout()
936 spin_lock_irqsave(&ei_local->page_lock, flags); in axnet_tx_timeout()
942 spin_unlock_irqrestore(&ei_local->page_lock, flags); in axnet_tx_timeout()
958 struct ei_device *ei_local = netdev_priv(dev); in axnet_start_xmit() local
972 spin_lock_irqsave(&ei_local->page_lock, flags); in axnet_start_xmit()
979 ei_local->irqlock = 1; in axnet_start_xmit()
991 if (ei_local->tx1 == 0) in axnet_start_xmit()
993 output_page = ei_local->tx_start_page; in axnet_start_xmit()
994 ei_local->tx1 = send_length; in axnet_start_xmit()
995 if ((netif_msg_tx_queued(ei_local)) && in axnet_start_xmit()
996 ei_local->tx2 > 0) in axnet_start_xmit()
999 ei_local->tx2, ei_local->lasttx, in axnet_start_xmit()
1000 ei_local->txing); in axnet_start_xmit()
1002 else if (ei_local->tx2 == 0) in axnet_start_xmit()
1004 output_page = ei_local->tx_start_page + TX_PAGES/2; in axnet_start_xmit()
1005 ei_local->tx2 = send_length; in axnet_start_xmit()
1006 if ((netif_msg_tx_queued(ei_local)) && in axnet_start_xmit()
1007 ei_local->tx1 > 0) in axnet_start_xmit()
1010 ei_local->tx1, ei_local->lasttx, in axnet_start_xmit()
1011 ei_local->txing); in axnet_start_xmit()
1015 netif_dbg(ei_local, tx_err, dev, in axnet_start_xmit()
1017 ei_local->tx1, ei_local->tx2, in axnet_start_xmit()
1018 ei_local->lasttx); in axnet_start_xmit()
1019 ei_local->irqlock = 0; in axnet_start_xmit()
1022 spin_unlock_irqrestore(&ei_local->page_lock, flags); in axnet_start_xmit()
1041 if (! ei_local->txing) in axnet_start_xmit()
1043 ei_local->txing = 1; in axnet_start_xmit()
1046 if (output_page == ei_local->tx_start_page) in axnet_start_xmit()
1048 ei_local->tx1 = -1; in axnet_start_xmit()
1049 ei_local->lasttx = -1; in axnet_start_xmit()
1053 ei_local->tx2 = -1; in axnet_start_xmit()
1054 ei_local->lasttx = -2; in axnet_start_xmit()
1057 else ei_local->txqueue++; in axnet_start_xmit()
1059 if (ei_local->tx1 && ei_local->tx2) in axnet_start_xmit()
1065 ei_local->irqlock = 0; in axnet_start_xmit()
1068 spin_unlock_irqrestore(&ei_local->page_lock, flags); in axnet_start_xmit()
1093 struct ei_device *ei_local; in ax_interrupt() local
1098 ei_local = netdev_priv(dev); in ax_interrupt()
1104 spin_lock_irqsave(&ei_local->page_lock, flags); in ax_interrupt()
1106 if (ei_local->irqlock) { in ax_interrupt()
1110 if (ei_local->irqlock) in ax_interrupt()
1119 spin_unlock_irqrestore(&ei_local->page_lock, flags); in ax_interrupt()
1123 netif_dbg(ei_local, intr, dev, "interrupt(isr=%#2.2x)\n", in ax_interrupt()
1127 ei_local->irqlock = 1; in ax_interrupt()
1134 netif_warn(ei_local, intr, dev, in ax_interrupt()
1171 if (interrupts && (netif_msg_intr(ei_local))) in ax_interrupt()
1190 ei_local->irqlock = 0; in ax_interrupt()
1193 spin_unlock_irqrestore(&ei_local->page_lock, flags); in ax_interrupt()
1254 struct ei_device *ei_local = netdev_priv(dev); in ei_tx_intr() local
1261 ei_local->txqueue--; in ei_tx_intr()
1263 if (ei_local->tx1 < 0) in ei_tx_intr()
1265 if (ei_local->lasttx != 1 && ei_local->lasttx != -1) in ei_tx_intr()
1267 ei_local->name, ei_local->lasttx, in ei_tx_intr()
1268 ei_local->tx1); in ei_tx_intr()
1269 ei_local->tx1 = 0; in ei_tx_intr()
1270 if (ei_local->tx2 > 0) in ei_tx_intr()
1272 ei_local->txing = 1; in ei_tx_intr()
1273 NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); in ei_tx_intr()
1275 ei_local->tx2 = -1; in ei_tx_intr()
1276 ei_local->lasttx = 2; in ei_tx_intr()
1278 ei_local->lasttx = 20; in ei_tx_intr()
1279 ei_local->txing = 0; in ei_tx_intr()
1282 else if (ei_local->tx2 < 0) in ei_tx_intr()
1284 if (ei_local->lasttx != 2 && ei_local->lasttx != -2) in ei_tx_intr()
1286 ei_local->name, ei_local->lasttx, in ei_tx_intr()
1287 ei_local->tx2); in ei_tx_intr()
1288 ei_local->tx2 = 0; in ei_tx_intr()
1289 if (ei_local->tx1 > 0) in ei_tx_intr()
1291 ei_local->txing = 1; in ei_tx_intr()
1292 NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); in ei_tx_intr()
1294 ei_local->tx1 = -1; in ei_tx_intr()
1295 ei_local->lasttx = 1; in ei_tx_intr()
1297 ei_local->lasttx = 10; in ei_tx_intr()
1298 ei_local->txing = 0; in ei_tx_intr()
1341 struct ei_device *ei_local = netdev_priv(dev); in ei_receive() local
1356 if (this_frame >= ei_local->stop_page) in ei_receive()
1357 this_frame = ei_local->rx_start_page; in ei_receive()
1365 if ((netif_msg_rx_err(ei_local)) && in ei_receive()
1366 this_frame != ei_local->current_page && in ei_receive()
1369 this_frame, ei_local->current_page); in ei_receive()
1384 netif_err(ei_local, rx_err, dev, in ei_receive()
1398 netif_err(ei_local, rx_err, dev, in ei_receive()
1419 netif_err(ei_local, rx_err, dev, in ei_receive()
1431 if (next_frame >= ei_local->stop_page) { in ei_receive()
1434 next_frame = ei_local->rx_start_page; in ei_receive()
1436 ei_local->current_page = next_frame; in ei_receive()
1459 struct ei_device *ei_local = netdev_priv(dev); in ei_rx_overrun() local
1468 netif_dbg(ei_local, rx_err, dev, "Receiver overrun\n"); in ei_rx_overrun()
1523 struct ei_device *ei_local = netdev_priv(dev); in get_stats() local
1530 spin_lock_irqsave(&ei_local->page_lock,flags); in get_stats()
1535 spin_unlock_irqrestore(&ei_local->page_lock, flags); in get_stats()
1572 struct ei_device *ei_local = netdev_priv(dev); in do_set_multicast_list() local
1575 memset(ei_local->mcfilter, 0, 8); in do_set_multicast_list()
1577 make_mc_bits(ei_local->mcfilter, dev); in do_set_multicast_list()
1580 memset(ei_local->mcfilter, 0xFF, 8); in do_set_multicast_list()
1586 outb_p(ei_local->mcfilter[i], e8390_base + EN1_MULT_SHIFT(i)); in do_set_multicast_list()
1630 struct ei_device *ei_local = netdev_priv(dev); in AX88190_init() local
1632 int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS) : 0x48; in AX88190_init()
1646 outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR); in AX88190_init()
1647 ei_local->tx1 = ei_local->tx2 = 0; in AX88190_init()
1648 outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG); in AX88190_init()
1649 outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/ in AX88190_init()
1650 ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */ in AX88190_init()
1651 outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG); in AX88190_init()
1666 outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG); in AX88190_init()
1670 ei_local->tx1 = ei_local->tx2 = 0; in AX88190_init()
1671 ei_local->txing = 0; in AX88190_init()
1696 struct ei_device *ei_local __attribute((unused)) = netdev_priv(dev); in NS8390_trigger_send()