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 | 364 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp | 374 | drivers/char/lp.c | lp->lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
lp | 375 | drivers/char/lp.c | if (!lp->lp_buffer) |
lp | 394 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 395 | drivers/char/lp.c | lp->lp_buffer = NULL; |
lp | 402 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 403 | drivers/char/lp.c | lp->lp_buffer = NULL; |
lp | 429 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 444 | drivers/net/3c507.c | if (lp->last_restart == lp->stats.tx_packets) { |
lp | 453 | drivers/net/3c507.c | lp->last_restart = lp->stats.tx_packets; |
lp | 497 | drivers/net/3c507.c | struct net_local *lp; |
lp | 509 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
lp | 522 | drivers/net/3c507.c | while (lp->tx_reap != lp->tx_head) { |
lp | 523 | drivers/net/3c507.c | unsigned short tx_status = shmem[lp->tx_reap>>1]; |
lp | 526 | drivers/net/3c507.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 530 | drivers/net/3c507.c | lp->stats.tx_packets++; |
lp | 531 | drivers/net/3c507.c | lp->stats.collisions += tx_status & 0xf; |
lp | 535 | drivers/net/3c507.c | lp->stats.tx_errors++; |
lp | 536 | drivers/net/3c507.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 537 | drivers/net/3c507.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 538 | drivers/net/3c507.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 539 | drivers/net/3c507.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 542 | drivers/net/3c507.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 543 | drivers/net/3c507.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 544 | drivers/net/3c507.c | if (lp->tx_reap > RX_BUF_START - TX_BUF_SIZE) |
lp | 545 | drivers/net/3c507.c | lp->tx_reap = TX_BUF_START; |
lp | 552 | drivers/net/3c507.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 624 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 628 | drivers/net/3c507.c | return &lp->stats; |
lp | 635 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 639 | drivers/net/3c507.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 665 | drivers/net/3c507.c | lp->rx_tail = cur_rxbuf; |
lp | 672 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
lp | 674 | drivers/net/3c507.c | *write_ptr++ = lp->rx_head; /* Link */ |
lp | 681 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 704 | drivers/net/3c507.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 705 | drivers/net/3c507.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 740 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 742 | drivers/net/3c507.c | ushort tx_block = lp->tx_head; |
lp | 766 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
lp | 767 | drivers/net/3c507.c | lp->tx_cmd_link = tx_block + 20; |
lp | 770 | drivers/net/3c507.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 771 | drivers/net/3c507.c | if (lp->tx_head > RX_BUF_START - TX_BUF_SIZE) |
lp | 772 | drivers/net/3c507.c | lp->tx_head = TX_BUF_START; |
lp | 776 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
lp | 779 | drivers/net/3c507.c | if (lp->tx_head != lp->tx_reap) |
lp | 786 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 788 | drivers/net/3c507.c | ushort rx_head = lp->rx_head; |
lp | 789 | drivers/net/3c507.c | ushort rx_tail = lp->rx_tail; |
lp | 809 | drivers/net/3c507.c | lp->stats.rx_errors++; |
lp | 810 | drivers/net/3c507.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 811 | drivers/net/3c507.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 812 | drivers/net/3c507.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 813 | drivers/net/3c507.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 814 | drivers/net/3c507.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 823 | drivers/net/3c507.c | lp->stats.rx_dropped++; |
lp | 833 | drivers/net/3c507.c | lp->stats.rx_packets++; |
lp | 848 | drivers/net/3c507.c | lp->rx_head = rx_head; |
lp | 849 | drivers/net/3c507.c | lp->rx_tail = rx_tail; |
lp | 328 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 402 | drivers/net/3c509.c | if (tx_status & 0x38) lp->stats.tx_aborted_errors++; |
lp | 475 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 480 | drivers/net/3c509.c | return &lp->stats; |
lp | 490 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 498 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
lp | 499 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
lp | 501 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
lp | 502 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
lp | 503 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
lp | 504 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
lp | 505 | drivers/net/3c509.c | lp->stats.rx_packets += inb(ioaddr + 7); |
lp | 519 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 529 | drivers/net/3c509.c | lp->stats.rx_errors++; |
lp | 531 | drivers/net/3c509.c | case 0x0000: lp->stats.rx_over_errors++; break; |
lp | 532 | drivers/net/3c509.c | case 0x0800: lp->stats.rx_length_errors++; break; |
lp | 533 | drivers/net/3c509.c | case 0x1000: lp->stats.rx_frame_errors++; break; |
lp | 534 | drivers/net/3c509.c | case 0x1800: lp->stats.rx_length_errors++; break; |
lp | 535 | drivers/net/3c509.c | case 0x2000: lp->stats.rx_frame_errors++; break; |
lp | 536 | drivers/net/3c509.c | case 0x2800: lp->stats.rx_crc_errors++; break; |
lp | 584 | drivers/net/3c509.c | lp->stats.rx_dropped++; |
lp | 304 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 333 | drivers/net/at1700.c | lp->open_time = jiffies; |
lp | 345 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 361 | drivers/net/at1700.c | lp->stats.tx_errors++; |
lp | 393 | drivers/net/at1700.c | lp->tx_queue++; |
lp | 394 | drivers/net/at1700.c | lp->tx_queue_len += length + 2; |
lp | 396 | drivers/net/at1700.c | if (lp->tx_started == 0) { |
lp | 398 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
lp | 399 | drivers/net/at1700.c | lp->tx_queue = 0; |
lp | 400 | drivers/net/at1700.c | lp->tx_queue_len = 0; |
lp | 402 | drivers/net/at1700.c | lp->tx_started = 1; |
lp | 403 | drivers/net/at1700.c | } else if (lp->tx_queue_len < 4096 - 1502) /* Room for one more packet? */ |
lp | 422 | drivers/net/at1700.c | struct net_local *lp; |
lp | 432 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
lp | 444 | drivers/net/at1700.c | lp->stats.tx_packets++; |
lp | 445 | drivers/net/at1700.c | if (lp->tx_queue) { |
lp | 446 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
lp | 447 | drivers/net/at1700.c | lp->tx_queue = 0; |
lp | 448 | drivers/net/at1700.c | lp->tx_queue_len = 0; |
lp | 453 | drivers/net/at1700.c | lp->tx_started = 0; |
lp | 468 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 486 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 487 | drivers/net/at1700.c | if (status & 0x08) lp->stats.rx_length_errors++; |
lp | 488 | drivers/net/at1700.c | if (status & 0x04) lp->stats.rx_frame_errors++; |
lp | 489 | drivers/net/at1700.c | if (status & 0x02) lp->stats.rx_crc_errors++; |
lp | 490 | drivers/net/at1700.c | if (status & 0x01) lp->stats.rx_over_errors++; |
lp | 500 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 508 | drivers/net/at1700.c | lp->stats.rx_dropped++; |
lp | 525 | drivers/net/at1700.c | lp->stats.rx_packets++; |
lp | 552 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 555 | drivers/net/at1700.c | lp->open_time = 0; |
lp | 576 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 582 | drivers/net/at1700.c | return &lp->stats; |
lp | 237 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 238 | drivers/net/atp.c | lp->addr_mode = CMR2h_Normal; |
lp | 339 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 348 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
lp | 365 | drivers/net/atp.c | lp->tx_unit_busy = 0; |
lp | 366 | drivers/net/atp.c | lp->pac_cnt_in_tx_buf = 0; |
lp | 367 | drivers/net/atp.c | lp->saved_tx_size = 0; |
lp | 413 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 425 | drivers/net/atp.c | lp->stats.tx_errors++; |
lp | 459 | drivers/net/atp.c | lp->pac_cnt_in_tx_buf++; |
lp | 460 | drivers/net/atp.c | if (lp->tx_unit_busy == 0) { |
lp | 462 | drivers/net/atp.c | lp->saved_tx_size = 0; /* Redundent */ |
lp | 463 | drivers/net/atp.c | lp->re_tx = 0; |
lp | 464 | drivers/net/atp.c | lp->tx_unit_busy = 1; |
lp | 466 | drivers/net/atp.c | lp->saved_tx_size = length; |
lp | 487 | drivers/net/atp.c | struct net_local *lp; |
lp | 498 | drivers/net/atp.c | lp = (struct net_local *)dev->priv; |
lp | 521 | drivers/net/atp.c | lp->stats.rx_over_errors++; |
lp | 527 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
lp | 541 | drivers/net/atp.c | lp->stats.collisions++; |
lp | 542 | drivers/net/atp.c | if (++lp->re_tx > 15) { |
lp | 543 | drivers/net/atp.c | lp->stats.tx_aborted_errors++; |
lp | 552 | drivers/net/atp.c | lp->stats.tx_packets++; |
lp | 553 | drivers/net/atp.c | lp->pac_cnt_in_tx_buf--; |
lp | 554 | drivers/net/atp.c | if ( lp->saved_tx_size) { |
lp | 555 | drivers/net/atp.c | trigger_send(ioaddr, lp->saved_tx_size); |
lp | 556 | drivers/net/atp.c | lp->saved_tx_size = 0; |
lp | 557 | drivers/net/atp.c | lp->re_tx = 0; |
lp | 559 | drivers/net/atp.c | lp->tx_unit_busy = 0; |
lp | 571 | drivers/net/atp.c | lp->stats.rx_missed_errors++; |
lp | 605 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 620 | drivers/net/atp.c | lp->stats.rx_errors++; |
lp | 635 | drivers/net/atp.c | lp->stats.rx_dropped++; |
lp | 653 | drivers/net/atp.c | lp->stats.rx_packets++; |
lp | 684 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 691 | drivers/net/atp.c | lp->addr_mode = CMR2h_OFF; |
lp | 710 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 711 | drivers/net/atp.c | return &lp->stats; |
lp | 723 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 725 | drivers/net/atp.c | lp->addr_mode = num_addrs ? CMR2h_PROMISC : CMR2h_Normal; |
lp | 726 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
lp | 401 | drivers/net/depca.c | struct depca_private *lp; |
lp | 541 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
lp | 548 | drivers/net/depca.c | lp->rx_ring = (struct depca_rx_head *)mem_start; |
lp | 551 | drivers/net/depca.c | lp->tx_ring = (struct depca_tx_head *)mem_start; |
lp | 554 | drivers/net/depca.c | lp->dma_buffs = mem_start & 0x00ffffff; |
lp | 560 | drivers/net/depca.c | memset(lp->rx_ring, 0, sizeof(struct depca_rx_head)*j); |
lp | 561 | drivers/net/depca.c | memset(lp->tx_ring, 0, sizeof(struct depca_tx_head)*j); |
lp | 564 | drivers/net/depca.c | if ((int)(lp->rx_ring) & 0x07) { |
lp | 572 | drivers/net/depca.c | lp->ringSize = j; |
lp | 573 | drivers/net/depca.c | if (lp->ringSize > RING_SIZE) lp->ringSize = RING_SIZE; |
lp | 574 | drivers/net/depca.c | lp->rmask = lp->ringSize - 1; |
lp | 580 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
lp | 583 | drivers/net/depca.c | lp->rlen = (unsigned long)(i << 29); |
lp | 598 | drivers/net/depca.c | lp->depca_na = depca_na; |
lp | 660 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 673 | drivers/net/depca.c | depca_na=lp->depca_na; |
lp | 686 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring,(long)lp->tx_ring); |
lp | 688 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
lp | 689 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)&lp->rx_ring[i].base, |
lp | 690 | drivers/net/depca.c | (long)&lp->tx_ring[i].base); |
lp | 693 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
lp | 694 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring[i].base, |
lp | 695 | drivers/net/depca.c | (long)lp->tx_ring[i].base); |
lp | 697 | drivers/net/depca.c | printk("Initialisation block at 0x%8.8lx\n",(long)&lp->init_block); |
lp | 698 | drivers/net/depca.c | printk("\tmode: 0x%4.4x\n",lp->init_block.mode); |
lp | 701 | drivers/net/depca.c | printk("%2.2x:",(short)lp->init_block.phys_addr[i]); |
lp | 705 | drivers/net/depca.c | printk("%2.2x",(short)lp->init_block.filter[i]); |
lp | 707 | drivers/net/depca.c | printk("\n\trx_ring at: 0x%8.8lx\n",(long)lp->init_block.rx_ring); |
lp | 708 | drivers/net/depca.c | printk("\ttx_ring at: 0x%8.8lx\n",(long)lp->init_block.tx_ring); |
lp | 709 | drivers/net/depca.c | printk("dma_buffs: 0x%8.8lx\n",(long)lp->dma_buffs); |
lp | 711 | drivers/net/depca.c | (short)lp->ringSize, |
lp | 712 | drivers/net/depca.c | (char)lp->rmask, |
lp | 713 | drivers/net/depca.c | (long)lp->rlen); |
lp | 748 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 751 | drivers/net/depca.c | lp->init_block.mode = DTX | DRX; /* Disable Rx and Tx. */ |
lp | 752 | drivers/net/depca.c | lp->cur_rx = lp->cur_tx = 0; |
lp | 753 | drivers/net/depca.c | lp->dirty_rx = lp->dirty_tx = 0; |
lp | 756 | drivers/net/depca.c | for (i = 0; i < lp->ringSize; i++) { |
lp | 757 | drivers/net/depca.c | lp->rx_ring[i].base = (lp->dma_buffs + i*PKT_BUF_SZ) | R_OWN; |
lp | 758 | drivers/net/depca.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
lp | 759 | drivers/net/depca.c | lp->tx_ring[i].base = (lp->dma_buffs + (i+lp->ringSize) * PKT_BUF_SZ) & |
lp | 765 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 768 | drivers/net/depca.c | lp->init_block.filter[i] = 0x0000; |
lp | 770 | drivers/net/depca.c | lp->init_block.rx_ring = (unsigned long)lp->rx_ring | lp->rlen; |
lp | 771 | drivers/net/depca.c | lp->init_block.tx_ring = (unsigned long)lp->tx_ring | lp->rlen; |
lp | 773 | drivers/net/depca.c | lp->init_block.mode = 0x0000; /* Enable the Tx and Rx */ |
lp | 782 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 832 | drivers/net/depca.c | int entry = lp->cur_tx++; |
lp | 837 | drivers/net/depca.c | entry &= lp->rmask; /* Ring around buffer number. */ |
lp | 838 | drivers/net/depca.c | buf = (unsigned char *)(lp->tx_ring[entry].base & 0x00ffffff); |
lp | 841 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
lp | 850 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
lp | 853 | drivers/net/depca.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 859 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= (T_ENP); |
lp | 860 | drivers/net/depca.c | lp->tx_ring[entry].base |= (T_OWN|T_STP); |
lp | 871 | drivers/net/depca.c | entry = lp->cur_tx++; |
lp | 872 | drivers/net/depca.c | entry &= lp->rmask; /* Ring around buffer number. */ |
lp | 873 | drivers/net/depca.c | buf = (unsigned char *)(lp->tx_ring[entry].base & 0x00ffffff); |
lp | 876 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
lp | 886 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
lp | 889 | drivers/net/depca.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 895 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= T_ENP; |
lp | 896 | drivers/net/depca.c | lp->tx_ring[entry].base |= T_OWN; |
lp | 901 | drivers/net/depca.c | (unsigned char *)(lp->tx_ring[entry].base & 0x00ffffff); |
lp | 904 | drivers/net/depca.c | dev->name, entry, (unsigned long) &lp->tx_ring[entry], |
lp | 905 | drivers/net/depca.c | lp->tx_ring[entry].base, -lp->tx_ring[entry].length); |
lp | 913 | drivers/net/depca.c | if (lp->tx_ring[(entry+1) & lp->rmask].base >= 0) { |
lp | 933 | drivers/net/depca.c | struct depca_private *lp; |
lp | 940 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
lp | 942 | drivers/net/depca.c | depca_na = lp->depca_na; |
lp | 992 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 993 | drivers/net/depca.c | int entry = lp->cur_rx & lp->rmask; |
lp | 996 | drivers/net/depca.c | for (; lp->rx_ring[entry].base >= 0; entry = (++lp->cur_rx) & lp->rmask) { |
lp | 997 | drivers/net/depca.c | int status = lp->rx_ring[entry].base >> 16 ; |
lp | 1017 | drivers/net/depca.c | while ((status=(lp->rx_ring[(entry+1)&lp->rmask].base >> 16)) < 0); |
lp | 1023 | drivers/net/depca.c | lp->stats.rx_errors++; /* Update the error stats. */ |
lp | 1024 | drivers/net/depca.c | if (status & R_FRAM) lp->stats.rx_frame_errors++; |
lp | 1025 | drivers/net/depca.c | if (status & R_OFLO) lp->stats.rx_over_errors++; |
lp | 1026 | drivers/net/depca.c | if (status & R_CRC) lp->stats.rx_crc_errors++; |
lp | 1027 | drivers/net/depca.c | if (status & R_BUFF) lp->stats.rx_fifo_errors++; |
lp | 1029 | drivers/net/depca.c | short pkt_len = lp->rx_ring[entry].msg_length; |
lp | 1035 | drivers/net/depca.c | lp->stats.rx_dropped++; /* Really, deferred. */ |
lp | 1041 | drivers/net/depca.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
lp | 1048 | drivers/net/depca.c | lp->stats.rx_packets++; |
lp | 1052 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
lp | 1054 | drivers/net/depca.c | entry = (++lp->cur_rx) & lp->rmask; |
lp | 1055 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
lp | 1073 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1074 | drivers/net/depca.c | int dirty_tx = lp->dirty_tx & lp->rmask; |
lp | 1078 | drivers/net/depca.c | dev->name, dirty_tx, (lp->cur_tx & lp->rmask)); |
lp | 1084 | drivers/net/depca.c | for (; dirty_tx!=(lp->cur_tx & lp->rmask) && lp->tx_ring[dirty_tx].base>0; |
lp | 1085 | drivers/net/depca.c | dirty_tx = ++lp->dirty_tx & lp->rmask) { |
lp | 1086 | drivers/net/depca.c | unsigned long *tmdp = (unsigned long *)(&lp->tx_ring[dirty_tx]); |
lp | 1087 | drivers/net/depca.c | int status = lp->tx_ring[dirty_tx].base >> 16; |
lp | 1094 | drivers/net/depca.c | int err_status = lp->tx_ring[dirty_tx].misc; |
lp | 1096 | drivers/net/depca.c | lp->stats.tx_errors++; |
lp | 1097 | drivers/net/depca.c | if (err_status & TMD3_RTRY) lp->stats.tx_aborted_errors++; |
lp | 1098 | drivers/net/depca.c | if (err_status & TMD3_LCAR) lp->stats.tx_carrier_errors++; |
lp | 1099 | drivers/net/depca.c | if (err_status & TMD3_LCOL) lp->stats.tx_window_errors++; |
lp | 1100 | drivers/net/depca.c | if (err_status & TMD3_UFLO) lp->stats.tx_fifo_errors++; |
lp | 1103 | drivers/net/depca.c | lp->stats.collisions++; |
lp | 1105 | drivers/net/depca.c | lp->stats.tx_packets++; |
lp | 1147 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1151 | drivers/net/depca.c | outw((unsigned short)(unsigned long)&lp->init_block, DEPCA_DATA); |
lp | 1153 | drivers/net/depca.c | outw((unsigned short)((unsigned long)&lp->init_block >> 16), DEPCA_DATA); |
lp | 1161 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1176 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
lp | 1181 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
lp | 1190 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1194 | drivers/net/depca.c | return &lp->stats; |
lp | 1209 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1214 | drivers/net/depca.c | lp->init_block.mode = PROM; /* Set promiscuous mode */ |
lp | 1225 | drivers/net/depca.c | lp->init_block.filter[i] = multicast_table[i]; |
lp | 1227 | drivers/net/depca.c | lp->init_block.mode &= ~PROM; /* Unset promiscuous mode */ |
lp | 1229 | drivers/net/depca.c | lp->init_block.mode |= PROM; /* Set promiscuous mode */ |
lp | 444 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 457 | drivers/net/eexpress.c | lp->stats.tx_errors++; |
lp | 459 | drivers/net/eexpress.c | if (lp->last_restart == lp->stats.tx_packets) { |
lp | 468 | drivers/net/eexpress.c | lp->last_restart = lp->stats.tx_packets; |
lp | 501 | drivers/net/eexpress.c | lp->stats.tx_aborted_errors++; |
lp | 513 | drivers/net/eexpress.c | struct net_local *lp; |
lp | 524 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
lp | 536 | drivers/net/eexpress.c | while (lp->tx_reap != lp->tx_head) { /* if (status & 0x8000) */ |
lp | 538 | drivers/net/eexpress.c | outw(lp->tx_reap, ioaddr + READ_PTR); |
lp | 541 | drivers/net/eexpress.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 545 | drivers/net/eexpress.c | lp->stats.tx_packets++; |
lp | 546 | drivers/net/eexpress.c | lp->stats.collisions += tx_status & 0xf; |
lp | 550 | drivers/net/eexpress.c | lp->stats.tx_errors++; |
lp | 551 | drivers/net/eexpress.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 552 | drivers/net/eexpress.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 553 | drivers/net/eexpress.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 554 | drivers/net/eexpress.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 557 | drivers/net/eexpress.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 558 | drivers/net/eexpress.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 559 | drivers/net/eexpress.c | if (lp->tx_reap > TX_BUF_END - TX_BUF_SIZE) |
lp | 560 | drivers/net/eexpress.c | lp->tx_reap = TX_BUF_START; |
lp | 567 | drivers/net/eexpress.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 586 | drivers/net/eexpress.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 587 | drivers/net/eexpress.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 597 | drivers/net/eexpress.c | lp->stats.rx_errors++; |
lp | 601 | drivers/net/eexpress.c | dev->name, status, lp->rx_head, lp->rx_tail); |
lp | 659 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 663 | drivers/net/eexpress.c | return &lp->stats; |
lp | 740 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 760 | drivers/net/eexpress.c | lp->tx_cmd_link = DUMP_DATA + 4; |
lp | 762 | drivers/net/eexpress.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 764 | drivers/net/eexpress.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 798 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 801 | drivers/net/eexpress.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 825 | drivers/net/eexpress.c | lp->rx_tail = cur_rxbuf; |
lp | 831 | drivers/net/eexpress.c | outw(lp->rx_tail + 2, ioaddr + WRITE_PTR); |
lp | 833 | drivers/net/eexpress.c | outw(lp->rx_head, ioaddr); /* Link */ |
lp | 839 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 841 | drivers/net/eexpress.c | short tx_block = lp->tx_head; |
lp | 866 | drivers/net/eexpress.c | outw(lp->tx_cmd_link, ioaddr + WRITE_PTR); |
lp | 868 | drivers/net/eexpress.c | lp->tx_cmd_link = tx_block + 20; |
lp | 871 | drivers/net/eexpress.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 872 | drivers/net/eexpress.c | if (lp->tx_head > TX_BUF_END - TX_BUF_SIZE) |
lp | 873 | drivers/net/eexpress.c | lp->tx_head = TX_BUF_START; |
lp | 878 | drivers/net/eexpress.c | tx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS)); |
lp | 881 | drivers/net/eexpress.c | if (lp->tx_head != lp->tx_reap) |
lp | 888 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 891 | drivers/net/eexpress.c | short rx_head = lp->rx_head; |
lp | 892 | drivers/net/eexpress.c | short rx_tail = lp->rx_tail; |
lp | 916 | drivers/net/eexpress.c | lp->stats.rx_errors++; |
lp | 917 | drivers/net/eexpress.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 918 | drivers/net/eexpress.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 919 | drivers/net/eexpress.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 920 | drivers/net/eexpress.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 921 | drivers/net/eexpress.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 930 | drivers/net/eexpress.c | lp->stats.rx_dropped++; |
lp | 941 | drivers/net/eexpress.c | lp->stats.rx_packets++; |
lp | 978 | drivers/net/eexpress.c | lp->rx_head = rx_head; |
lp | 979 | drivers/net/eexpress.c | lp->rx_tail = rx_tail; |
lp | 237 | drivers/net/lance.c | struct lance_private *lp; |
lp | 272 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
lp | 273 | drivers/net/lance.c | lp->rx_buffs = (long)dev->priv + sizeof(struct lance_private); |
lp | 274 | drivers/net/lance.c | lp->tx_bounce_buffs = (char (*)[PKT_BUF_SZ]) |
lp | 275 | drivers/net/lance.c | (lp->rx_buffs + PKT_BUF_SZ*RX_RING_SIZE); |
lp | 279 | drivers/net/lance.c | if ((int)(lp->rx_ring) & 0x07) { |
lp | 286 | drivers/net/lance.c | lp->old_lance = (inw(ioaddr+LANCE_DATA) != 0x3003); |
lp | 289 | drivers/net/lance.c | printk(lp->old_lance ? " original LANCE (%04x)" : " PCnet-ISA LANCE (%04x)", |
lp | 293 | drivers/net/lance.c | lp->init_block.mode = 0x0003; /* Disable Rx and Tx. */ |
lp | 295 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 296 | drivers/net/lance.c | lp->init_block.filter[0] = 0x00000000; |
lp | 297 | drivers/net/lance.c | lp->init_block.filter[1] = 0x00000000; |
lp | 298 | drivers/net/lance.c | lp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS; |
lp | 299 | drivers/net/lance.c | lp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS; |
lp | 302 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
lp | 304 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
lp | 342 | drivers/net/lance.c | if (! lp->old_lance) { |
lp | 366 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 388 | drivers/net/lance.c | if (lp->old_lance) |
lp | 391 | drivers/net/lance.c | if (! lp->old_lance) { |
lp | 399 | drivers/net/lance.c | dev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring, |
lp | 400 | drivers/net/lance.c | (int) &lp->init_block); |
lp | 405 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
lp | 407 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
lp | 426 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
lp | 435 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 438 | drivers/net/lance.c | lp->lock = 0; |
lp | 439 | drivers/net/lance.c | lp->cur_rx = lp->cur_tx = 0; |
lp | 440 | drivers/net/lance.c | lp->dirty_rx = lp->dirty_tx = 0; |
lp | 443 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
lp | 444 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
lp | 449 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
lp | 452 | drivers/net/lance.c | lp->init_block.mode = 0x0000; |
lp | 454 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 455 | drivers/net/lance.c | lp->init_block.filter[0] = 0x00000000; |
lp | 456 | drivers/net/lance.c | lp->init_block.filter[1] = 0x00000000; |
lp | 457 | drivers/net/lance.c | lp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS; |
lp | 458 | drivers/net/lance.c | lp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS; |
lp | 464 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 477 | drivers/net/lance.c | lp->stats.tx_errors++; |
lp | 482 | drivers/net/lance.c | lp->dirty_tx, lp->cur_tx, lp->cur_rx); |
lp | 485 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
lp | 486 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
lp | 489 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
lp | 490 | drivers/net/lance.c | lp->tx_ring[i].misc); |
lp | 525 | drivers/net/lance.c | if (set_bit(0, (void*)&lp->lock) != 0) { |
lp | 535 | drivers/net/lance.c | entry = lp->cur_tx & TX_RING_MOD_MASK; |
lp | 541 | drivers/net/lance.c | if (lp->old_lance) { |
lp | 542 | drivers/net/lance.c | lp->tx_ring[entry].length = |
lp | 545 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
lp | 547 | drivers/net/lance.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 555 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
lp | 556 | drivers/net/lance.c | lp->tx_ring[entry].base = |
lp | 557 | drivers/net/lance.c | (int)(lp->tx_bounce_buffs + entry) | 0x83000000; |
lp | 566 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
lp | 568 | drivers/net/lance.c | lp->cur_tx++; |
lp | 577 | drivers/net/lance.c | lp->lock = 0; |
lp | 578 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
lp | 591 | drivers/net/lance.c | struct lance_private *lp; |
lp | 600 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
lp | 620 | drivers/net/lance.c | int dirty_tx = lp->dirty_tx; |
lp | 622 | drivers/net/lance.c | while (dirty_tx < lp->cur_tx) { |
lp | 624 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
lp | 630 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
lp | 634 | drivers/net/lance.c | int err_status = lp->tx_ring[entry].misc; |
lp | 635 | drivers/net/lance.c | lp->stats.tx_errors++; |
lp | 636 | drivers/net/lance.c | if (err_status & 0x0400) lp->stats.tx_aborted_errors++; |
lp | 637 | drivers/net/lance.c | if (err_status & 0x0800) lp->stats.tx_carrier_errors++; |
lp | 638 | drivers/net/lance.c | if (err_status & 0x1000) lp->stats.tx_window_errors++; |
lp | 639 | drivers/net/lance.c | if (err_status & 0x4000) lp->stats.tx_fifo_errors++; |
lp | 643 | drivers/net/lance.c | lp->stats.collisions++; |
lp | 644 | drivers/net/lance.c | lp->stats.tx_packets++; |
lp | 650 | drivers/net/lance.c | if (databuff >= (void*)(&lp->tx_bounce_buffs[TX_RING_SIZE]) |
lp | 651 | drivers/net/lance.c | || databuff < (void*)(lp->tx_bounce_buffs)) { |
lp | 662 | drivers/net/lance.c | if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { |
lp | 664 | drivers/net/lance.c | dirty_tx, lp->cur_tx); |
lp | 669 | drivers/net/lance.c | if (dev->tbusy && dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) { |
lp | 675 | drivers/net/lance.c | lp->dirty_tx = dirty_tx; |
lp | 679 | drivers/net/lance.c | if (csr0 & 0x4000) lp->stats.tx_errors++; |
lp | 680 | drivers/net/lance.c | if (csr0 & 0x1000) lp->stats.rx_errors++; |
lp | 699 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 700 | drivers/net/lance.c | int entry = lp->cur_rx & RX_RING_MOD_MASK; |
lp | 704 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
lp | 705 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
lp | 713 | drivers/net/lance.c | lp->stats.rx_errors++; /* end of a packet.*/ |
lp | 714 | drivers/net/lance.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 715 | drivers/net/lance.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 716 | drivers/net/lance.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 717 | drivers/net/lance.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 718 | drivers/net/lance.c | lp->rx_ring[entry].base &= 0x03ffffff; |
lp | 721 | drivers/net/lance.c | short pkt_len = lp->rx_ring[entry].msg_length; |
lp | 728 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
lp | 732 | drivers/net/lance.c | lp->stats.rx_dropped++; |
lp | 733 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
lp | 734 | drivers/net/lance.c | lp->cur_rx++; |
lp | 741 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
lp | 744 | drivers/net/lance.c | lp->stats.rx_packets++; |
lp | 747 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
lp | 748 | drivers/net/lance.c | entry = (++lp->cur_rx) & RX_RING_MOD_MASK; |
lp | 761 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 767 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 792 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 799 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 803 | drivers/net/lance.c | return &lp->stats; |
lp | 228 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 248 | drivers/net/skeleton.c | lp->open_time = jiffies; |
lp | 259 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 300 | drivers/net/skeleton.c | lp->stats.tx_aborted_errors++; |
lp | 312 | drivers/net/skeleton.c | struct net_local *lp; |
lp | 322 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
lp | 331 | drivers/net/skeleton.c | lp->stats.tx_packets++; |
lp | 337 | drivers/net/skeleton.c | lp->stats.tx_window_errors++; |
lp | 348 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 360 | drivers/net/skeleton.c | lp->stats.rx_errors++; |
lp | 361 | drivers/net/skeleton.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 362 | drivers/net/skeleton.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 363 | drivers/net/skeleton.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 364 | drivers/net/skeleton.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 372 | drivers/net/skeleton.c | lp->stats.rx_dropped++; |
lp | 385 | drivers/net/skeleton.c | lp->stats.rx_packets++; |
lp | 399 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 402 | drivers/net/skeleton.c | lp->open_time = 0; |
lp | 430 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 435 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
lp | 438 | 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 | 40 | fs/xiafs/truncate.c | u_long * lp; |
lp | 49 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
lp | 50 | fs/xiafs/truncate.c | if (!(tmp = *lp)) |
lp | 57 | fs/xiafs/truncate.c | if ((bh && bh->b_count != 1) || tmp != *lp) |
lp | 60 | fs/xiafs/truncate.c | *lp = 0; |
lp | 70 | fs/xiafs/truncate.c | static int trunc_indirect(struct inode * inode, int addr_off, u_long * lp) |
lp | 80 | fs/xiafs/truncate.c | if ( !(tmp=*lp) ) |
lp | 83 | fs/xiafs/truncate.c | if (tmp != *lp) { |
lp | 88 | fs/xiafs/truncate.c | *lp = 0; |
lp | 119 | fs/xiafs/truncate.c | tmp = *lp; |
lp | 120 | fs/xiafs/truncate.c | *lp = 0; |
lp | 137 | fs/xiafs/truncate.c | u_long * dindp, * lp; |
lp | 140 | fs/xiafs/truncate.c | lp = &(inode->u.xiafs_i.i_dind_zone); |
lp | 141 | fs/xiafs/truncate.c | if (!(tmp = *lp)) |
lp | 144 | fs/xiafs/truncate.c | if (tmp != *lp) { |
lp | 149 | fs/xiafs/truncate.c | *lp = 0; |
lp | 168 | fs/xiafs/truncate.c | tmp = *lp; |
lp | 169 | 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 | 78 | kernel/ldt.c | *lp = 0; |
lp | 79 | kernel/ldt.c | *(lp+1) = 0; |
lp | 82 | kernel/ldt.c | *lp = ((ldt_info.base_addr & 0x0000ffff) << 16) | |
lp | 84 | kernel/ldt.c | *(lp+1) = (ldt_info.base_addr & 0xff000000) | |
lp | 690 | kernel/sys.c | unsigned long *lp, *lpend, *dest; |
lp | 722 | kernel/sys.c | lp = (unsigned long *) &r; |
lp | 725 | kernel/sys.c | for (; lp < lpend; lp++, dest++) |
lp | 726 | kernel/sys.c | put_fs_long(*lp, dest); |
lp | 126 | net/inet/protocol.c | struct inet_protocol *lp = NULL; |
lp | 147 | net/inet/protocol.c | if (p->copy == 0 && lp != NULL) lp->copy = 0; |
lp | 153 | net/inet/protocol.c | lp = p; |