tag | line | file | source code |
ei_local | 74 | drivers/net/8390.c | #define ei_reset_8390 (ei_local->reset_8390) |
ei_local | 75 | drivers/net/8390.c | #define ei_block_output (ei_local->block_output) |
ei_local | 76 | drivers/net/8390.c | #define ei_block_input (ei_local->block_input) |
ei_local | 108 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 110 | drivers/net/8390.c | if ( ! ei_local) { |
ei_local | 118 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 125 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 152 | drivers/net/8390.c | if(ei_local->stat.tx_packets==0) |
ei_local | 153 | drivers/net/8390.c | ei_local->interface_num ^= 1; /* Try a different xcvr. */ |
ei_local | 181 | drivers/net/8390.c | ei_local->irqlock = 1; |
ei_local | 185 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 187 | drivers/net/8390.c | if (ei_local->tx1 == 0) { |
ei_local | 188 | drivers/net/8390.c | output_page = ei_local->tx_start_page; |
ei_local | 189 | drivers/net/8390.c | ei_local->tx1 = send_length; |
ei_local | 190 | drivers/net/8390.c | if (ei_debug && ei_local->tx2 > 0) |
ei_local | 192 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
ei_local | 193 | drivers/net/8390.c | ei_local->txing); |
ei_local | 194 | drivers/net/8390.c | } else if (ei_local->tx2 == 0) { |
ei_local | 195 | drivers/net/8390.c | output_page = ei_local->tx_start_page + 6; |
ei_local | 196 | drivers/net/8390.c | ei_local->tx2 = send_length; |
ei_local | 197 | drivers/net/8390.c | if (ei_debug && ei_local->tx1 > 0) |
ei_local | 199 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
ei_local | 200 | drivers/net/8390.c | ei_local->txing); |
ei_local | 205 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 211 | drivers/net/8390.c | if (! ei_local->txing) { |
ei_local | 214 | drivers/net/8390.c | if (output_page == ei_local->tx_start_page) |
ei_local | 215 | drivers/net/8390.c | ei_local->tx1 = -1, ei_local->lasttx = -1; |
ei_local | 217 | drivers/net/8390.c | ei_local->tx2 = -1, ei_local->lasttx = -2; |
ei_local | 218 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 220 | drivers/net/8390.c | ei_local->txqueue++; |
ei_local | 222 | drivers/net/8390.c | dev->tbusy = (ei_local->tx1 && ei_local->tx2); |
ei_local | 224 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, ei_local->tx_start_page); |
ei_local | 225 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
ei_local | 231 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 246 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 253 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
ei_local | 254 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
ei_local | 257 | drivers/net/8390.c | printk(ei_local->irqlock |
ei_local | 296 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
ei_local | 297 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
ei_local | 298 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
ei_local | 328 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 332 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 333 | drivers/net/8390.c | ei_local->txqueue--; |
ei_local | 334 | drivers/net/8390.c | if (ei_local->tx1 < 0) { |
ei_local | 335 | drivers/net/8390.c | if (ei_local->lasttx != 1 && ei_local->lasttx != -1) |
ei_local | 337 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx1); |
ei_local | 338 | drivers/net/8390.c | ei_local->tx1 = 0; |
ei_local | 340 | drivers/net/8390.c | if (ei_local->tx2 > 0) { |
ei_local | 341 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
ei_local | 343 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 344 | drivers/net/8390.c | ei_local->tx2 = -1, |
ei_local | 345 | drivers/net/8390.c | ei_local->lasttx = 2; |
ei_local | 347 | drivers/net/8390.c | ei_local->lasttx = 20, ei_local->txing = 0; |
ei_local | 348 | drivers/net/8390.c | } else if (ei_local->tx2 < 0) { |
ei_local | 349 | drivers/net/8390.c | if (ei_local->lasttx != 2 && ei_local->lasttx != -2) |
ei_local | 351 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx2); |
ei_local | 352 | drivers/net/8390.c | ei_local->tx2 = 0; |
ei_local | 354 | drivers/net/8390.c | if (ei_local->tx1 > 0) { |
ei_local | 355 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
ei_local | 357 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 358 | drivers/net/8390.c | ei_local->tx1 = -1; |
ei_local | 359 | drivers/net/8390.c | ei_local->lasttx = 1; |
ei_local | 361 | drivers/net/8390.c | ei_local->lasttx = 10, ei_local->txing = 0; |
ei_local | 364 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
ei_local | 366 | drivers/net/8390.c | ei_local->txing = 0; |
ei_local | 371 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
ei_local | 373 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
ei_local | 375 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
ei_local | 376 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
ei_local | 377 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
ei_local | 378 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
ei_local | 379 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
ei_local | 380 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
ei_local | 391 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 395 | drivers/net/8390.c | int num_rx_pages = ei_local->stop_page-ei_local->rx_start_page; |
ei_local | 407 | drivers/net/8390.c | if (this_frame >= ei_local->stop_page) |
ei_local | 408 | drivers/net/8390.c | this_frame = ei_local->rx_start_page; |
ei_local | 412 | drivers/net/8390.c | if (ei_debug > 0 && this_frame != ei_local->current_page) |
ei_local | 414 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
ei_local | 434 | drivers/net/8390.c | ei_local->current_page = rxing_page; |
ei_local | 435 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
ei_local | 436 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
ei_local | 445 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
ei_local | 454 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
ei_local | 463 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
ei_local | 472 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
ei_local | 477 | drivers/net/8390.c | if (next_frame >= ei_local->stop_page) { |
ei_local | 480 | drivers/net/8390.c | next_frame = ei_local->rx_start_page; |
ei_local | 482 | drivers/net/8390.c | ei_local->current_page = next_frame; |
ei_local | 504 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 511 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
ei_local | 540 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 543 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ei_local | 544 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ei_local | 545 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ei_local | 547 | drivers/net/8390.c | return &ei_local->stat; |
ei_local | 579 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 583 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
ei_local | 585 | drivers/net/8390.c | ei_local->pingpong = 1; |
ei_local | 610 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 612 | drivers/net/8390.c | int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS) : 0x48; |
ei_local | 624 | drivers/net/8390.c | outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR); |
ei_local | 625 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 626 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG); |
ei_local | 627 | drivers/net/8390.c | outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/ |
ei_local | 628 | drivers/net/8390.c | ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */ |
ei_local | 629 | drivers/net/8390.c | outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG); |
ei_local | 646 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG); |
ei_local | 651 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 652 | drivers/net/8390.c | ei_local->txing = 0; |