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 | 359 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp | 368 | drivers/char/lp.c | lp->lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
lp | 369 | drivers/char/lp.c | if (!lp->lp_buffer) |
lp | 384 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 385 | drivers/char/lp.c | lp->lp_buffer = NULL; |
lp | 392 | drivers/char/lp.c | kfree_s(lp->lp_buffer, LP_BUFFER_SIZE); |
lp | 393 | 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 | 496 | drivers/net/3c507.c | struct net_local *lp; |
lp | 508 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
lp | 521 | drivers/net/3c507.c | while (lp->tx_reap != lp->tx_head) { |
lp | 522 | drivers/net/3c507.c | unsigned short tx_status = shmem[lp->tx_reap>>1]; |
lp | 525 | drivers/net/3c507.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 529 | drivers/net/3c507.c | lp->stats.tx_packets++; |
lp | 530 | drivers/net/3c507.c | lp->stats.collisions += tx_status & 0xf; |
lp | 534 | drivers/net/3c507.c | lp->stats.tx_errors++; |
lp | 535 | drivers/net/3c507.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 536 | drivers/net/3c507.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 537 | drivers/net/3c507.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 538 | drivers/net/3c507.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 541 | drivers/net/3c507.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 542 | drivers/net/3c507.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 543 | drivers/net/3c507.c | if (lp->tx_reap > RX_BUF_START - TX_BUF_SIZE) |
lp | 544 | drivers/net/3c507.c | lp->tx_reap = TX_BUF_START; |
lp | 551 | drivers/net/3c507.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 623 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 627 | drivers/net/3c507.c | return &lp->stats; |
lp | 634 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 638 | drivers/net/3c507.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 664 | drivers/net/3c507.c | lp->rx_tail = cur_rxbuf; |
lp | 671 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
lp | 673 | drivers/net/3c507.c | *write_ptr++ = lp->rx_head; /* Link */ |
lp | 680 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 703 | drivers/net/3c507.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 704 | drivers/net/3c507.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 739 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 741 | drivers/net/3c507.c | ushort tx_block = lp->tx_head; |
lp | 765 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
lp | 766 | drivers/net/3c507.c | lp->tx_cmd_link = tx_block + 20; |
lp | 769 | drivers/net/3c507.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 770 | drivers/net/3c507.c | if (lp->tx_head > RX_BUF_START - TX_BUF_SIZE) |
lp | 771 | drivers/net/3c507.c | lp->tx_head = TX_BUF_START; |
lp | 775 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
lp | 778 | drivers/net/3c507.c | if (lp->tx_head != lp->tx_reap) |
lp | 785 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 787 | drivers/net/3c507.c | ushort rx_head = lp->rx_head; |
lp | 788 | drivers/net/3c507.c | ushort rx_tail = lp->rx_tail; |
lp | 808 | drivers/net/3c507.c | lp->stats.rx_errors++; |
lp | 809 | drivers/net/3c507.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 810 | drivers/net/3c507.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 811 | drivers/net/3c507.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 812 | drivers/net/3c507.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 813 | drivers/net/3c507.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 822 | drivers/net/3c507.c | lp->stats.rx_dropped++; |
lp | 832 | drivers/net/3c507.c | lp->stats.rx_packets++; |
lp | 847 | drivers/net/3c507.c | lp->rx_head = rx_head; |
lp | 848 | drivers/net/3c507.c | lp->rx_tail = rx_tail; |
lp | 344 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 417 | drivers/net/3c509.c | if (tx_status & 0x38) lp->stats.tx_aborted_errors++; |
lp | 490 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 495 | drivers/net/3c509.c | return &lp->stats; |
lp | 505 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 513 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
lp | 514 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
lp | 516 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
lp | 517 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
lp | 518 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
lp | 519 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
lp | 520 | drivers/net/3c509.c | lp->stats.rx_packets += inb(ioaddr + 7); |
lp | 534 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
lp | 544 | drivers/net/3c509.c | lp->stats.rx_errors++; |
lp | 546 | drivers/net/3c509.c | case 0x0000: lp->stats.rx_over_errors++; break; |
lp | 547 | drivers/net/3c509.c | case 0x0800: lp->stats.rx_length_errors++; break; |
lp | 548 | drivers/net/3c509.c | case 0x1000: lp->stats.rx_frame_errors++; break; |
lp | 549 | drivers/net/3c509.c | case 0x1800: lp->stats.rx_length_errors++; break; |
lp | 550 | drivers/net/3c509.c | case 0x2000: lp->stats.rx_frame_errors++; break; |
lp | 551 | drivers/net/3c509.c | case 0x2800: lp->stats.rx_crc_errors++; break; |
lp | 599 | drivers/net/3c509.c | lp->stats.rx_dropped++; |
lp | 191 | drivers/net/apricot.c | static void i596_cleanup_cmd(struct i596_private *lp); |
lp | 202 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 213 | drivers/net/apricot.c | lp->scb.rfd = &lp->rx[0]; |
lp | 217 | drivers/net/apricot.c | lp->rx_tail = &(lp->rx[i]); |
lp | 218 | drivers/net/apricot.c | lp->rx[i].next = &lp->rx[0]; |
lp | 219 | drivers/net/apricot.c | lp->rx[i].cmd = CMD_EOL; |
lp | 223 | drivers/net/apricot.c | lp->rx[i].next = &lp->rx[i+1]; |
lp | 224 | drivers/net/apricot.c | lp->rx[i].cmd = 0x0000; |
lp | 226 | drivers/net/apricot.c | lp->rx[i].stat = 0x0000; |
lp | 227 | drivers/net/apricot.c | lp->rx[i].rbd = 0xffffffff; |
lp | 228 | drivers/net/apricot.c | lp->rx[i].count = 0; |
lp | 229 | drivers/net/apricot.c | lp->rx[i].size = 1532; |
lp | 232 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 236 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
lp | 240 | drivers/net/apricot.c | lp->scb.command = RX_START; |
lp | 250 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 258 | drivers/net/apricot.c | outw(((((int)&lp->scp) & 0xffff) | 2), ioaddr); |
lp | 259 | drivers/net/apricot.c | outw((((int)&lp->scp)>>16) & 0xffff, ioaddr); |
lp | 261 | drivers/net/apricot.c | lp->last_cmd=jiffies; |
lp | 263 | drivers/net/apricot.c | lp->scp.sysbus = 0x00440000; |
lp | 264 | drivers/net/apricot.c | lp->scp.iscp = &(lp->iscp); |
lp | 265 | drivers/net/apricot.c | lp->iscp.scb = &(lp->scb); |
lp | 266 | drivers/net/apricot.c | lp->iscp.stat = 0x0001; |
lp | 267 | drivers/net/apricot.c | lp->cmd_backlog = 0; |
lp | 269 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) -1; |
lp | 277 | drivers/net/apricot.c | while (lp->iscp.stat) |
lp | 281 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
lp | 285 | drivers/net/apricot.c | memcpy (lp->i596_config, init_setup, 14); |
lp | 286 | drivers/net/apricot.c | lp->set_conf.command = CmdConfigure; |
lp | 287 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_conf); |
lp | 289 | drivers/net/apricot.c | memcpy (lp->eth_addr, dev->dev_addr, 6); |
lp | 290 | drivers/net/apricot.c | lp->set_add.command = CmdSASetup; |
lp | 291 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_add); |
lp | 293 | drivers/net/apricot.c | lp->tdr.command = CmdTDR; |
lp | 294 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->tdr); |
lp | 305 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 310 | drivers/net/apricot.c | while ((lp->scb.rfd->stat) & STAT_C) |
lp | 312 | drivers/net/apricot.c | if (i596_debug >2) print_eth(lp->scb.rfd->data); |
lp | 314 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & STAT_OK) |
lp | 317 | drivers/net/apricot.c | int pkt_len = lp->scb.rfd->count & 0x3fff; |
lp | 325 | drivers/net/apricot.c | lp->stats.rx_dropped++; |
lp | 331 | drivers/net/apricot.c | memcpy(skb->data, lp->scb.rfd->data, pkt_len); |
lp | 334 | drivers/net/apricot.c | lp->stats.rx_packets++; |
lp | 340 | drivers/net/apricot.c | lp->stats.rx_errors++; |
lp | 341 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++; |
lp | 342 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++; |
lp | 343 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++; |
lp | 344 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 345 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++; |
lp | 346 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++; |
lp | 347 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++; |
lp | 350 | drivers/net/apricot.c | lp->scb.rfd->stat=0; |
lp | 351 | drivers/net/apricot.c | lp->rx_tail->cmd=0; |
lp | 352 | drivers/net/apricot.c | lp->rx_tail=lp->scb.rfd; |
lp | 353 | drivers/net/apricot.c | lp->scb.rfd=lp->scb.rfd->next; |
lp | 354 | drivers/net/apricot.c | lp->rx_tail->count=0; |
lp | 355 | drivers/net/apricot.c | lp->rx_tail->cmd=CMD_EOL; |
lp | 367 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 380 | drivers/net/apricot.c | if (lp->cmd_head != (struct i596_cmd *) -1) |
lp | 381 | drivers/net/apricot.c | lp->cmd_tail->next = cmd; |
lp | 384 | drivers/net/apricot.c | lp->cmd_head=cmd; |
lp | 385 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 389 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
lp | 393 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
lp | 394 | drivers/net/apricot.c | lp->scb.command = CUC_START; |
lp | 397 | drivers/net/apricot.c | lp->cmd_tail=cmd; |
lp | 398 | drivers/net/apricot.c | lp->cmd_backlog++; |
lp | 400 | drivers/net/apricot.c | lp->cmd_head=lp->scb.cmd; |
lp | 403 | drivers/net/apricot.c | if (lp->cmd_backlog > 8) |
lp | 405 | drivers/net/apricot.c | int tickssofar = jiffies - lp->last_cmd; |
lp | 412 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 416 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
lp | 419 | drivers/net/apricot.c | lp->scb.command=CUC_ABORT|RX_ABORT; |
lp | 422 | drivers/net/apricot.c | i596_cleanup_cmd(lp); |
lp | 431 | drivers/net/apricot.c | static void i596_cleanup_cmd(struct i596_private *lp) |
lp | 438 | drivers/net/apricot.c | while (lp->cmd_head != (struct i596_cmd *) -1) |
lp | 440 | drivers/net/apricot.c | ptr = lp->cmd_head; |
lp | 442 | drivers/net/apricot.c | lp->cmd_head = lp->cmd_head->next; |
lp | 443 | drivers/net/apricot.c | lp->cmd_backlog--; |
lp | 454 | drivers/net/apricot.c | lp->stats.tx_errors++; |
lp | 455 | drivers/net/apricot.c | lp->stats.tx_aborted_errors++; |
lp | 474 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 478 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
lp | 482 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
lp | 514 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 527 | drivers/net/apricot.c | lp->stats.tx_errors++; |
lp | 529 | drivers/net/apricot.c | if (lp->last_restart == lp->stats.tx_packets) { |
lp | 533 | drivers/net/apricot.c | lp->scb.command=CUC_ABORT|RX_ABORT; |
lp | 536 | drivers/net/apricot.c | i596_cleanup_cmd(lp); |
lp | 542 | drivers/net/apricot.c | lp->scb.command=CUC_START|RX_START; |
lp | 545 | drivers/net/apricot.c | lp->last_restart = lp->stats.tx_packets; |
lp | 577 | drivers/net/apricot.c | lp->stats.tx_dropped++; |
lp | 599 | drivers/net/apricot.c | lp->stats.tx_packets++; |
lp | 685 | drivers/net/apricot.c | struct i596_private *lp; |
lp | 704 | drivers/net/apricot.c | lp = (struct i596_private *)dev->priv; |
lp | 706 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 709 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
lp | 712 | drivers/net/apricot.c | status = lp->scb.status; |
lp | 728 | drivers/net/apricot.c | while ((lp->cmd_head != (struct i596_cmd *) -1) && (lp->cmd_head->status & STAT_C)) |
lp | 730 | drivers/net/apricot.c | ptr = lp->cmd_head; |
lp | 732 | drivers/net/apricot.c | lp->cmd_head = lp->cmd_head->next; |
lp | 733 | drivers/net/apricot.c | lp->cmd_backlog--; |
lp | 750 | drivers/net/apricot.c | lp->stats.tx_errors++; |
lp | 751 | drivers/net/apricot.c | if ((ptr->status) & 0x0020) lp->stats.collisions++; |
lp | 752 | drivers/net/apricot.c | if (!((ptr->status) & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 753 | drivers/net/apricot.c | if ((ptr->status) & 0x0400) lp->stats.tx_carrier_errors++; |
lp | 754 | drivers/net/apricot.c | if ((ptr->status) & 0x0800) lp->stats.collisions++; |
lp | 755 | drivers/net/apricot.c | if ((ptr->status) & 0x1000) lp->stats.tx_aborted_errors++; |
lp | 795 | drivers/net/apricot.c | lp->last_cmd=jiffies; |
lp | 799 | drivers/net/apricot.c | ptr = lp->cmd_head; |
lp | 800 | drivers/net/apricot.c | while ((ptr != (struct i596_cmd *) -1) && (ptr != lp->cmd_tail)) |
lp | 806 | drivers/net/apricot.c | if ((lp->cmd_head != (struct i596_cmd *) -1) && (dev->start)) ack_cmd |= CUC_START; |
lp | 807 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
lp | 828 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
lp | 831 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
lp | 834 | drivers/net/apricot.c | lp->scb.command = ack_cmd; |
lp | 851 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 858 | drivers/net/apricot.c | dev->name, lp->scb.status); |
lp | 860 | drivers/net/apricot.c | lp->scb.command = CUC_ABORT|RX_ABORT; |
lp | 863 | drivers/net/apricot.c | i596_cleanup_cmd(lp); |
lp | 874 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 876 | drivers/net/apricot.c | return &lp->stats; |
lp | 889 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
lp | 911 | drivers/net/apricot.c | if (lp->set_conf.next != (struct i596_cmd * ) -1) return; |
lp | 913 | drivers/net/apricot.c | lp->i596_config[8] &= ~0x01; |
lp | 915 | drivers/net/apricot.c | lp->i596_config[8] |= 0x01; |
lp | 917 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_conf); |
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 | 421 | drivers/net/at1700.c | struct net_local *lp; |
lp | 431 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
lp | 443 | drivers/net/at1700.c | lp->stats.tx_packets++; |
lp | 444 | drivers/net/at1700.c | if (lp->tx_queue) { |
lp | 445 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
lp | 446 | drivers/net/at1700.c | lp->tx_queue = 0; |
lp | 447 | drivers/net/at1700.c | lp->tx_queue_len = 0; |
lp | 452 | drivers/net/at1700.c | lp->tx_started = 0; |
lp | 467 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 485 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 486 | drivers/net/at1700.c | if (status & 0x08) lp->stats.rx_length_errors++; |
lp | 487 | drivers/net/at1700.c | if (status & 0x04) lp->stats.rx_frame_errors++; |
lp | 488 | drivers/net/at1700.c | if (status & 0x02) lp->stats.rx_crc_errors++; |
lp | 489 | drivers/net/at1700.c | if (status & 0x01) lp->stats.rx_over_errors++; |
lp | 499 | drivers/net/at1700.c | lp->stats.rx_errors++; |
lp | 507 | drivers/net/at1700.c | lp->stats.rx_dropped++; |
lp | 524 | drivers/net/at1700.c | lp->stats.rx_packets++; |
lp | 551 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 554 | drivers/net/at1700.c | lp->open_time = 0; |
lp | 575 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 581 | 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; /* Redundant */ |
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 | 486 | drivers/net/atp.c | struct net_local *lp; |
lp | 497 | drivers/net/atp.c | lp = (struct net_local *)dev->priv; |
lp | 520 | drivers/net/atp.c | lp->stats.rx_over_errors++; |
lp | 526 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
lp | 540 | drivers/net/atp.c | lp->stats.collisions++; |
lp | 541 | drivers/net/atp.c | if (++lp->re_tx > 15) { |
lp | 542 | drivers/net/atp.c | lp->stats.tx_aborted_errors++; |
lp | 551 | drivers/net/atp.c | lp->stats.tx_packets++; |
lp | 552 | drivers/net/atp.c | lp->pac_cnt_in_tx_buf--; |
lp | 553 | drivers/net/atp.c | if ( lp->saved_tx_size) { |
lp | 554 | drivers/net/atp.c | trigger_send(ioaddr, lp->saved_tx_size); |
lp | 555 | drivers/net/atp.c | lp->saved_tx_size = 0; |
lp | 556 | drivers/net/atp.c | lp->re_tx = 0; |
lp | 558 | drivers/net/atp.c | lp->tx_unit_busy = 0; |
lp | 570 | drivers/net/atp.c | lp->stats.rx_missed_errors++; |
lp | 604 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 619 | drivers/net/atp.c | lp->stats.rx_errors++; |
lp | 634 | drivers/net/atp.c | lp->stats.rx_dropped++; |
lp | 652 | drivers/net/atp.c | lp->stats.rx_packets++; |
lp | 683 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 690 | drivers/net/atp.c | lp->addr_mode = CMR2h_OFF; |
lp | 709 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 710 | drivers/net/atp.c | return &lp->stats; |
lp | 722 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 724 | drivers/net/atp.c | lp->addr_mode = num_addrs ? CMR2h_PROMISC : CMR2h_Normal; |
lp | 725 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
lp | 394 | drivers/net/depca.c | struct depca_private *lp; |
lp | 543 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
lp | 550 | drivers/net/depca.c | lp->rx_ring = (struct depca_rx_head *)mem_start; |
lp | 553 | drivers/net/depca.c | lp->tx_ring = (struct depca_tx_head *)mem_start; |
lp | 556 | drivers/net/depca.c | lp->bus_offset = mem_start & 0x00ff0000; |
lp | 559 | drivers/net/depca.c | lp->dma_buffs = mem_start; |
lp | 565 | drivers/net/depca.c | memset(lp->rx_ring, 0, sizeof(struct depca_rx_head)*j); |
lp | 566 | drivers/net/depca.c | memset(lp->tx_ring, 0, sizeof(struct depca_tx_head)*j); |
lp | 569 | drivers/net/depca.c | if ((int)(lp->rx_ring) & 0x07) { |
lp | 577 | drivers/net/depca.c | lp->ringSize = j; |
lp | 578 | drivers/net/depca.c | if (lp->ringSize > RING_SIZE) lp->ringSize = RING_SIZE; |
lp | 579 | drivers/net/depca.c | lp->rmask = lp->ringSize - 1; |
lp | 585 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
lp | 588 | drivers/net/depca.c | lp->rlen = (unsigned long)(i << 29); |
lp | 662 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 687 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring,(long)lp->tx_ring); |
lp | 689 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
lp | 690 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)&lp->rx_ring[i].base, |
lp | 691 | drivers/net/depca.c | (long)&lp->tx_ring[i].base); |
lp | 694 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
lp | 695 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring[i].base, |
lp | 696 | drivers/net/depca.c | (long)lp->tx_ring[i].base); |
lp | 698 | drivers/net/depca.c | printk("Initialisation block at 0x%8.8lx\n",(long)&lp->init_block); |
lp | 699 | drivers/net/depca.c | printk("\tmode: 0x%4.4x\n",lp->init_block.mode); |
lp | 702 | drivers/net/depca.c | printk("%2.2x:",(short)lp->init_block.phys_addr[i]); |
lp | 706 | drivers/net/depca.c | printk("%2.2x",(short)lp->init_block.filter[i]); |
lp | 708 | drivers/net/depca.c | printk("\n\trx_ring at: 0x%8.8lx\n",(long)lp->init_block.rx_ring); |
lp | 709 | drivers/net/depca.c | printk("\ttx_ring at: 0x%8.8lx\n",(long)lp->init_block.tx_ring); |
lp | 710 | drivers/net/depca.c | printk("dma_buffs: 0x%8.8lx\n",(long)lp->dma_buffs); |
lp | 712 | drivers/net/depca.c | (short)lp->ringSize, |
lp | 713 | drivers/net/depca.c | (char)lp->rmask, |
lp | 714 | drivers/net/depca.c | (long)lp->rlen); |
lp | 752 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 755 | drivers/net/depca.c | lp->init_block.mode = DTX | DRX; /* Disable Rx and Tx. */ |
lp | 756 | drivers/net/depca.c | lp->cur_rx = lp->cur_tx = 0; |
lp | 757 | drivers/net/depca.c | lp->dirty_rx = lp->dirty_tx = 0; |
lp | 760 | drivers/net/depca.c | for (i = 0; i < lp->ringSize; i++) { |
lp | 761 | drivers/net/depca.c | lp->rx_ring[i].base = (lp->dma_buffs + i*PKT_BUF_SZ) | R_OWN; |
lp | 762 | drivers/net/depca.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
lp | 763 | drivers/net/depca.c | lp->tx_ring[i].base = (lp->dma_buffs + (i+lp->ringSize) * PKT_BUF_SZ) & |
lp | 769 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
lp | 772 | drivers/net/depca.c | lp->init_block.filter[i] = 0x0000; |
lp | 774 | drivers/net/depca.c | lp->init_block.rx_ring = ((unsigned long)lp->rx_ring & LA_MASK) | lp->rlen; |
lp | 775 | drivers/net/depca.c | lp->init_block.tx_ring = ((unsigned long)lp->tx_ring & LA_MASK) | lp->rlen; |
lp | 777 | drivers/net/depca.c | lp->init_block.mode = 0x0000; /* Enable the Tx and Rx */ |
lp | 786 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 836 | drivers/net/depca.c | int entry = lp->cur_tx++; |
lp | 841 | drivers/net/depca.c | entry &= lp->rmask; /* Ring around buffer number. */ |
lp | 842 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
lp | 846 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
lp | 855 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
lp | 858 | drivers/net/depca.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 864 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= (T_ENP); |
lp | 865 | drivers/net/depca.c | lp->tx_ring[entry].base |= (T_OWN|T_STP); |
lp | 876 | drivers/net/depca.c | entry = lp->cur_tx++; |
lp | 877 | drivers/net/depca.c | entry &= lp->rmask; /* Ring around buffer number. */ |
lp | 878 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
lp | 882 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
lp | 892 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
lp | 895 | drivers/net/depca.c | lp->tx_ring[entry].misc = 0x0000; |
lp | 901 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= T_ENP; |
lp | 902 | drivers/net/depca.c | lp->tx_ring[entry].base |= T_OWN; |
lp | 907 | drivers/net/depca.c | (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
lp | 911 | drivers/net/depca.c | dev->name, entry, (unsigned long) &lp->tx_ring[entry], |
lp | 912 | drivers/net/depca.c | lp->tx_ring[entry].base, -lp->tx_ring[entry].length); |
lp | 920 | drivers/net/depca.c | if (lp->tx_ring[(entry+1) & lp->rmask].base >= 0) { |
lp | 938 | drivers/net/depca.c | struct depca_private *lp; |
lp | 944 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
lp | 995 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 996 | drivers/net/depca.c | int entry = lp->cur_rx & lp->rmask; |
lp | 999 | drivers/net/depca.c | for (; lp->rx_ring[entry].base >= 0; entry = (++lp->cur_rx) & lp->rmask) { |
lp | 1000 | drivers/net/depca.c | int status = lp->rx_ring[entry].base >> 16 ; |
lp | 1020 | drivers/net/depca.c | while ((status=(lp->rx_ring[(entry+1)&lp->rmask].base >> 16)) < 0); |
lp | 1026 | drivers/net/depca.c | lp->stats.rx_errors++; /* Update the error stats. */ |
lp | 1027 | drivers/net/depca.c | if (status & R_FRAM) lp->stats.rx_frame_errors++; |
lp | 1028 | drivers/net/depca.c | if (status & R_OFLO) lp->stats.rx_over_errors++; |
lp | 1029 | drivers/net/depca.c | if (status & R_CRC) lp->stats.rx_crc_errors++; |
lp | 1030 | drivers/net/depca.c | if (status & R_BUFF) lp->stats.rx_fifo_errors++; |
lp | 1032 | drivers/net/depca.c | short pkt_len = lp->rx_ring[entry].msg_length; |
lp | 1038 | drivers/net/depca.c | lp->stats.rx_dropped++; /* Really, deferred. */ |
lp | 1044 | drivers/net/depca.c | (unsigned char *)((lp->rx_ring[entry].base+lp->bus_offset) & |
lp | 1052 | drivers/net/depca.c | lp->stats.rx_packets++; |
lp | 1056 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
lp | 1058 | drivers/net/depca.c | entry = (++lp->cur_rx) & lp->rmask; |
lp | 1059 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
lp | 1077 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1078 | drivers/net/depca.c | int dirty_tx = lp->dirty_tx & lp->rmask; |
lp | 1082 | drivers/net/depca.c | dev->name, dirty_tx, (lp->cur_tx & lp->rmask)); |
lp | 1088 | drivers/net/depca.c | for (; dirty_tx!=(lp->cur_tx & lp->rmask) && lp->tx_ring[dirty_tx].base>0; |
lp | 1089 | drivers/net/depca.c | dirty_tx = ++lp->dirty_tx & lp->rmask) { |
lp | 1090 | drivers/net/depca.c | unsigned long *tmdp = (unsigned long *)(&lp->tx_ring[dirty_tx]); |
lp | 1091 | drivers/net/depca.c | int status = lp->tx_ring[dirty_tx].base >> 16; |
lp | 1098 | drivers/net/depca.c | int err_status = lp->tx_ring[dirty_tx].misc; |
lp | 1100 | drivers/net/depca.c | lp->stats.tx_errors++; |
lp | 1101 | drivers/net/depca.c | if (err_status & TMD3_RTRY) lp->stats.tx_aborted_errors++; |
lp | 1102 | drivers/net/depca.c | if (err_status & TMD3_LCAR) lp->stats.tx_carrier_errors++; |
lp | 1103 | drivers/net/depca.c | if (err_status & TMD3_LCOL) lp->stats.tx_window_errors++; |
lp | 1104 | drivers/net/depca.c | if (err_status & TMD3_UFLO) lp->stats.tx_fifo_errors++; |
lp | 1107 | drivers/net/depca.c | lp->stats.collisions++; |
lp | 1109 | drivers/net/depca.c | lp->stats.tx_packets++; |
lp | 1155 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1159 | drivers/net/depca.c | outw((unsigned short)((unsigned long)(&lp->init_block) & LA_MASK), |
lp | 1162 | drivers/net/depca.c | outw((unsigned short)(((unsigned long)(&lp->init_block) & LA_MASK) >> 16), |
lp | 1171 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1186 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
lp | 1191 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
lp | 1200 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1204 | drivers/net/depca.c | return &lp->stats; |
lp | 1219 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
lp | 1224 | drivers/net/depca.c | lp->init_block.mode = PROM; /* Set promiscuous mode */ |
lp | 1235 | drivers/net/depca.c | lp->init_block.filter[i] = multicast_table[i]; |
lp | 1237 | drivers/net/depca.c | lp->init_block.mode &= ~PROM; /* Unset promiscuous mode */ |
lp | 1239 | 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 | 500 | drivers/net/eexpress.c | lp->stats.tx_aborted_errors++; |
lp | 512 | drivers/net/eexpress.c | struct net_local *lp; |
lp | 523 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
lp | 535 | drivers/net/eexpress.c | while (lp->tx_reap != lp->tx_head) { /* if (status & 0x8000) */ |
lp | 537 | drivers/net/eexpress.c | outw(lp->tx_reap, ioaddr + READ_PTR); |
lp | 540 | drivers/net/eexpress.c | if (net_debug > 5) printk("Couldn't reap %#x.\n", lp->tx_reap); |
lp | 544 | drivers/net/eexpress.c | lp->stats.tx_packets++; |
lp | 545 | drivers/net/eexpress.c | lp->stats.collisions += tx_status & 0xf; |
lp | 549 | drivers/net/eexpress.c | lp->stats.tx_errors++; |
lp | 550 | drivers/net/eexpress.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 551 | drivers/net/eexpress.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 552 | drivers/net/eexpress.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 553 | drivers/net/eexpress.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 556 | drivers/net/eexpress.c | printk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status); |
lp | 557 | drivers/net/eexpress.c | lp->tx_reap += TX_BUF_SIZE; |
lp | 558 | drivers/net/eexpress.c | if (lp->tx_reap > TX_BUF_END - TX_BUF_SIZE) |
lp | 559 | drivers/net/eexpress.c | lp->tx_reap = TX_BUF_START; |
lp | 566 | drivers/net/eexpress.c | printk("Received packet, rx_head %04x.\n", lp->rx_head); |
lp | 585 | drivers/net/eexpress.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 586 | drivers/net/eexpress.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 596 | drivers/net/eexpress.c | lp->stats.rx_errors++; |
lp | 600 | drivers/net/eexpress.c | dev->name, status, lp->rx_head, lp->rx_tail); |
lp | 658 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 662 | drivers/net/eexpress.c | return &lp->stats; |
lp | 739 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 759 | drivers/net/eexpress.c | lp->tx_cmd_link = DUMP_DATA + 4; |
lp | 761 | drivers/net/eexpress.c | lp->tx_cmd_link = IDLELOOP + 4; |
lp | 763 | drivers/net/eexpress.c | lp->tx_head = lp->tx_reap = TX_BUF_START; |
lp | 797 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 800 | drivers/net/eexpress.c | int cur_rxbuf = lp->rx_head = RX_BUF_START; |
lp | 824 | drivers/net/eexpress.c | lp->rx_tail = cur_rxbuf; |
lp | 830 | drivers/net/eexpress.c | outw(lp->rx_tail + 2, ioaddr + WRITE_PTR); |
lp | 832 | drivers/net/eexpress.c | outw(lp->rx_head, ioaddr); /* Link */ |
lp | 838 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 840 | drivers/net/eexpress.c | short tx_block = lp->tx_head; |
lp | 865 | drivers/net/eexpress.c | outw(lp->tx_cmd_link, ioaddr + WRITE_PTR); |
lp | 867 | drivers/net/eexpress.c | lp->tx_cmd_link = tx_block + 20; |
lp | 870 | drivers/net/eexpress.c | lp->tx_head = tx_block + TX_BUF_SIZE; |
lp | 871 | drivers/net/eexpress.c | if (lp->tx_head > TX_BUF_END - TX_BUF_SIZE) |
lp | 872 | drivers/net/eexpress.c | lp->tx_head = TX_BUF_START; |
lp | 877 | drivers/net/eexpress.c | tx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS)); |
lp | 880 | drivers/net/eexpress.c | if (lp->tx_head != lp->tx_reap) |
lp | 887 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 890 | drivers/net/eexpress.c | short rx_head = lp->rx_head; |
lp | 891 | drivers/net/eexpress.c | short rx_tail = lp->rx_tail; |
lp | 915 | drivers/net/eexpress.c | lp->stats.rx_errors++; |
lp | 916 | drivers/net/eexpress.c | if (frame_status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 917 | drivers/net/eexpress.c | if (frame_status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 918 | drivers/net/eexpress.c | if (frame_status & 0x0200) lp->stats.rx_fifo_errors++; |
lp | 919 | drivers/net/eexpress.c | if (frame_status & 0x0100) lp->stats.rx_over_errors++; |
lp | 920 | drivers/net/eexpress.c | if (frame_status & 0x0080) lp->stats.rx_length_errors++; |
lp | 929 | drivers/net/eexpress.c | lp->stats.rx_dropped++; |
lp | 940 | drivers/net/eexpress.c | lp->stats.rx_packets++; |
lp | 977 | drivers/net/eexpress.c | lp->rx_head = rx_head; |
lp | 978 | 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 | 560 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
lp | 562 | drivers/net/lance.c | lp->cur_tx++; |
lp | 571 | drivers/net/lance.c | lp->lock = 0; |
lp | 572 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
lp | 585 | drivers/net/lance.c | struct lance_private *lp; |
lp | 594 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
lp | 614 | drivers/net/lance.c | int dirty_tx = lp->dirty_tx; |
lp | 616 | drivers/net/lance.c | while (dirty_tx < lp->cur_tx) { |
lp | 618 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
lp | 624 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
lp | 628 | drivers/net/lance.c | int err_status = lp->tx_ring[entry].misc; |
lp | 629 | drivers/net/lance.c | lp->stats.tx_errors++; |
lp | 630 | drivers/net/lance.c | if (err_status & 0x0400) lp->stats.tx_aborted_errors++; |
lp | 631 | drivers/net/lance.c | if (err_status & 0x0800) lp->stats.tx_carrier_errors++; |
lp | 632 | drivers/net/lance.c | if (err_status & 0x1000) lp->stats.tx_window_errors++; |
lp | 633 | drivers/net/lance.c | if (err_status & 0x4000) lp->stats.tx_fifo_errors++; |
lp | 637 | drivers/net/lance.c | lp->stats.collisions++; |
lp | 638 | drivers/net/lance.c | lp->stats.tx_packets++; |
lp | 644 | drivers/net/lance.c | if (databuff >= (void*)(&lp->tx_bounce_buffs[TX_RING_SIZE]) |
lp | 645 | drivers/net/lance.c | || databuff < (void*)(lp->tx_bounce_buffs)) { |
lp | 656 | drivers/net/lance.c | if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { |
lp | 658 | drivers/net/lance.c | dirty_tx, lp->cur_tx); |
lp | 663 | drivers/net/lance.c | if (dev->tbusy && dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) { |
lp | 669 | drivers/net/lance.c | lp->dirty_tx = dirty_tx; |
lp | 673 | drivers/net/lance.c | if (csr0 & 0x4000) lp->stats.tx_errors++; |
lp | 674 | drivers/net/lance.c | if (csr0 & 0x1000) lp->stats.rx_errors++; |
lp | 693 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 694 | drivers/net/lance.c | int entry = lp->cur_rx & RX_RING_MOD_MASK; |
lp | 698 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
lp | 699 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
lp | 707 | drivers/net/lance.c | lp->stats.rx_errors++; /* end of a packet.*/ |
lp | 708 | drivers/net/lance.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 709 | drivers/net/lance.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 710 | drivers/net/lance.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 711 | drivers/net/lance.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 712 | drivers/net/lance.c | lp->rx_ring[entry].base &= 0x03ffffff; |
lp | 715 | drivers/net/lance.c | short pkt_len = lp->rx_ring[entry].msg_length; |
lp | 722 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
lp | 726 | drivers/net/lance.c | lp->stats.rx_dropped++; |
lp | 727 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
lp | 728 | drivers/net/lance.c | lp->cur_rx++; |
lp | 735 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
lp | 738 | drivers/net/lance.c | lp->stats.rx_packets++; |
lp | 741 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
lp | 742 | drivers/net/lance.c | entry = (++lp->cur_rx) & RX_RING_MOD_MASK; |
lp | 755 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 761 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 786 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
lp | 793 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
lp | 797 | drivers/net/lance.c | return &lp->stats; |
lp | 279 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 280 | drivers/net/plip.c | struct plip_local *snd = &lp->snd_data; |
lp | 330 | drivers/net/plip.c | lp->tl.expires = 0; |
lp | 331 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 332 | drivers/net/plip.c | lp->tl.function = (void (*)(unsigned long))plip_send_packet; |
lp | 333 | drivers/net/plip.c | add_timer(&lp->tl); |
lp | 352 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 353 | drivers/net/plip.c | struct plip_local *rcv = &lp->rcv_data; |
lp | 384 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 394 | drivers/net/plip.c | del_timer(&lp->tl); |
lp | 450 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 453 | drivers/net/plip.c | lp->snd_data.state = PLIP_ST_DONE; |
lp | 454 | drivers/net/plip.c | lp->rcv_data.state = PLIP_ST_DONE; |
lp | 459 | drivers/net/plip.c | del_timer(&lp->tl); |
lp | 467 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 469 | drivers/net/plip.c | struct plip_local *rcv = &lp->rcv_data; |
lp | 474 | drivers/net/plip.c | del_timer(&lp->tl); |
lp | 493 | drivers/net/plip.c | lp->tl.expires = 1; |
lp | 494 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 495 | drivers/net/plip.c | lp->tl.function = (void (*)(unsigned long))plip_error; |
lp | 496 | drivers/net/plip.c | add_timer(&lp->tl); |
lp | 560 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 562 | drivers/net/plip.c | struct plip_local *snd = &lp->snd_data; |
lp | 563 | drivers/net/plip.c | struct plip_local *rcv = &lp->rcv_data; |
lp | 650 | drivers/net/plip.c | lp->tl.expires = 0; |
lp | 651 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 652 | drivers/net/plip.c | lp->tl.function |
lp | 654 | drivers/net/plip.c | add_timer(&lp->tl); |
lp | 684 | drivers/net/plip.c | lp->tl.expires = 1; |
lp | 685 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 686 | drivers/net/plip.c | lp->tl.function = (void (*)(unsigned long))plip_receive_packet; |
lp | 687 | drivers/net/plip.c | add_timer(&lp->tl); |
lp | 697 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 698 | drivers/net/plip.c | struct plip_local *rcv = &lp->rcv_data; |
lp | 699 | drivers/net/plip.c | struct plip_local *snd = &lp->snd_data; |
lp | 744 | drivers/net/plip.c | del_timer(&lp->tl); |
lp | 745 | drivers/net/plip.c | lp->tl.expires = 0; |
lp | 746 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 747 | drivers/net/plip.c | lp->tl.function = (void (*)(unsigned long))plip_receive_packet; |
lp | 748 | drivers/net/plip.c | add_timer(&lp->tl); |
lp | 806 | drivers/net/plip.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 807 | drivers/net/plip.c | struct plip_local *snd = &lp->snd_data; |
lp | 821 | drivers/net/plip.c | cx = lp->trigger_us; |
lp | 920 | drivers/net/plip.c | lp->tl.expires = 1; |
lp | 921 | drivers/net/plip.c | lp->tl.data = (unsigned long)dev; |
lp | 922 | drivers/net/plip.c | lp->tl.function = (void (*)(unsigned long))plip_send_packet; |
lp | 923 | drivers/net/plip.c | add_timer(&lp->tl); |
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 | 299 | drivers/net/skeleton.c | lp->stats.tx_aborted_errors++; |
lp | 311 | drivers/net/skeleton.c | struct net_local *lp; |
lp | 321 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
lp | 330 | drivers/net/skeleton.c | lp->stats.tx_packets++; |
lp | 336 | drivers/net/skeleton.c | lp->stats.tx_window_errors++; |
lp | 347 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 359 | drivers/net/skeleton.c | lp->stats.rx_errors++; |
lp | 360 | drivers/net/skeleton.c | if (status & 0x20) lp->stats.rx_frame_errors++; |
lp | 361 | drivers/net/skeleton.c | if (status & 0x10) lp->stats.rx_over_errors++; |
lp | 362 | drivers/net/skeleton.c | if (status & 0x08) lp->stats.rx_crc_errors++; |
lp | 363 | drivers/net/skeleton.c | if (status & 0x04) lp->stats.rx_fifo_errors++; |
lp | 371 | drivers/net/skeleton.c | lp->stats.rx_dropped++; |
lp | 384 | drivers/net/skeleton.c | lp->stats.rx_packets++; |
lp | 398 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 401 | drivers/net/skeleton.c | lp->open_time = 0; |
lp | 429 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 434 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
lp | 437 | drivers/net/skeleton.c | return &lp->stats; |
lp | 439 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 445 | drivers/net/znet.c | lp->stats.tx_packets++; |
lp | 446 | drivers/net/znet.c | lp->stats.collisions += tx_status & 0xf; |
lp | 448 | drivers/net/znet.c | if (tx_status & 0x0600) lp->stats.tx_carrier_errors++; |
lp | 449 | drivers/net/znet.c | if (tx_status & 0x0100) lp->stats.tx_fifo_errors++; |
lp | 450 | drivers/net/znet.c | if (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++; |
lp | 451 | drivers/net/znet.c | if (tx_status & 0x0020) lp->stats.tx_aborted_errors++; |
lp | 454 | drivers/net/znet.c | lp->stats.tx_errors++; |
lp | 474 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 541 | drivers/net/znet.c | lp->stats.rx_errors++; |
lp | 542 | drivers/net/znet.c | if (status & 0x0800) lp->stats.rx_crc_errors++; |
lp | 543 | drivers/net/znet.c | if (status & 0x0400) lp->stats.rx_frame_errors++; |
lp | 544 | drivers/net/znet.c | if (status & 0x0200) lp->stats.rx_over_errors++; /* Wrong. */ |
lp | 545 | drivers/net/znet.c | if (status & 0x0100) lp->stats.rx_fifo_errors++; |
lp | 546 | drivers/net/znet.c | if (status & 0x0080) lp->stats.rx_length_errors++; |
lp | 548 | drivers/net/znet.c | lp->stats.rx_length_errors++; |
lp | 558 | drivers/net/znet.c | lp->stats.rx_dropped++; |
lp | 586 | drivers/net/znet.c | lp->stats.rx_dropped++; |
lp | 590 | drivers/net/znet.c | lp->stats.rx_packets++; |
lp | 636 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
lp | 638 | drivers/net/znet.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 | 726 | kernel/sys.c | unsigned long *lp, *lpend, *dest; |
lp | 758 | kernel/sys.c | lp = (unsigned long *) &r; |
lp | 761 | kernel/sys.c | for (; lp < lpend; lp++, dest++) |
lp | 762 | 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; |