• 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/

Lines Matching defs:ei_local

98 #define ei_reset_8390 (ei_local->reset_8390)
99 #define ei_block_output (ei_local->block_output)
100 #define ei_block_input (ei_local->block_input)
101 #define ei_get_8390_hdr (ei_local->get_8390_hdr)
126 * this with ei_local->page_lock. Nobody should assume or set the page other
206 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
216 spin_lock_irqsave(&ei_local->page_lock, flags);
221 spin_unlock_irqrestore(&ei_local->page_lock, flags);
222 ei_local->irqlock = 0;
234 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
241 spin_lock_irqsave(&ei_local->page_lock, flags);
243 spin_unlock_irqrestore(&ei_local->page_lock, flags);
259 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
265 spin_lock_irqsave(&ei_local->page_lock, flags);
268 spin_unlock_irqrestore(&ei_local->page_lock, flags);
277 ei_local->interface_num ^= 1; /* Try a different xcvr. */
283 spin_lock(&ei_local->page_lock);
289 spin_unlock(&ei_local->page_lock);
306 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
324 spin_lock_irqsave(&ei_local->page_lock, flags);
326 spin_unlock_irqrestore(&ei_local->page_lock, flags);
335 spin_lock(&ei_local->page_lock);
337 ei_local->irqlock = 1;
347 if (ei_local->tx1 == 0)
349 output_page = ei_local->tx_start_page;
350 ei_local->tx1 = send_length;
351 if (ei_debug && ei_local->tx2 > 0)
353 dev->name, ei_local->tx2, ei_local->lasttx, ei_local->txing);
355 else if (ei_local->tx2 == 0)
357 output_page = ei_local->tx_start_page + TX_PAGES/2;
358 ei_local->tx2 = send_length;
359 if (ei_debug && ei_local->tx1 > 0)
361 dev->name, ei_local->tx1, ei_local->lasttx, ei_local->txing);
367 dev->name, ei_local->tx1, ei_local->tx2, ei_local->lasttx);
368 ei_local->irqlock = 0;
371 spin_unlock(&ei_local->page_lock);
385 if (! ei_local->txing)
387 ei_local->txing = 1;
389 if (output_page == ei_local->tx_start_page)
391 ei_local->tx1 = -1;
392 ei_local->lasttx = -1;
396 ei_local->tx2 = -1;
397 ei_local->lasttx = -2;
400 else ei_local->txqueue++;
402 if (ei_local->tx1 && ei_local->tx2)
408 ei_local->irqlock = 0;
411 spin_unlock(&ei_local->page_lock);
437 struct ei_device *ei_local = netdev_priv(dev);
443 spin_lock(&ei_local->page_lock);
445 if (ei_local->irqlock)
455 spin_unlock(&ei_local->page_lock);
521 spin_unlock(&ei_local->page_lock);
551 /* ei_local is used on some platforms via the EI_SHIFT macro */
552 struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
595 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
604 ei_local->txqueue--;
606 if (ei_local->tx1 < 0)
608 if (ei_local->lasttx != 1 && ei_local->lasttx != -1)
610 ei_local->name, ei_local->lasttx, ei_local->tx1);
611 ei_local->tx1 = 0;
612 if (ei_local->tx2 > 0)
614 ei_local->txing = 1;
615 NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
617 ei_local->tx2 = -1,
618 ei_local->lasttx = 2;
620 else ei_local->lasttx = 20, ei_local->txing = 0;
622 else if (ei_local->tx2 < 0)
624 if (ei_local->lasttx != 2 && ei_local->lasttx != -2)
626 ei_local->name, ei_local->lasttx, ei_local->tx2);
627 ei_local->tx2 = 0;
628 if (ei_local->tx1 > 0)
630 ei_local->txing = 1;
631 NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
633 ei_local->tx1 = -1;
634 ei_local->lasttx = 1;
637 ei_local->lasttx = 10, ei_local->txing = 0;
640 // dev->name, ei_local->lasttx);
678 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
683 int num_rx_pages = ei_local->stop_page-ei_local->rx_start_page;
696 if (this_frame >= ei_local->stop_page)
697 this_frame = ei_local->rx_start_page;
705 if (ei_debug > 0 && this_frame != ei_local->current_page && (this_frame!=0x0 || rxing_page!=0xFF))
707 dev->name, this_frame, ei_local->current_page);
727 ei_local->current_page = rxing_page;
728 ei_outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY);
782 if (next_frame >= ei_local->stop_page) {
785 next_frame = ei_local->rx_start_page;
787 ei_local->current_page = next_frame;
813 /* ei_local is used on some platforms via the EI_SHIFT macro */
814 struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
882 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
889 spin_lock_irqsave(&ei_local->page_lock,flags);
894 spin_unlock_irqrestore(&ei_local->page_lock, flags);
930 struct ei_device *ei_local = (struct ei_device*)netdev_priv(dev);
934 memset(ei_local->mcfilter, 0, 8);
936 make_mc_bits(ei_local->mcfilter, dev);
939 memset(ei_local->mcfilter, 0xFF, 8); /* mcast set to accept-all */
959 ei_outb_p(ei_local->mcfilter[i], e8390_base + EN1_MULT_SHIFT(i));
961 if(ei_inb_p(e8390_base + EN1_MULT_SHIFT(i))!=ei_local->mcfilter[i])
984 struct ei_device *ei_local = (struct ei_device*)netdev_priv(dev);
986 spin_lock_irqsave(&ei_local->page_lock, flags);
988 spin_unlock_irqrestore(&ei_local->page_lock, flags);
1001 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1007 spin_lock_init(&ei_local->page_lock);
1039 struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev);
1041 int endcfg = ei_local->word16
1042 ? (0x48 | ENDCFG_WTS | (ei_local->bigendian ? ENDCFG_BOS : 0))
1057 ei_outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR);
1058 ei_local->tx1 = ei_local->tx2 = 0;
1059 ei_outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG);
1060 ei_outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/
1061 ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */
1062 ei_outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG);
1077 ei_outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG);
1081 ei_local->tx1 = ei_local->tx2 = 0;
1082 ei_local->txing = 0;
1103 struct ei_device *ei_local __attribute((unused)) = (struct ei_device *) netdev_priv(dev);