tag | line | file | source code |
ei_local | 68 | drivers/net/8390.c | #define ei_reset_8390 (ei_local->reset_8390) |
ei_local | 69 | drivers/net/8390.c | #define ei_block_output (ei_local->block_output) |
ei_local | 70 | drivers/net/8390.c | #define ei_block_input (ei_local->block_input) |
ei_local | 107 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 109 | drivers/net/8390.c | if ( ! ei_local) { |
ei_local | 116 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 118 | drivers/net/8390.c | ei_local->txing = 0; |
ei_local | 123 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 130 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 177 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
ei_local | 182 | drivers/net/8390.c | dev->name, ei_local->irqlock ? " during interrupt" : ""); |
ei_local | 191 | drivers/net/8390.c | ei_local->irqlock = 1; |
ei_local | 193 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 195 | drivers/net/8390.c | if (ei_local->tx1 == 0) { |
ei_local | 196 | drivers/net/8390.c | output_page = ei_local->tx_start_page; |
ei_local | 197 | drivers/net/8390.c | ei_local->tx1 = send_length; |
ei_local | 198 | drivers/net/8390.c | if (ei_debug && ei_local->tx2 > 0) |
ei_local | 200 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
ei_local | 201 | drivers/net/8390.c | ei_local->txing); |
ei_local | 202 | drivers/net/8390.c | } else if (ei_local->tx2 == 0) { |
ei_local | 203 | drivers/net/8390.c | output_page = ei_local->tx_start_page + 6; |
ei_local | 204 | drivers/net/8390.c | ei_local->tx2 = send_length; |
ei_local | 205 | drivers/net/8390.c | if (ei_debug && ei_local->tx1 > 0) |
ei_local | 207 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
ei_local | 208 | drivers/net/8390.c | ei_local->txing); |
ei_local | 216 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 224 | drivers/net/8390.c | if (! ei_local->txing) { |
ei_local | 226 | drivers/net/8390.c | if (output_page == ei_local->tx_start_page) |
ei_local | 227 | drivers/net/8390.c | ei_local->tx1 = -1, ei_local->lasttx = -1; |
ei_local | 229 | drivers/net/8390.c | ei_local->tx2 = -1, ei_local->lasttx = -2; |
ei_local | 230 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 232 | drivers/net/8390.c | ei_local->txqueue++; |
ei_local | 233 | drivers/net/8390.c | if (ei_local->tx1 && ei_local->tx2) |
ei_local | 238 | drivers/net/8390.c | ei_local->tx_start_page); |
ei_local | 239 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
ei_local | 249 | drivers/net/8390.c | ei_local->irqlock = 0; |
ei_local | 263 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 270 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
ei_local | 271 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
ei_local | 274 | drivers/net/8390.c | printk(ei_local->irqlock |
ei_local | 308 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 309 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
ei_local | 310 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
ei_local | 311 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
ei_local | 337 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 341 | drivers/net/8390.c | if (ei_local->pingpong) { |
ei_local | 342 | drivers/net/8390.c | ei_local->txqueue--; |
ei_local | 343 | drivers/net/8390.c | if (ei_local->tx1 < 0) { |
ei_local | 344 | drivers/net/8390.c | if (ei_local->lasttx != 1 && ei_local->lasttx != -1) |
ei_local | 346 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx1); |
ei_local | 347 | drivers/net/8390.c | ei_local->tx1 = 0; |
ei_local | 349 | drivers/net/8390.c | if (ei_local->tx2 > 0) { |
ei_local | 350 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
ei_local | 352 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 353 | drivers/net/8390.c | ei_local->tx2 = -1, |
ei_local | 354 | drivers/net/8390.c | ei_local->lasttx = 2; |
ei_local | 356 | drivers/net/8390.c | ei_local->lasttx = 20, ei_local->txing = 0; |
ei_local | 357 | drivers/net/8390.c | } else if (ei_local->tx2 < 0) { |
ei_local | 358 | drivers/net/8390.c | if (ei_local->lasttx != 2 && ei_local->lasttx != -2) |
ei_local | 360 | drivers/net/8390.c | ei_local->name, ei_local->lasttx, ei_local->tx2); |
ei_local | 361 | drivers/net/8390.c | ei_local->tx2 = 0; |
ei_local | 363 | drivers/net/8390.c | if (ei_local->tx1 > 0) { |
ei_local | 364 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
ei_local | 366 | drivers/net/8390.c | ei_local->txing = 1; |
ei_local | 367 | drivers/net/8390.c | ei_local->tx1 = -1; |
ei_local | 368 | drivers/net/8390.c | ei_local->lasttx = 1; |
ei_local | 370 | drivers/net/8390.c | ei_local->lasttx = 10, ei_local->txing = 0; |
ei_local | 373 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
ei_local | 375 | drivers/net/8390.c | ei_local->txing = 0; |
ei_local | 381 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
ei_local | 383 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
ei_local | 385 | drivers/net/8390.c | ei_local->stat.collisions++; |
ei_local | 387 | drivers/net/8390.c | ei_local->stat.tx_aborted_errors++; |
ei_local | 389 | drivers/net/8390.c | ei_local->stat.tx_carrier_errors++; |
ei_local | 391 | drivers/net/8390.c | ei_local->stat.tx_fifo_errors++; |
ei_local | 393 | drivers/net/8390.c | ei_local->stat.tx_heartbeat_errors++; |
ei_local | 395 | drivers/net/8390.c | ei_local->stat.tx_window_errors++; |
ei_local | 405 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 409 | drivers/net/8390.c | int num_rx_pages = ei_local->stop_page-ei_local->rx_start_page; |
ei_local | 421 | drivers/net/8390.c | if (this_frame >= ei_local->stop_page) |
ei_local | 422 | drivers/net/8390.c | this_frame = ei_local->rx_start_page; |
ei_local | 425 | drivers/net/8390.c | if (ei_debug > 0 && this_frame != ei_local->current_page) |
ei_local | 427 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
ei_local | 448 | drivers/net/8390.c | ei_local->current_page = rxing_page; |
ei_local | 449 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
ei_local | 457 | drivers/net/8390.c | if (ei_local->stat.rx_packets != last_rx_bogosity) { |
ei_local | 459 | drivers/net/8390.c | ei_local->current_page = rxing_page; |
ei_local | 461 | drivers/net/8390.c | dev->name, ei_local->current_page, next_frame, |
ei_local | 463 | drivers/net/8390.c | last_rx_bogosity = ei_local->stat.rx_packets; |
ei_local | 464 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
ei_local | 469 | drivers/net/8390.c | dev->name, ei_local->stat.rx_packets); |
ei_local | 491 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
ei_local | 512 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
ei_local | 520 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
ei_local | 525 | drivers/net/8390.c | if (next_frame >= ei_local->stop_page) { |
ei_local | 527 | drivers/net/8390.c | next_frame = ei_local->rx_start_page; |
ei_local | 529 | drivers/net/8390.c | ei_local->current_page += 1 + ((pkt_len+4)>>8); |
ei_local | 530 | drivers/net/8390.c | ei_local->current_page = next_frame; |
ei_local | 548 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 555 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
ei_local | 583 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 586 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ei_local | 587 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ei_local | 588 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ei_local | 590 | drivers/net/8390.c | return &ei_local->stat; |
ei_local | 624 | drivers/net/8390.c | struct ei_device *ei_local; |
ei_local | 628 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
ei_local | 630 | drivers/net/8390.c | ei_local->pingpong = 1; |
ei_local | 678 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
ei_local | 680 | drivers/net/8390.c | int endcfg = ei_local->word16 ? (0x48 | ENDCFG_WTS) : 0x48; |
ei_local | 692 | drivers/net/8390.c | outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR); |
ei_local | 693 | drivers/net/8390.c | ei_local->tx1 = ei_local->tx2 = 0; |
ei_local | 694 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG); |
ei_local | 695 | drivers/net/8390.c | outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/ |
ei_local | 696 | drivers/net/8390.c | ei_local->current_page = ei_local->rx_start_page; /* assert boundary+1 */ |
ei_local | 697 | drivers/net/8390.c | outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG); |
ei_local | 714 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG); |