tag | line | file | source code |
ei_local | 67 | drivers/net/8390.c | #define ei_reset_8390 (ei_local->reset_8390) |
ei_local | 68 | drivers/net/8390.c | #define ei_block_output (ei_local->block_output) |
ei_local | 69 | drivers/net/8390.c | #define ei_block_input (ei_local->block_input) |
ei_local | 106 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 108 | drivers/net/8390.c | if ( ! ei_local) { |
ei_local | 115 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 117 | drivers/net/8390.c | ei_local->txing = 0; |
ei_local | 122 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 129 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 176 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
ei_local | 181 | drivers/net/8390.c | dev->name, ei_local->irqlock ? " during interrupt" : ""); |
ei_local | 190 | drivers/net/8390.c | ei_local->irqlock = 1; |
ei_local | 192 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 194 | drivers/net/8390.c | if (ei_local->tx1 == 0) { |
ei_local | 195 | drivers/net/8390.c | output_page = ei_local->tx_start_page; |
ei_local | 196 | drivers/net/8390.c | ei_local->tx1 = send_length; |
ei_local | 197 | drivers/net/8390.c | if (ei_debug && ei_local->tx2 > 0) |
ei_local | 199 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
ei_local | 200 | drivers/net/8390.c | ei_local->txing); |
ei_local | 201 | drivers/net/8390.c | } else if (ei_local->tx2 == 0) { |
ei_local | 202 | drivers/net/8390.c | output_page = ei_local->tx_start_page + 6; |
ei_local | 203 | drivers/net/8390.c | ei_local->tx2 = send_length; |
ei_local | 204 | drivers/net/8390.c | if (ei_debug && ei_local->tx1 > 0) |
ei_local | 206 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
ei_local | 207 | drivers/net/8390.c | ei_local->txing); |
ei_local | 215 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 223 | drivers/net/8390.c | if (! ei_local->txing) { |
ei_local | 225 | drivers/net/8390.c | if (output_page == ei_local->tx_start_page) |
ei_local | 226 | drivers/net/8390.c | ei_local->tx1 = -1, ei_local->lasttx = -1; |
ei_local | 228 | drivers/net/8390.c | ei_local->tx2 = -1, ei_local->lasttx = -2; |
ei_local | 229 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 231 | drivers/net/8390.c | ei_local->txqueue++; |
ei_local | 232 | drivers/net/8390.c | if (ei_local->tx1 && ei_local->tx2) |
ei_local | 237 | drivers/net/8390.c | ei_local->tx_start_page); |
ei_local | 238 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
ei_local | 248 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 262 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 269 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
ei_local | 270 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
ei_local | 273 | drivers/net/8390.c | printk(ei_local->irqlock |
ei_local | 307 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 308 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
ei_local | 309 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
ei_local | 310 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
ei_local | 336 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 340 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 341 | drivers/net/8390.c | ei_local->txqueue--; |
ei_local | 342 | drivers/net/8390.c | if (ei_local->tx1 < 0) { |
ei_local | 343 | drivers/net/8390.c | if (ei_local->lasttx != 1 && ei_local->lasttx != -1) |
ei_local | 345 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx1); |
ei_local | 346 | drivers/net/8390.c | ei_local->tx1 = 0; |
ei_local | 348 | drivers/net/8390.c | if (ei_local->tx2 > 0) { |
ei_local | 349 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
ei_local | 351 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 352 | drivers/net/8390.c | ei_local->tx2 = -1, |
ei_local | 353 | drivers/net/8390.c | ei_local->lasttx = 2; |
ei_local | 355 | drivers/net/8390.c | ei_local->lasttx = 20, ei_local->txing = 0; |
ei_local | 356 | drivers/net/8390.c | } else if (ei_local->tx2 < 0) { |
ei_local | 357 | drivers/net/8390.c | if (ei_local->lasttx != 2 && ei_local->lasttx != -2) |
ei_local | 359 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx2); |
ei_local | 360 | drivers/net/8390.c | ei_local->tx2 = 0; |
ei_local | 362 | drivers/net/8390.c | if (ei_local->tx1 > 0) { |
ei_local | 363 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
ei_local | 365 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 366 | drivers/net/8390.c | ei_local->tx1 = -1; |
ei_local | 367 | drivers/net/8390.c | ei_local->lasttx = 1; |
ei_local | 369 | drivers/net/8390.c | ei_local->lasttx = 10, ei_local->txing = 0; |
ei_local | 372 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
ei_local | 374 | drivers/net/8390.c | ei_local->txing = 0; |
ei_local | 380 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
ei_local | 382 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
ei_local | 384 | drivers/net/8390.c | ei_local->stat.collisions++; |
ei_local | 386 | drivers/net/8390.c | ei_local->stat.tx_aborted_errors++; |
ei_local | 388 | drivers/net/8390.c | ei_local->stat.tx_carrier_errors++; |
ei_local | 390 | drivers/net/8390.c | ei_local->stat.tx_fifo_errors++; |
ei_local | 392 | drivers/net/8390.c | ei_local->stat.tx_heartbeat_errors++; |
ei_local | 394 | drivers/net/8390.c | ei_local->stat.tx_window_errors++; |
ei_local | 404 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 408 | drivers/net/8390.c | int num_rx_pages = ei_local->stop_page-ei_local->rx_start_page; |
ei_local | 420 | drivers/net/8390.c | if (this_frame >= ei_local->stop_page) |
ei_local | 421 | drivers/net/8390.c | this_frame = ei_local->rx_start_page; |
ei_local | 424 | drivers/net/8390.c | if (ei_debug > 0 && this_frame != ei_local->current_page) |
ei_local | 426 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
ei_local | 447 | drivers/net/8390.c | ei_local->current_page = rxing_page; |
ei_local | 448 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
ei_local | 456 | drivers/net/8390.c | if (ei_local->stat.rx_packets != last_rx_bogosity) { |
ei_local | 458 | drivers/net/8390.c | ei_local->current_page = rxing_page; |
ei_local | 460 | drivers/net/8390.c | dev->name, ei_local->current_page, next_frame, |
ei_local | 462 | drivers/net/8390.c | last_rx_bogosity = ei_local->stat.rx_packets; |
ei_local | 463 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
ei_local | 468 | drivers/net/8390.c | dev->name, ei_local->stat.rx_packets); |
ei_local | 490 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
ei_local | 511 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
ei_local | 519 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
ei_local | 524 | drivers/net/8390.c | if (next_frame >= ei_local->stop_page) { |
ei_local | 526 | drivers/net/8390.c | next_frame = ei_local->rx_start_page; |
ei_local | 528 | drivers/net/8390.c | ei_local->current_page += 1 + ((pkt_len+4)>>8); |
ei_local | 529 | drivers/net/8390.c | ei_local->current_page = next_frame; |
ei_local | 547 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 554 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
ei_local | 582 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 585 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ei_local | 586 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ei_local | 587 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ei_local | 589 | drivers/net/8390.c | return &ei_local->stat; |
ei_local | 623 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 627 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
ei_local | 629 | drivers/net/8390.c | ei_local->pingpong = 1; |
ei_local | 677 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 679 | drivers/net/8390.c | int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS) : 0x48; |
ei_local | 691 | drivers/net/8390.c | outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR); |
ei_local | 692 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 693 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG); |
ei_local | 694 | drivers/net/8390.c | outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/ |
ei_local | 695 | drivers/net/8390.c | ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */ |
ei_local | 696 | drivers/net/8390.c | outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG); |
ei_local | 713 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG); |