• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/pcmcia/

Lines Matching refs:ei_local

155     struct ei_device *ei_local;
163 ei_local = netdev_priv(dev);
164 spin_lock_init(&ei_local->page_lock);
887 #define ei_reset_8390 (ei_local->reset_8390)
888 #define ei_block_output (ei_local->block_output)
889 #define ei_block_input (ei_local->block_input)
890 #define ei_get_8390_hdr (ei_local->get_8390_hdr)
913 * this with ei_local->page_lock. Nobody should assume or set the page other
945 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
952 spin_lock_irqsave(&ei_local->page_lock, flags);
957 spin_unlock_irqrestore(&ei_local->page_lock, flags);
958 ei_local->irqlock = 0;
996 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1002 spin_lock_irqsave(&ei_local->page_lock, flags);
1005 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1014 ei_local->interface_num ^= 1; /* Try a different xcvr. */
1019 spin_lock_irqsave(&ei_local->page_lock, flags);
1025 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1041 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1055 spin_lock_irqsave(&ei_local->page_lock, flags);
1062 ei_local->irqlock = 1;
1074 if (ei_local->tx1 == 0)
1076 output_page = ei_local->tx_start_page;
1077 ei_local->tx1 = send_length;
1078 if (ei_debug && ei_local->tx2 > 0)
1080 dev->name, ei_local->tx2, ei_local->lasttx, ei_local->txing);
1082 else if (ei_local->tx2 == 0)
1084 output_page = ei_local->tx_start_page + TX_PAGES/2;
1085 ei_local->tx2 = send_length;
1086 if (ei_debug && ei_local->tx1 > 0)
1088 dev->name, ei_local->tx1, ei_local->lasttx, ei_local->txing);
1094 dev->name, ei_local->tx1, ei_local->tx2, ei_local->lasttx);
1095 ei_local->irqlock = 0;
1098 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1117 if (! ei_local->txing)
1119 ei_local->txing = 1;
1122 if (output_page == ei_local->tx_start_page)
1124 ei_local->tx1 = -1;
1125 ei_local->lasttx = -1;
1129 ei_local->tx2 = -1;
1130 ei_local->lasttx = -2;
1133 else ei_local->txqueue++;
1135 if (ei_local->tx1 && ei_local->tx2)
1141 ei_local->irqlock = 0;
1144 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1169 struct ei_device *ei_local;
1174 ei_local = netdev_priv(dev);
1180 spin_lock_irqsave(&ei_local->page_lock, flags);
1182 if (ei_local->irqlock)
1185 printk(ei_local->irqlock
1190 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1199 ei_local->irqlock = 1;
1260 ei_local->irqlock = 0;
1263 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1324 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1331 ei_local->txqueue--;
1333 if (ei_local->tx1 < 0)
1335 if (ei_local->lasttx != 1 && ei_local->lasttx != -1)
1337 ei_local->name, ei_local->lasttx, ei_local->tx1);
1338 ei_local->tx1 = 0;
1339 if (ei_local->tx2 > 0)
1341 ei_local->txing = 1;
1342 NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
1344 ei_local->tx2 = -1,
1345 ei_local->lasttx = 2;
1347 else ei_local->lasttx = 20, ei_local->txing = 0;
1349 else if (ei_local->tx2 < 0)
1351 if (ei_local->lasttx != 2 && ei_local->lasttx != -2)
1353 ei_local->name, ei_local->lasttx, ei_local->tx2);
1354 ei_local->tx2 = 0;
1355 if (ei_local->tx1 > 0)
1357 ei_local->txing = 1;
1358 NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
1360 ei_local->tx1 = -1;
1361 ei_local->lasttx = 1;
1364 ei_local->lasttx = 10, ei_local->txing = 0;
1367 // dev->name, ei_local->lasttx);
1405 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1420 if (this_frame >= ei_local->stop_page)
1421 this_frame = ei_local->rx_start_page;
1429 if (ei_debug > 0 && this_frame != ei_local->current_page && (this_frame!=0x0 || rxing_page!=0xFF))
1431 dev->name, this_frame, ei_local->current_page);
1493 if (next_frame >= ei_local->stop_page) {
1496 next_frame = ei_local->rx_start_page;
1498 ei_local->current_page = next_frame;
1587 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1594 spin_lock_irqsave(&ei_local->page_lock,flags);
1599 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1636 struct ei_device *ei_local = (struct ei_device*)netdev_priv(dev);
1639 memset(ei_local->mcfilter, 0, 8);
1641 make_mc_bits(ei_local->mcfilter, dev);
1644 memset(ei_local->mcfilter, 0xFF, 8);
1650 outb_p(ei_local->mcfilter[i], e8390_base + EN1_MULT_SHIFT(i));
1694 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1696 int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS) : 0x48;
1710 outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR);
1711 ei_local->tx1 = ei_local->tx2 = 0;
1712 outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG);
1713 outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/
1714 ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */
1715 outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG);
1730 outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG);
1734 ei_local->tx1 = ei_local->tx2 = 0;
1735 ei_local->txing = 0;
1760 struct ei_device *ei_local __attribute((unused)) = (struct ei_device *) netdev_priv(dev);