tag | line | file | source code |
lp | 113 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[0]; |
lp | 116 | drivers/char/lp.c | while (irq != lp->irq) { |
lp | 117 | drivers/char/lp.c | if (++lp >= lp_end) |
lp | 121 | drivers/char/lp.c | wake_up(&lp->lp_wait_q); |
lp | 130 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp | 136 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
lp | 139 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
lp | 171 | drivers/char/lp.c | interruptible_sleep_on(&lp->lp_wait_q); |
lp | 363 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp | 373 | drivers/char/lp.c | lp->lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
lp | 374 | drivers/char/lp.c | if (!lp->lp_buffer) |
lp | 393 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 394 | drivers/char/lp.c | lp->lp_buffer = NULL; |
lp | 401 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 402 | drivers/char/lp.c | lp->lp_buffer = NULL; |
lp | 478 | drivers/net/3c501.c | lp->stats.rx_dropped++; |
lp | 448 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 463 | drivers/net/3c507.c | if (lp->last_restart == lp->stats.tx_packets) { |
lp | 472 | drivers/net/3c507.c | lp->last_restart = lp->stats.tx_packets; |
lp | 525 | drivers/net/3c507.c | struct net_local *lp; |
lp | 537 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
lp | 550 | drivers/net/3c507.c | while (lp->tx_reap != lp->tx_head) { |
lp | 551 | drivers/net/3c507.c | unsigned short tx_status = shmem[lp->tx_reap>>1]; |
lp | 554 | drivers/net/3c507.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 558 | drivers/net/3c507.c | lp->stats.tx_packets++; |
lp | 559 | drivers/net/3c507.c | lp->stats.collisions += tx_status & 0xf; |
lp | 563 | drivers/net/3c507.c | lp->stats.tx_errors++; |
lp | 564 | drivers/net/3c507.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 565 | drivers/net/3c507.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 566 | drivers/net/3c507.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 567 | drivers/net/3c507.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 570 | drivers/net/3c507.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 571 | drivers/net/3c507.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 572 | drivers/net/3c507.c | if (lp->tx_reap > RX_BUF_START - TX_BUF_SIZE) |
lp | 573 | drivers/net/3c507.c | lp->tx_reap = TX_BUF_START; |
lp | 580 | drivers/net/3c507.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 652 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 656 | drivers/net/3c507.c | return &lp->stats; |
lp | 663 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 666 | drivers/net/3c507.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 692 | drivers/net/3c507.c | lp->rx_tail = cur_rxbuf; |
lp | 699 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
lp | 701 | drivers/net/3c507.c | *write_ptr++ = lp->rx_head; /* Link */ |
lp | 708 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 730 | drivers/net/3c507.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 731 | drivers/net/3c507.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 766 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 768 | drivers/net/3c507.c | ushort tx_block = lp->tx_head; |
lp | 792 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
lp | 793 | drivers/net/3c507.c | lp->tx_cmd_link = tx_block + 20; |
lp | 796 | drivers/net/3c507.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 797 | drivers/net/3c507.c | if (lp->tx_head > RX_BUF_START - TX_BUF_SIZE) |
lp | 798 | drivers/net/3c507.c | lp->tx_head = TX_BUF_START; |
lp | 802 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
lp | 805 | drivers/net/3c507.c | if (lp->tx_head != lp->tx_reap) |
lp | 812 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 814 | drivers/net/3c507.c | ushort rx_head = lp->rx_head; |
lp | 815 | drivers/net/3c507.c | ushort rx_tail = lp->rx_tail; |
lp | 835 | drivers/net/3c507.c | lp->stats.rx_errors++; |
lp | 836 | drivers/net/3c507.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 837 | drivers/net/3c507.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 838 | drivers/net/3c507.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 839 | drivers/net/3c507.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 840 | drivers/net/3c507.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 851 | drivers/net/3c507.c | lp->stats.rx_dropped++; |
lp | 868 | drivers/net/3c507.c | lp->stats.rx_dropped++; |
lp | 872 | drivers/net/3c507.c | lp->stats.rx_packets++; |
lp | 887 | drivers/net/3c507.c | lp->rx_head = rx_head; |
lp | 888 | drivers/net/3c507.c | lp->rx_tail = rx_tail; |
lp | 357 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 439 | drivers/net/3c509.c | if (tx_status & 0x38) lp->stats.tx_aborted_errors++; |
lp | 510 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 515 | drivers/net/3c509.c | return &lp->stats; |
lp | 525 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 533 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
lp | 534 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
lp | 536 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
lp | 537 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
lp | 538 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
lp | 539 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
lp | 540 | drivers/net/3c509.c | lp->stats.rx_packets += inb(ioaddr + 7); |
lp | 554 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 564 | drivers/net/3c509.c | lp->stats.rx_errors++; |
lp | 566 | drivers/net/3c509.c | case 0x2000: lp->stats.rx_over_errors++; break; |
lp | 567 | drivers/net/3c509.c | case 0x2C00: lp->stats.rx_length_errors++; break; |
lp | 568 | drivers/net/3c509.c | case 0x3400: lp->stats.rx_crc_errors++; break; |
lp | 569 | drivers/net/3c509.c | case 0x2400: lp->stats.rx_length_errors++; break; |
lp | 570 | drivers/net/3c509.c | case 0x3000: lp->stats.rx_frame_errors++; break; |
lp | 571 | drivers/net/3c509.c | case 0x0800: lp->stats.rx_frame_errors++; break; |
lp | 622 | drivers/net/3c509.c | lp->stats.rx_dropped++; |
lp | 508 | drivers/net/8390.c | lp->stats.rx_dropped++; |
lp | 329 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 358 | drivers/net/at1700.c | lp->open_time = jiffies; |
lp | 370 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 386 | drivers/net/at1700.c | lp->stats.tx_errors++; |
lp | 431 | drivers/net/at1700.c | lp->tx_queue++; |
lp | 432 | drivers/net/at1700.c | lp->tx_queue_len += length + 2; |
lp | 434 | drivers/net/at1700.c | if (lp->tx_started == 0) { |
lp | 436 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
lp | 437 | drivers/net/at1700.c | lp->tx_queue = 0; |
lp | 438 | drivers/net/at1700.c | lp->tx_queue_len = 0; |
lp | 440 | drivers/net/at1700.c | lp->tx_started = 1; |
lp | 441 | drivers/net/at1700.c | } else if (lp->tx_queue_len < 4096 - 1502) /* Room for one more packet? */ |
lp | 460 | drivers/net/at1700.c | struct net_local *lp; |
lp | 470 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
lp | 482 | drivers/net/at1700.c | lp->stats.tx_packets++; |
lp | 483 | drivers/net/at1700.c | if (lp->tx_queue) { |
lp | 484 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
lp | 485 | drivers/net/at1700.c | lp->tx_queue = 0; |
lp | 486 | drivers/net/at1700.c | lp->tx_queue_len = 0; |
lp | 491 | drivers/net/at1700.c | lp->tx_started = 0; |
lp | 506 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 524 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 525 | drivers/net/at1700.c | if (status & 0x08) lp->stats.rx_length_errors++; |
lp | 526 | drivers/net/at1700.c | if (status & 0x04) lp->stats.rx_frame_errors++; |
lp | 527 | drivers/net/at1700.c | if (status & 0x02) lp->stats.rx_crc_errors++; |
lp | 528 | drivers/net/at1700.c | if (status & 0x01) lp->stats.rx_over_errors++; |
lp | 539 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 547 | drivers/net/at1700.c | lp->stats.rx_dropped++; |
lp | 572 | drivers/net/at1700.c | lp->stats.rx_dropped++; |
lp | 576 | drivers/net/at1700.c | lp->stats.rx_packets++; |
lp | 603 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 606 | drivers/net/at1700.c | lp->open_time = 0; |
lp | 627 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 633 | drivers/net/at1700.c | return &lp->stats; |
lp | 475 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 488 | drivers/net/eexpress.c | lp->stats.tx_errors++; |
lp | 490 | drivers/net/eexpress.c | if (lp->last_restart == lp->stats.tx_packets) { |
lp | 499 | drivers/net/eexpress.c | lp->last_restart = lp->stats.tx_packets; |
lp | 541 | drivers/net/eexpress.c | lp->stats.tx_aborted_errors++; |
lp | 553 | drivers/net/eexpress.c | struct net_local *lp; |
lp | 564 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
lp | 576 | drivers/net/eexpress.c | while (lp->tx_reap != lp->tx_head) { /* if (status & 0x8000) */ |
lp | 578 | drivers/net/eexpress.c | outw(lp->tx_reap, ioaddr + READ_PTR); |
lp | 581 | drivers/net/eexpress.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 585 | drivers/net/eexpress.c | lp->stats.tx_packets++; |
lp | 586 | drivers/net/eexpress.c | lp->stats.collisions += tx_status & 0xf; |
lp | 590 | drivers/net/eexpress.c | lp->stats.tx_errors++; |
lp | 591 | drivers/net/eexpress.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 592 | drivers/net/eexpress.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 593 | drivers/net/eexpress.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 594 | drivers/net/eexpress.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 597 | drivers/net/eexpress.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 598 | drivers/net/eexpress.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 599 | drivers/net/eexpress.c | if (lp->tx_reap > RX_BUF_START - TX_BUF_SIZE) |
lp | 600 | drivers/net/eexpress.c | lp->tx_reap = TX_BUF_START; |
lp | 607 | drivers/net/eexpress.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 678 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 682 | drivers/net/eexpress.c | return &lp->stats; |
lp | 761 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 781 | drivers/net/eexpress.c | lp->tx_cmd_link = DUMP_DATA + 4; |
lp | 783 | drivers/net/eexpress.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 785 | drivers/net/eexpress.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 820 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 823 | drivers/net/eexpress.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 847 | drivers/net/eexpress.c | lp->rx_tail = cur_rxbuf; |
lp | 853 | drivers/net/eexpress.c | outw(lp->rx_tail + 2, ioaddr + WRITE_PTR); |
lp | 855 | drivers/net/eexpress.c | outw(lp->rx_head, ioaddr); /* Link */ |
lp | 861 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 863 | drivers/net/eexpress.c | short tx_block = lp->tx_head; |
lp | 888 | drivers/net/eexpress.c | outw(lp->tx_cmd_link, ioaddr + WRITE_PTR); |
lp | 890 | drivers/net/eexpress.c | lp->tx_cmd_link = tx_block + 20; |
lp | 893 | drivers/net/eexpress.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 894 | drivers/net/eexpress.c | if (lp->tx_head > RX_BUF_START - TX_BUF_SIZE) |
lp | 895 | drivers/net/eexpress.c | lp->tx_head = TX_BUF_START; |
lp | 900 | drivers/net/eexpress.c | tx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS)); |
lp | 903 | drivers/net/eexpress.c | if (lp->tx_head != lp->tx_reap) |
lp | 910 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 913 | drivers/net/eexpress.c | short rx_head = lp->rx_head; |
lp | 914 | drivers/net/eexpress.c | short rx_tail = lp->rx_tail; |
lp | 938 | drivers/net/eexpress.c | lp->stats.rx_errors++; |
lp | 939 | drivers/net/eexpress.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 940 | drivers/net/eexpress.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 941 | drivers/net/eexpress.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 942 | drivers/net/eexpress.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 943 | drivers/net/eexpress.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 954 | drivers/net/eexpress.c | lp->stats.rx_dropped++; |
lp | 972 | drivers/net/eexpress.c | lp->stats.rx_dropped++; |
lp | 976 | drivers/net/eexpress.c | lp->stats.rx_packets++; |
lp | 1013 | drivers/net/eexpress.c | lp->rx_head = rx_head; |
lp | 1014 | drivers/net/eexpress.c | lp->rx_tail = rx_tail; |
lp | 244 | drivers/net/lance.c | struct lance_private *lp; |
lp | 279 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
lp | 280 | drivers/net/lance.c | lp->rx_buffs = (long)dev->priv + sizeof(struct lance_private); |
lp | 281 | drivers/net/lance.c | lp->tx_bounce_buffs = (char (*)[PKT_BUF_SZ]) |
lp | 282 | drivers/net/lance.c | (lp->rx_buffs + PKT_BUF_SZ*RX_RING_SIZE); |
lp | 286 | drivers/net/lance.c | if ((int)(lp->rx_ring) & 0x07) { |
lp | 293 | drivers/net/lance.c | lp->old_lance = (inw(ioaddr+LANCE_DATA) != 0x3003); |
lp | 296 | drivers/net/lance.c | printk(lp->old_lance ? " original LANCE (%04x)" : " PCnet-ISA LANCE (%04x)", |
lp | 300 | drivers/net/lance.c | lp->init_block.mode = 0x0003; /* Disable Rx and Tx. */ |
lp | 302 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 303 | drivers/net/lance.c | lp->init_block.filter[0] = 0x00000000; |
lp | 304 | drivers/net/lance.c | lp->init_block.filter[1] = 0x00000000; |
lp | 305 | drivers/net/lance.c | lp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS; |
lp | 306 | drivers/net/lance.c | lp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS; |
lp | 309 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
lp | 311 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
lp | 348 | drivers/net/lance.c | if (! lp->old_lance) { |
lp | 374 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 396 | drivers/net/lance.c | if (lp->old_lance) |
lp | 399 | drivers/net/lance.c | if (! lp->old_lance) { |
lp | 407 | drivers/net/lance.c | dev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring, |
lp | 408 | drivers/net/lance.c | (int) &lp->init_block); |
lp | 413 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
lp | 415 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
lp | 434 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
lp | 443 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 446 | drivers/net/lance.c | lp->cur_rx = lp->cur_tx = 0; |
lp | 447 | drivers/net/lance.c | lp->dirty_rx = lp->dirty_tx = 0; |
lp | 450 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
lp | 451 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
lp | 456 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
lp | 459 | drivers/net/lance.c | lp->init_block.mode = 0x0000; |
lp | 461 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 462 | drivers/net/lance.c | lp->init_block.filter[0] = 0x00000000; |
lp | 463 | drivers/net/lance.c | lp->init_block.filter[1] = 0x00000000; |
lp | 464 | drivers/net/lance.c | lp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS; |
lp | 465 | drivers/net/lance.c | lp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS; |
lp | 471 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 484 | drivers/net/lance.c | lp->stats.tx_errors++; |
lp | 489 | drivers/net/lance.c | lp->dirty_tx, lp->cur_tx, lp->cur_rx); |
lp | 492 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
lp | 493 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
lp | 496 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
lp | 497 | drivers/net/lance.c | lp->tx_ring[i].misc); |
lp | 541 | drivers/net/lance.c | entry = lp->cur_tx & TX_RING_MOD_MASK; |
lp | 547 | drivers/net/lance.c | if (lp->old_lance) { |
lp | 548 | drivers/net/lance.c | lp->tx_ring[entry].length = |
lp | 551 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
lp | 553 | drivers/net/lance.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 561 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb+1, skb->len); |
lp | 562 | drivers/net/lance.c | lp->tx_ring[entry].base = |
lp | 563 | drivers/net/lance.c | (int)(lp->tx_bounce_buffs + entry) | 0x83000000; |
lp | 567 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb+1) | 0x83000000; |
lp | 569 | drivers/net/lance.c | lp->cur_tx++; |
lp | 577 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
lp | 589 | drivers/net/lance.c | struct lance_private *lp; |
lp | 598 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
lp | 618 | drivers/net/lance.c | int dirty_tx = lp->dirty_tx; |
lp | 620 | drivers/net/lance.c | if (dirty_tx == lp->cur_tx - TX_RING_SIZE |
lp | 627 | drivers/net/lance.c | while (dirty_tx < lp->cur_tx) { |
lp | 629 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
lp | 635 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
lp | 639 | drivers/net/lance.c | int err_status = lp->tx_ring[entry].misc; |
lp | 640 | drivers/net/lance.c | lp->stats.tx_errors++; |
lp | 641 | drivers/net/lance.c | if (err_status & 0x0400) lp->stats.tx_aborted_errors++; |
lp | 642 | drivers/net/lance.c | if (err_status & 0x0800) lp->stats.tx_carrier_errors++; |
lp | 643 | drivers/net/lance.c | if (err_status & 0x1000) lp->stats.tx_window_errors++; |
lp | 644 | drivers/net/lance.c | if (err_status & 0x4000) lp->stats.tx_fifo_errors++; |
lp | 647 | drivers/net/lance.c | lp->stats.collisions++; |
lp | 649 | drivers/net/lance.c | lp->stats.tx_packets++; |
lp | 654 | drivers/net/lance.c | if (databuff >= (void*)(&lp->tx_bounce_buffs[TX_RING_SIZE]) |
lp | 655 | drivers/net/lance.c | || databuff < (void*)(lp->tx_bounce_buffs)) { |
lp | 663 | drivers/net/lance.c | lp->dirty_tx = dirty_tx; |
lp | 666 | drivers/net/lance.c | if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { |
lp | 668 | drivers/net/lance.c | dirty_tx, lp->cur_tx); |
lp | 669 | drivers/net/lance.c | lp->dirty_tx += TX_RING_SIZE; |
lp | 675 | drivers/net/lance.c | if (csr0 & 0x4000) lp->stats.tx_errors++; |
lp | 676 | drivers/net/lance.c | if (csr0 & 0x1000) lp->stats.rx_errors++; |
lp | 695 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 696 | drivers/net/lance.c | int entry = lp->cur_rx & RX_RING_MOD_MASK; |
lp | 699 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
lp | 700 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
lp | 703 | drivers/net/lance.c | lp->stats.rx_errors++; |
lp | 704 | drivers/net/lance.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 705 | drivers/net/lance.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 706 | drivers/net/lance.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 707 | drivers/net/lance.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 710 | drivers/net/lance.c | short pkt_len = lp->rx_ring[entry].msg_length; |
lp | 717 | drivers/net/lance.c | lp->stats.rx_dropped++; /* Really, deferred. */ |
lp | 725 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
lp | 733 | drivers/net/lance.c | lp->stats.rx_dropped++; |
lp | 737 | drivers/net/lance.c | lp->stats.rx_packets++; |
lp | 740 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
lp | 741 | drivers/net/lance.c | entry = (++lp->cur_rx) & RX_RING_MOD_MASK; |
lp | 754 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 760 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 785 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 792 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 796 | drivers/net/lance.c | return &lp->stats; |
lp | 262 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 282 | drivers/net/skeleton.c | lp->open_time = jiffies; |
lp | 293 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 343 | drivers/net/skeleton.c | lp->stats.tx_aborted_errors++; |
lp | 355 | drivers/net/skeleton.c | struct net_local *lp; |
lp | 365 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
lp | 374 | drivers/net/skeleton.c | lp->stats.tx_packets++; |
lp | 380 | drivers/net/skeleton.c | lp->stats.tx_window_errors++; |
lp | 391 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 403 | drivers/net/skeleton.c | lp->stats.rx_errors++; |
lp | 404 | drivers/net/skeleton.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 405 | drivers/net/skeleton.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 406 | drivers/net/skeleton.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 407 | drivers/net/skeleton.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 416 | drivers/net/skeleton.c | lp->stats.rx_dropped++; |
lp | 436 | drivers/net/skeleton.c | lp->stats.rx_dropped++; |
lp | 440 | drivers/net/skeleton.c | lp->stats.rx_packets++; |
lp | 454 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 457 | drivers/net/skeleton.c | lp->open_time = 0; |
lp | 485 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 490 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
lp | 493 | drivers/net/skeleton.c | return &lp->stats; |
lp | 75 | fs/xiafs/bitmap.c | register long * lp; |
lp | 77 | fs/xiafs/bitmap.c | lp=(long *)bh->b_data; |
lp | 79 | fs/xiafs/bitmap.c | *lp++=0; |
lp | 234 | fs/xiafs/inode.c | dt_getblk(struct inode * inode, u_long *lp, int create, u_long prev_addr) |
lp | 240 | fs/xiafs/inode.c | if ((tmp=*lp)) { |
lp | 242 | fs/xiafs/inode.c | if (tmp == *lp) |
lp | 253 | fs/xiafs/inode.c | if (*lp) { |
lp | 258 | fs/xiafs/inode.c | *lp = tmp; |
lp | 268 | fs/xiafs/inode.c | u_long *lp; |
lp | 281 | fs/xiafs/inode.c | lp = nr + (u_long *) bh->b_data; |
lp | 283 | fs/xiafs/inode.c | if ((tmp=*lp)) { |
lp | 285 | fs/xiafs/inode.c | if (tmp == *lp) { |
lp | 302 | fs/xiafs/inode.c | if (*lp) { |
lp | 307 | fs/xiafs/inode.c | *lp = tmp; |
lp | 41 | fs/xiafs/truncate.c | u_long * lp; |
lp | 50 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
lp | 51 | fs/xiafs/truncate.c | if (!(tmp = *lp)) |
lp | 58 | fs/xiafs/truncate.c | if ((bh && bh->b_count != 1) || tmp != *lp) |
lp | 61 | fs/xiafs/truncate.c | *lp = 0; |
lp | 71 | fs/xiafs/truncate.c | static int trunc_indirect(struct inode * inode, int addr_off, u_long * lp) |
lp | 81 | fs/xiafs/truncate.c | if ( !(tmp=*lp) ) |
lp | 84 | fs/xiafs/truncate.c | if (tmp != *lp) { |
lp | 89 | fs/xiafs/truncate.c | *lp = 0; |
lp | 120 | fs/xiafs/truncate.c | tmp = *lp; |
lp | 121 | fs/xiafs/truncate.c | *lp = 0; |
lp | 138 | fs/xiafs/truncate.c | u_long * dindp, * lp; |
lp | 141 | fs/xiafs/truncate.c | lp = &(inode->u.xiafs_i.i_dind_zone); |
lp | 142 | fs/xiafs/truncate.c | if (!(tmp = *lp)) |
lp | 145 | fs/xiafs/truncate.c | if (tmp != *lp) { |
lp | 150 | fs/xiafs/truncate.c | *lp = 0; |
lp | 169 | fs/xiafs/truncate.c | tmp = *lp; |
lp | 170 | fs/xiafs/truncate.c | *lp = 0; |
lp | 40 | kernel/ldt.c | unsigned long *lp; |
lp | 75 | kernel/ldt.c | lp = (unsigned long *) ¤t->ldt[ldt_info.entry_number]; |
lp | 76 | kernel/ldt.c | *lp = ((ldt_info.base_addr & 0x0000ffff) << 16) | |
lp | 78 | kernel/ldt.c | *(lp+1) = (ldt_info.base_addr & 0xff000000) | |
lp | 701 | kernel/sys.c | unsigned long *lp, *lpend, *dest; |
lp | 733 | kernel/sys.c | lp = (unsigned long *) &r; |
lp | 736 | kernel/sys.c | for (; lp < lpend; lp++, dest++) |
lp | 737 | kernel/sys.c | put_fs_long(*lp, dest); |
lp | 128 | net/inet/protocol.c | struct inet_protocol *lp = NULL; |
lp | 149 | net/inet/protocol.c | if (p->copy == 0 && lp != NULL) lp->copy = 0; |
lp | 155 | net/inet/protocol.c | lp = p; |