taglinefilesource code
lp40arch/i386/kernel/ldt.cunsigned long *lp;
lp76arch/i386/kernel/ldt.clp = (unsigned long *) &current->ldt[ldt_info.entry_number];
lp79arch/i386/kernel/ldt.c*lp = 0;
lp80arch/i386/kernel/ldt.c*(lp+1) = 0;
lp83arch/i386/kernel/ldt.c*lp = ((ldt_info.base_addr & 0x0000ffff) << 16) |
lp85arch/i386/kernel/ldt.c*(lp+1) = (ldt_info.base_addr & 0xff000000) |
lp158drivers/char/lp.cstruct lp_struct *lp = &lp_table[0];
lp160drivers/char/lp.cwhile (irq != lp->irq) {
lp161drivers/char/lp.cif (++lp >= &lp_table[LP_NO])
lp165drivers/char/lp.cwake_up(&lp->lp_wait_q);
lp173drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
lp179drivers/char/lp.cmemcpy_fromfs(lp->lp_buffer, buf, copy_size);
lp182drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
lp216drivers/char/lp.cinterruptible_sleep_on(&lp->lp_wait_q);
lp441drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
lp450drivers/char/lp.clp->lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
lp451drivers/char/lp.cif (!lp->lp_buffer)
lp466drivers/char/lp.ckfree_s(lp->lp_buffer, LP_BUFFER_SIZE);
lp467drivers/char/lp.clp->lp_buffer = NULL;
lp474drivers/char/lp.ckfree_s(lp->lp_buffer, LP_BUFFER_SIZE);
lp475drivers/char/lp.clp->lp_buffer = NULL;
lp335drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
lp348drivers/net/3c501.clp->stats.tx_errors++;
lp378drivers/net/3c501.clp->tx_pkt_start = gp_start;
lp379drivers/net/3c501.clp->collisions = 0;
lp389drivers/net/3c501.clp->loading=1;
lp400drivers/net/3c501.cif(lp->loading==2)    /* A receive upset our load, despite our best efforts */
lp423drivers/net/3c501.cstruct net_local *lp;
lp433drivers/net/3c501.clp = (struct net_local *)dev->priv;
lp442drivers/net/3c501.clp->loading=2;    /* So we can spot loading interruptions */
lp474drivers/net/3c501.clp->stats.tx_aborted_errors++;
lp482drivers/net/3c501.coutw(lp->tx_pkt_start, GP_LOW);
lp484drivers/net/3c501.clp->stats.collisions++;
lp491drivers/net/3c501.clp->stats.tx_packets++;
lp516drivers/net/3c501.clp->stats.rx_missed_errors++;
lp518drivers/net/3c501.clp->stats.rx_length_errors++;
lp552drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
lp565drivers/net/3c501.clp->stats.rx_over_errors++;
lp582drivers/net/3c501.clp->stats.rx_dropped++;
lp597drivers/net/3c501.clp->stats.rx_packets++;
lp651drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
lp652drivers/net/3c501.creturn &lp->stats;
lp457drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp472drivers/net/3c507.cif (lp->last_restart == lp->stats.tx_packets) {
lp481drivers/net/3c507.clp->last_restart = lp->stats.tx_packets;
lp523drivers/net/3c507.cstruct net_local *lp;
lp535drivers/net/3c507.clp = (struct net_local *)dev->priv;
lp548drivers/net/3c507.cwhile (lp->tx_reap != lp->tx_head) {
lp549drivers/net/3c507.cunsigned short tx_status = shmem[lp->tx_reap>>1];
lp552drivers/net/3c507.cif (net_debug > 5)  printk("Couldn't reap %#x.\n", lp->tx_reap);
lp556drivers/net/3c507.clp->stats.tx_packets++;
lp557drivers/net/3c507.clp->stats.collisions += tx_status & 0xf;
lp561drivers/net/3c507.clp->stats.tx_errors++;
lp562drivers/net/3c507.cif (tx_status & 0x0600)  lp->stats.tx_carrier_errors++;
lp563drivers/net/3c507.cif (tx_status & 0x0100)  lp->stats.tx_fifo_errors++;
lp564drivers/net/3c507.cif (!(tx_status & 0x0040))  lp->stats.tx_heartbeat_errors++;
lp565drivers/net/3c507.cif (tx_status & 0x0020)  lp->stats.tx_aborted_errors++;
lp568drivers/net/3c507.cprintk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status);
lp569drivers/net/3c507.clp->tx_reap += TX_BUF_SIZE;
lp570drivers/net/3c507.cif (lp->tx_reap > RX_BUF_START - TX_BUF_SIZE)
lp571drivers/net/3c507.clp->tx_reap = TX_BUF_START;
lp578drivers/net/3c507.cprintk("Received packet, rx_head %04x.\n", lp->rx_head);
lp654drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp658drivers/net/3c507.creturn &lp->stats;
lp665drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp669drivers/net/3c507.cint cur_rxbuf = lp->rx_head = RX_BUF_START;
lp695drivers/net/3c507.clp->rx_tail = cur_rxbuf;
lp702drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
lp704drivers/net/3c507.c*write_ptr++ = lp->rx_head;        /* Link */
lp711drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp734drivers/net/3c507.clp->tx_cmd_link = IDLELOOP + 4;
lp735drivers/net/3c507.clp->tx_head = lp->tx_reap = TX_BUF_START;
lp770drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp772drivers/net/3c507.cushort tx_block = lp->tx_head;
lp796drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
lp797drivers/net/3c507.clp->tx_cmd_link = tx_block + 20;
lp800drivers/net/3c507.clp->tx_head = tx_block + TX_BUF_SIZE;
lp801drivers/net/3c507.cif (lp->tx_head > RX_BUF_START - TX_BUF_SIZE)
lp802drivers/net/3c507.clp->tx_head = TX_BUF_START;
lp806drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
lp809drivers/net/3c507.cif (lp->tx_head != lp->tx_reap)
lp816drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
lp818drivers/net/3c507.cushort rx_head = lp->rx_head;
lp819drivers/net/3c507.cushort rx_tail = lp->rx_tail;
lp839drivers/net/3c507.clp->stats.rx_errors++;
lp840drivers/net/3c507.cif (frame_status & 0x0800) lp->stats.rx_crc_errors++;
lp841drivers/net/3c507.cif (frame_status & 0x0400) lp->stats.rx_frame_errors++;
lp842drivers/net/3c507.cif (frame_status & 0x0200) lp->stats.rx_fifo_errors++;
lp843drivers/net/3c507.cif (frame_status & 0x0100) lp->stats.rx_over_errors++;
lp844drivers/net/3c507.cif (frame_status & 0x0080) lp->stats.rx_length_errors++;
lp853drivers/net/3c507.clp->stats.rx_dropped++;
lp865drivers/net/3c507.clp->stats.rx_packets++;
lp880drivers/net/3c507.clp->rx_head = rx_head;
lp881drivers/net/3c507.clp->rx_tail = rx_tail;
lp390drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
lp462drivers/net/3c509.cif (tx_status & 0x38) lp->stats.tx_aborted_errors++;
lp535drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
lp542drivers/net/3c509.creturn &lp->stats;
lp552drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
lp560drivers/net/3c509.clp->stats.tx_carrier_errors   += inb(ioaddr + 0);
lp561drivers/net/3c509.clp->stats.tx_heartbeat_errors  += inb(ioaddr + 1);
lp563drivers/net/3c509.clp->stats.collisions      += inb(ioaddr + 3);
lp564drivers/net/3c509.clp->stats.tx_window_errors    += inb(ioaddr + 4);
lp565drivers/net/3c509.clp->stats.rx_fifo_errors    += inb(ioaddr + 5);
lp566drivers/net/3c509.clp->stats.tx_packets      += inb(ioaddr + 6);
lp581drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
lp591drivers/net/3c509.clp->stats.rx_errors++;
lp593drivers/net/3c509.ccase 0x0000:    lp->stats.rx_over_errors++; break;
lp594drivers/net/3c509.ccase 0x0800:    lp->stats.rx_length_errors++; break;
lp595drivers/net/3c509.ccase 0x1000:    lp->stats.rx_frame_errors++; break;
lp596drivers/net/3c509.ccase 0x1800:    lp->stats.rx_length_errors++; break;
lp597drivers/net/3c509.ccase 0x2000:    lp->stats.rx_frame_errors++; break;
lp598drivers/net/3c509.ccase 0x2800:    lp->stats.rx_crc_errors++; break;
lp619drivers/net/3c509.clp->stats.rx_packets++;
lp625drivers/net/3c509.clp->stats.rx_dropped++;
lp202drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp206drivers/net/apricot.clp->scb.rfd = (struct i596_rfd *)I596_NULL;
lp222drivers/net/apricot.clp->rx_tail = rfd;
lp227drivers/net/apricot.crfd->next = lp->scb.rfd;
lp228drivers/net/apricot.clp->scb.rfd = rfd;
lp232drivers/net/apricot.clp->rx_tail->next = lp->scb.rfd;
lp240drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp241drivers/net/apricot.cstruct i596_rfd *rfd = lp->scb.rfd;
lp243drivers/net/apricot.clp->rx_tail->next = (struct i596_rfd *)I596_NULL;
lp247drivers/net/apricot.clp->scb.rfd = rfd->next;
lp249drivers/net/apricot.crfd = lp->scb.rfd;
lp251drivers/net/apricot.cwhile (rfd != lp->rx_tail);
lp257drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp265drivers/net/apricot.coutw(((((int)&lp->scp) & 0xffff) | 2), ioaddr);
lp266drivers/net/apricot.coutw((((int)&lp->scp)>>16) & 0xffff, ioaddr);
lp268drivers/net/apricot.clp->last_cmd = jiffies;
lp270drivers/net/apricot.clp->scp.sysbus = 0x00440000;
lp271drivers/net/apricot.clp->scp.iscp = &(lp->iscp);
lp272drivers/net/apricot.clp->iscp.scb = &(lp->scb);
lp273drivers/net/apricot.clp->iscp.stat = 0x0001;
lp274drivers/net/apricot.clp->cmd_backlog = 0;
lp276drivers/net/apricot.clp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL;
lp284drivers/net/apricot.cwhile (lp->iscp.stat)
lp288drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
lp292drivers/net/apricot.clp->scb.command = 0;
lp294drivers/net/apricot.cmemcpy (lp->i596_config, init_setup, 14);
lp295drivers/net/apricot.clp->set_conf.command = CmdConfigure;
lp296drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
lp298drivers/net/apricot.cmemcpy (lp->eth_addr, dev->dev_addr, 6);
lp299drivers/net/apricot.clp->set_add.command = CmdSASetup;
lp300drivers/net/apricot.ci596_add_cmd(dev, &lp->set_add);
lp302drivers/net/apricot.clp->tdr.command = CmdTDR;
lp303drivers/net/apricot.ci596_add_cmd(dev, &lp->tdr);
lp306drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp310drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
lp314drivers/net/apricot.clp->scb.command = RX_START;
lp318drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp322drivers/net/apricot.clp->scb.status, lp->scb.command);
lp332drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp337drivers/net/apricot.cwhile ((lp->scb.rfd->stat) & STAT_C)
lp339drivers/net/apricot.cif (i596_debug >2) print_eth(lp->scb.rfd->data);
lp341drivers/net/apricot.cif ((lp->scb.rfd->stat) & STAT_OK)
lp344drivers/net/apricot.cint pkt_len = lp->scb.rfd->count & 0x3fff;
lp352drivers/net/apricot.clp->stats.rx_dropped++;
lp357drivers/net/apricot.cmemcpy(skb_put(skb,pkt_len), lp->scb.rfd->data, pkt_len);
lp361drivers/net/apricot.clp->stats.rx_packets++;
lp367drivers/net/apricot.clp->stats.rx_errors++;
lp368drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++;
lp369drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++;
lp370drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++;
lp371drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++;
lp372drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++;
lp373drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++;
lp374drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++;
lp377drivers/net/apricot.clp->scb.rfd->stat = 0;
lp378drivers/net/apricot.clp->rx_tail->cmd = 0;
lp379drivers/net/apricot.clp->rx_tail = lp->scb.rfd;
lp380drivers/net/apricot.clp->scb.rfd = lp->scb.rfd->next;
lp381drivers/net/apricot.clp->rx_tail->count = 0;
lp382drivers/net/apricot.clp->rx_tail->cmd = CMD_EOL;
lp392drivers/net/apricot.ci596_cleanup_cmd(struct i596_private *lp)
lp399drivers/net/apricot.cwhile (lp->cmd_head != (struct i596_cmd *) I596_NULL)
lp401drivers/net/apricot.cptr = lp->cmd_head;
lp403drivers/net/apricot.clp->cmd_head = lp->cmd_head->next;
lp404drivers/net/apricot.clp->cmd_backlog--;
lp415drivers/net/apricot.clp->stats.tx_errors++;
lp416drivers/net/apricot.clp->stats.tx_aborted_errors++;
lp435drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp439drivers/net/apricot.clp->scb.status, lp->scb.command);
lp443drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
lp447drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
lp453drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp457drivers/net/apricot.clp->scb.status, lp->scb.command);
lp464drivers/net/apricot.clp->scb.command = CUC_ABORT|RX_ABORT;
lp470drivers/net/apricot.cwhile ((lp->scb.status, lp->scb.command) || lp->scb.command)
lp474drivers/net/apricot.clp->scb.status, lp->scb.command);
lp478drivers/net/apricot.ci596_cleanup_cmd(lp);
lp489drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp502drivers/net/apricot.cif (lp->cmd_head != (struct i596_cmd *) I596_NULL)
lp503drivers/net/apricot.clp->cmd_tail->next = cmd;
lp506drivers/net/apricot.clp->cmd_head = cmd;
lp507drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp511drivers/net/apricot.clp->scb.status, lp->scb.command);
lp515drivers/net/apricot.clp->scb.cmd = cmd;
lp516drivers/net/apricot.clp->scb.command = CUC_START;
lp519drivers/net/apricot.clp->cmd_tail = cmd;
lp520drivers/net/apricot.clp->cmd_backlog++;
lp522drivers/net/apricot.clp->cmd_head = lp->scb.cmd;
lp525drivers/net/apricot.cif (lp->cmd_backlog > 16) 
lp527drivers/net/apricot.cint tickssofar = jiffies - lp->last_cmd;
lp533drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
lp578drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp591drivers/net/apricot.clp->stats.tx_errors++;
lp593drivers/net/apricot.cif (lp->last_restart == lp->stats.tx_packets) {
lp597drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
lp602drivers/net/apricot.clp->scb.command = CUC_START|RX_START;
lp605drivers/net/apricot.clp->last_restart = lp->stats.tx_packets;
lp637drivers/net/apricot.clp->stats.tx_dropped++;
lp659drivers/net/apricot.clp->stats.tx_packets++;
lp688drivers/net/apricot.cstruct i596_private *lp;
lp745drivers/net/apricot.clp = (struct i596_private *)dev->priv;
lp746drivers/net/apricot.cmemset((void *)lp, 0, sizeof(struct i596_private));
lp747drivers/net/apricot.clp->scb.command = 0;
lp748drivers/net/apricot.clp->scb.cmd = (struct i596_cmd *) I596_NULL;
lp749drivers/net/apricot.clp->scb.rfd = (struct i596_rfd *)I596_NULL;
lp758drivers/net/apricot.cstruct i596_private *lp;
lp777drivers/net/apricot.clp = (struct i596_private *)dev->priv;
lp779drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp782drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
lp785drivers/net/apricot.cstatus = lp->scb.status;
lp801drivers/net/apricot.cwhile ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (lp->cmd_head->status & STAT_C))
lp803drivers/net/apricot.cptr = lp->cmd_head;
lp805drivers/net/apricot.clp->cmd_head = lp->cmd_head->next;
lp806drivers/net/apricot.clp->cmd_backlog--;
lp823drivers/net/apricot.clp->stats.tx_errors++;
lp824drivers/net/apricot.cif ((ptr->status) & 0x0020) lp->stats.collisions++;
lp825drivers/net/apricot.cif (!((ptr->status) & 0x0040)) lp->stats.tx_heartbeat_errors++;
lp826drivers/net/apricot.cif ((ptr->status) & 0x0400) lp->stats.tx_carrier_errors++;
lp827drivers/net/apricot.cif ((ptr->status) & 0x0800) lp->stats.collisions++;
lp828drivers/net/apricot.cif ((ptr->status) & 0x1000) lp->stats.tx_aborted_errors++;
lp868drivers/net/apricot.clp->last_cmd = jiffies;
lp872drivers/net/apricot.cptr = lp->cmd_head;
lp873drivers/net/apricot.cwhile ((ptr != (struct i596_cmd *) I596_NULL) && (ptr != lp->cmd_tail))
lp879drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
lp880drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
lp901drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp904drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
lp907drivers/net/apricot.clp->scb.command = ack_cmd;
lp924drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp932drivers/net/apricot.cdev->name, lp->scb.status);
lp934drivers/net/apricot.clp->scb.command = CUC_ABORT|RX_ABORT;
lp937drivers/net/apricot.ci596_cleanup_cmd(lp);
lp939drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
lp943drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
lp960drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp962drivers/net/apricot.creturn &lp->stats;
lp975drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
lp997drivers/net/apricot.cif (lp->set_conf.next != (struct i596_cmd * ) I596_NULL) return;
lp999drivers/net/apricot.clp->i596_config[8] &= ~0x01;
lp1001drivers/net/apricot.clp->i596_config[8] |= 0x01;
lp1003drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
lp251drivers/net/arcnet.c#define TBUSY lp->adev->tbusy \
lp252drivers/net/arcnet.c=lp->edev->tbusy
lp253drivers/net/arcnet.c#define IF_TBUSY (lp->adev->tbusy \
lp254drivers/net/arcnet.c|| lp->edev->tbusy)
lp255drivers/net/arcnet.c#define START lp->adev->start \
lp256drivers/net/arcnet.c=lp->edev->start
lp543drivers/net/arcnet.cstruct arcnet_local *lp;
lp637drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
lp670drivers/net/arcnet.clp->arcnum,lp->arcnum);
lp671drivers/net/arcnet.cif (lp->arcnum==0)
lp673drivers/net/arcnet.cif (lp->arcnum==255)
lp675drivers/net/arcnet.cdev->dev_addr[0]=lp->arcnum;
lp676drivers/net/arcnet.clp->sequence=1;
lp677drivers/net/arcnet.clp->recbuf=0;
lp869drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
lp871drivers/net/arcnet.cint delayval,recbuf=lp->recbuf;
lp896drivers/net/arcnet.clp->arcnum=cardmem[1];  /* save address for later use */
lp899drivers/net/arcnet.crecbuf=lp->recbuf=0;
lp900drivers/net/arcnet.clp->txbuf=2;
lp921drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp923drivers/net/arcnet.cether_setup(lp->edev);
lp925drivers/net/arcnet.cdev->dev_addr[5]=lp->arcnum;
lp927drivers/net/arcnet.clp->edev->open=NULL;
lp928drivers/net/arcnet.clp->edev->stop=NULL;
lp929drivers/net/arcnet.clp->edev->hard_start_xmit=arcnetE_send_packet;
lp933drivers/net/arcnet.clp->edev->name);
lp956drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp977drivers/net/arcnet.clp->intx=0;
lp978drivers/net/arcnet.clp->in_txhandler=0;
lp981drivers/net/arcnet.clp->adev=dev;
lp984drivers/net/arcnet.clp->adev->name);
lp987drivers/net/arcnet.clp->edev=(struct device *)kmalloc(sizeof(struct device),GFP_KERNEL);
lp988drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
lp989drivers/net/arcnet.clp->edev->name=(char *)kmalloc(10,GFP_KERNEL);
lp990drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
lp991drivers/net/arcnet.clp->edev->init=arcnetE_init;
lp992drivers/net/arcnet.cregister_netdev(lp->edev);
lp1011drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1023drivers/net/arcnet.clp->adev=NULL;
lp1026drivers/net/arcnet.clp->edev->start=0;
lp1027drivers/net/arcnet.clp->edev->priv=NULL;
lp1028drivers/net/arcnet.cunregister_netdev(lp->edev);
lp1029drivers/net/arcnet.ckfree(lp->edev->name);
lp1030drivers/net/arcnet.ckfree(lp->edev);
lp1031drivers/net/arcnet.clp->edev=NULL;
lp1056drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1059drivers/net/arcnet.clp->intx++;
lp1063drivers/net/arcnet.cinb(STATUS),lp->intx);
lp1065drivers/net/arcnet.cif (lp->in_txhandler)
lp1068drivers/net/arcnet.clp->intx--;
lp1077drivers/net/arcnet.cint recbuf=lp->recbuf;
lp1084drivers/net/arcnet.cstatus,tickssofar,lp->outgoing.skb,
lp1085drivers/net/arcnet.clp->outgoing.numsegs,
lp1086drivers/net/arcnet.clp->outgoing.segnum);
lp1087drivers/net/arcnet.clp->intx--;
lp1093drivers/net/arcnet.cstatus,lp->intx,lp->in_txhandler,tickssofar);
lp1095drivers/net/arcnet.clp->stats.tx_errors++;
lp1105drivers/net/arcnet.cif (lp->outgoing.skb)
lp1107drivers/net/arcnet.cdev_kfree_skb(lp->outgoing.skb,FREE_WRITE);
lp1108drivers/net/arcnet.clp->stats.tx_dropped++;
lp1110drivers/net/arcnet.clp->outgoing.skb=NULL;
lp1113drivers/net/arcnet.clp->intx--;
lp1116drivers/net/arcnet.clp->txready=0;
lp1117drivers/net/arcnet.clp->sending=0;
lp1131drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
lp1133drivers/net/arcnet.clp->intx--;
lp1137drivers/net/arcnet.cif (lp->txready)  /* transmit already in progress! */
lp1145drivers/net/arcnet.clp->stats.tx_errors++;
lp1146drivers/net/arcnet.clp->intx--;
lp1147drivers/net/arcnet.clp->txready=0;  /* we definitely need this line! */
lp1157drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
lp1158drivers/net/arcnet.clp->intx--;
lp1162drivers/net/arcnet.cstruct Outgoing *out=&(lp->outgoing);
lp1181drivers/net/arcnet.cout->hdr->sequence=(lp->sequence++);
lp1183drivers/net/arcnet.cif (lp->txready && inb(STATUS)&TXFREEflag)
lp1205drivers/net/arcnet.cif (!lp->sending)
lp1229drivers/net/arcnet.cif (lp->txready && inb(STATUS)&TXFREEflag)
lp1232drivers/net/arcnet.cif (!lp->txready)
lp1238drivers/net/arcnet.cif (!lp->sending)
lp1242drivers/net/arcnet.cif (!lp->sending)
lp1261drivers/net/arcnet.clp->intx--;
lp1262drivers/net/arcnet.clp->stats.tx_packets++;
lp1274drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1276drivers/net/arcnet.cstruct Outgoing *out=&(lp->outgoing);
lp1278drivers/net/arcnet.cif (lp->txready)
lp1317drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1320drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
lp1325drivers/net/arcnet.clp->txbuf=lp->txbuf^1;  /* XOR with 1 to alternate between 2 and 3 */
lp1335drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
lp1406drivers/net/arcnet.clp->outgoing.lastload_dest=hdr->daddr;
lp1408drivers/net/arcnet.clp->txready=lp->txbuf;  /* packet is ready for sending */
lp1417drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
lp1424drivers/net/arcnet.cif (!(inb(STATUS)&TXFREEflag) || !lp->txready) return;
lp1427drivers/net/arcnet.coutb(TXcmd|(lp->txready<<3),COMMAND);
lp1432drivers/net/arcnet.clp->txready=0;
lp1433drivers/net/arcnet.clp->sending++;
lp1435drivers/net/arcnet.clp->outgoing.lasttrans_dest=lp->outgoing.lastload_dest;
lp1436drivers/net/arcnet.clp->outgoing.lastload_dest=0;
lp1446drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1482drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
lp1491drivers/net/arcnet.clp->adev->name,lp->edev->name);
lp1501drivers/net/arcnet.clp->txbuf=lp->txbuf^1; /* XOR with 1 to alternate btw 2 & 3 */
lp1505drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
lp1565drivers/net/arcnet.clp->outgoing.lastload_dest=daddr;
lp1567drivers/net/arcnet.clp->txready=lp->txbuf;  /* packet is ready for sending */
lp1613drivers/net/arcnet.cstruct arcnet_local *lp;
lp1622drivers/net/arcnet.clp = (struct arcnet_local *)dev->priv;
lp1664drivers/net/arcnet.clp->stats.tx_carrier_errors++;
lp1671drivers/net/arcnet.cint recbuf=lp->recbuf=!lp->recbuf;
lp1687drivers/net/arcnet.cif (status&TXFREEflag && !lp->in_txhandler && lp->sending)
lp1689drivers/net/arcnet.cstruct Outgoing *out=&(lp->outgoing);
lp1691drivers/net/arcnet.clp->in_txhandler++;
lp1692drivers/net/arcnet.clp->sending--;
lp1701drivers/net/arcnet.cif (lp->outgoing.lasttrans_dest != 0)
lp1706drivers/net/arcnet.clp->outgoing.lasttrans_dest);
lp1707drivers/net/arcnet.clp->stats.tx_errors++;
lp1714drivers/net/arcnet.clp->outgoing.lasttrans_dest);
lp1720drivers/net/arcnet.cif (lp->txready)
lp1726drivers/net/arcnet.cif (lp->intx)
lp1728drivers/net/arcnet.clp->in_txhandler--;
lp1732drivers/net/arcnet.cif (!lp->outgoing.skb)
lp1738drivers/net/arcnet.cif (!lp->txready && IF_TBUSY)
lp1744drivers/net/arcnet.clp->in_txhandler--;
lp1755drivers/net/arcnet.cif (lp->txready && !lp->sending)
lp1770drivers/net/arcnet.cif (!lp->txready && IF_TBUSY)
lp1778drivers/net/arcnet.clp->in_txhandler--;
lp1787drivers/net/arcnet.cif (dev->start && lp->sending )
lp1810drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1826drivers/net/arcnet.clp->stats.rx_errors++;
lp1904drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp1928drivers/net/arcnet.cstruct Incoming *in=&lp->incoming[saddr];
lp1939drivers/net/arcnet.clp->stats.tx_dropped++;
lp1940drivers/net/arcnet.clp->stats.rx_errors++;
lp1949drivers/net/arcnet.clp->stats.rx_dropped++;
lp1995drivers/net/arcnet.clp->stats.rx_frame_errors++;
lp2015drivers/net/arcnet.clp->stats.rx_packets++;
lp2036drivers/net/arcnet.cstruct Incoming *in=&lp->incoming[saddr];
lp2048drivers/net/arcnet.clp->stats.tx_dropped++;
lp2049drivers/net/arcnet.clp->stats.rx_fifo_errors++;
lp2062drivers/net/arcnet.clp->stats.tx_dropped++;
lp2063drivers/net/arcnet.clp->stats.rx_over_errors++;
lp2075drivers/net/arcnet.clp->stats.rx_dropped++;
lp2085drivers/net/arcnet.clp->stats.rx_dropped++;
lp2115drivers/net/arcnet.clp->stats.rx_errors++;
lp2136drivers/net/arcnet.clp->stats.tx_dropped++;
lp2137drivers/net/arcnet.clp->stats.rx_fifo_errors++;
lp2182drivers/net/arcnet.clp->stats.rx_packets++;
lp2194drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp2204drivers/net/arcnet.clp->stats.rx_dropped++;
lp2209drivers/net/arcnet.cskb->dev = lp->edev;
lp2232drivers/net/arcnet.clp->stats.rx_packets++;
lp2250drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
lp2252drivers/net/arcnet.creturn &lp->stats;
lp2265drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
lp2403drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
lp2433drivers/net/arcnet.clp->stats.rx_frame_errors++;
lp325drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
lp350drivers/net/at1700.clp->tx_started = 0;
lp351drivers/net/at1700.clp->tx_queue = 0;
lp352drivers/net/at1700.clp->tx_queue_len = 0;
lp372drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
lp388drivers/net/at1700.clp->stats.tx_errors++;
lp396drivers/net/at1700.clp->tx_started = 0;
lp397drivers/net/at1700.clp->tx_queue = 0;
lp398drivers/net/at1700.clp->tx_queue_len = 0;
lp423drivers/net/at1700.clp->tx_queue++;
lp424drivers/net/at1700.clp->tx_queue_len += length + 2;
lp426drivers/net/at1700.cif (lp->tx_started == 0) {
lp428drivers/net/at1700.coutb(0x80 | lp->tx_queue, ioaddr + TX_START);
lp429drivers/net/at1700.clp->tx_queue = 0;
lp430drivers/net/at1700.clp->tx_queue_len = 0;
lp432drivers/net/at1700.clp->tx_started = 1;
lp434drivers/net/at1700.c} else if (lp->tx_queue_len < 4096 - 1502)
lp452drivers/net/at1700.cstruct net_local *lp;
lp462drivers/net/at1700.clp = (struct net_local *)dev->priv;
lp474drivers/net/at1700.clp->stats.tx_packets++;
lp475drivers/net/at1700.cif (lp->tx_queue) {
lp476drivers/net/at1700.coutb(0x80 | lp->tx_queue, ioaddr + TX_START);
lp477drivers/net/at1700.clp->tx_queue = 0;
lp478drivers/net/at1700.clp->tx_queue_len = 0;
lp483drivers/net/at1700.clp->tx_started = 0;
lp500drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
lp519drivers/net/at1700.clp->stats.rx_errors++;
lp520drivers/net/at1700.cif (status & 0x08) lp->stats.rx_length_errors++;
lp521drivers/net/at1700.cif (status & 0x04) lp->stats.rx_frame_errors++;
lp522drivers/net/at1700.cif (status & 0x02) lp->stats.rx_crc_errors++;
lp523drivers/net/at1700.cif (status & 0x01) lp->stats.rx_over_errors++;
lp534drivers/net/at1700.clp->stats.rx_errors++;
lp544drivers/net/at1700.clp->stats.rx_dropped++;
lp553drivers/net/at1700.clp->stats.rx_packets++;
lp606drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
lp612drivers/net/at1700.creturn &lp->stats;
lp234drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp235drivers/net/atp.clp->addr_mode = CMR2h_Normal;
lp342drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp351drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
lp368drivers/net/atp.clp->tx_unit_busy = 0;
lp369drivers/net/atp.clp->pac_cnt_in_tx_buf = 0;
lp370drivers/net/atp.clp->saved_tx_size = 0;
lp416drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp428drivers/net/atp.clp->stats.tx_errors++;
lp462drivers/net/atp.clp->pac_cnt_in_tx_buf++;
lp463drivers/net/atp.cif (lp->tx_unit_busy == 0) {
lp465drivers/net/atp.clp->saved_tx_size = 0;         /* Redundant */
lp466drivers/net/atp.clp->re_tx = 0;
lp467drivers/net/atp.clp->tx_unit_busy = 1;
lp469drivers/net/atp.clp->saved_tx_size = length;
lp488drivers/net/atp.cstruct net_local *lp;
lp499drivers/net/atp.clp = (struct net_local *)dev->priv;
lp522drivers/net/atp.clp->stats.rx_over_errors++;
lp528drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
lp542drivers/net/atp.clp->stats.collisions++;
lp543drivers/net/atp.cif (++lp->re_tx > 15) {
lp544drivers/net/atp.clp->stats.tx_aborted_errors++;
lp553drivers/net/atp.clp->stats.tx_packets++;
lp554drivers/net/atp.clp->pac_cnt_in_tx_buf--;
lp555drivers/net/atp.cif ( lp->saved_tx_size) {
lp556drivers/net/atp.ctrigger_send(ioaddr, lp->saved_tx_size);
lp557drivers/net/atp.clp->saved_tx_size = 0;
lp558drivers/net/atp.clp->re_tx = 0;
lp560drivers/net/atp.clp->tx_unit_busy = 0;
lp572drivers/net/atp.clp->stats.rx_missed_errors++;
lp622drivers/net/atp.cstruct net_local *lp = (struct net_local *)atp_timed_dev->priv;
lp625drivers/net/atp.clp->stats.tx_errors++;
lp627drivers/net/atp.clp->stats.tx_dropped++;
lp629drivers/net/atp.clp->stats.collisions++;
lp631drivers/net/atp.clp->stats.rx_errors++;
lp646drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp661drivers/net/atp.clp->stats.rx_errors++;
lp676drivers/net/atp.clp->stats.rx_dropped++;
lp694drivers/net/atp.clp->stats.rx_packets++;
lp725drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp732drivers/net/atp.clp->addr_mode = CMR2h_OFF;
lp751drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp752drivers/net/atp.creturn &lp->stats;
lp764drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
lp766drivers/net/atp.clp->addr_mode = num_addrs ? CMR2h_PROMISC : CMR2h_Normal;
lp767drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
lp270drivers/net/de4x5.cimr |= lp->irq_en;\
lp276drivers/net/de4x5.cimr &= ~lp->irq_en;\
lp281drivers/net/de4x5.cimr |= lp->irq_mask;\
lp287drivers/net/de4x5.cimr &= ~lp->irq_mask;\
lp397drivers/net/de4x5.c#define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
lp398drivers/net/de4x5.clp->tx_old+lp->txRingSize-lp->tx_new-1:\
lp399drivers/net/de4x5.clp->tx_old               -lp->tx_new-1)
lp532drivers/net/de4x5.cstruct bus_type *lp = &bus;
lp537drivers/net/de4x5.cif (lp->chipset == DC21041) {
lp548drivers/net/de4x5.cif (lp->bus == PCI) {
lp550drivers/net/de4x5.cif ((lp->chipset == DC21040) || (lp->chipset == DC21041)) {
lp552drivers/net/de4x5.c} else if (lp->chipset == DC21140) {
lp564drivers/net/de4x5.cif (lp->bus == EISA) {
lp569drivers/net/de4x5.ciobase, lp->bus_num, lp->device);
lp579drivers/net/de4x5.ctmpbus = lp->bus;
lp580drivers/net/de4x5.ctmpchs = lp->chipset;
lp583drivers/net/de4x5.cstruct de4x5_private *lp;
lp595drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
lp597drivers/net/de4x5.clp->bus = tmpbus;
lp598drivers/net/de4x5.clp->chipset = tmpchs;
lp604drivers/net/de4x5.clp->autosense = AUTO;
lp606drivers/net/de4x5.cif (lp->chipset != DC21140) {
lp607drivers/net/de4x5.cif ((lp->chipset == DC21040) && (de4x5_autosense & TP_NW)) {
lp610drivers/net/de4x5.cif ((lp->chipset == DC21041) && (de4x5_autosense & BNC_AUI)) {
lp613drivers/net/de4x5.clp->autosense = de4x5_autosense & 0x001f;
lp615drivers/net/de4x5.clp->autosense = de4x5_autosense & 0x00c0;
lp619drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
lp620drivers/net/de4x5.crequest_region(iobase, (lp->bus == PCI ? DE4X5_PCI_TOTAL_SIZE :
lp622drivers/net/de4x5.clp->adapter_name);
lp634drivers/net/de4x5.clp->rx_ring[i].status = 0;
lp635drivers/net/de4x5.clp->rx_ring[i].des1 = RX_BUFF_SZ;
lp636drivers/net/de4x5.clp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ);
lp637drivers/net/de4x5.clp->rx_ring[i].next = (u32)NULL;
lp644drivers/net/de4x5.clp->rxRingSize = NUM_RX_DESC;
lp645drivers/net/de4x5.clp->txRingSize = NUM_TX_DESC;
lp648drivers/net/de4x5.clp->rx_ring[lp->rxRingSize - 1].des1 |= RD_RER;
lp649drivers/net/de4x5.clp->tx_ring[lp->txRingSize - 1].des1 |= TD_TER;
lp652drivers/net/de4x5.coutl(virt_to_bus(lp->rx_ring), DE4X5_RRBA);
lp653drivers/net/de4x5.coutl(virt_to_bus(lp->tx_ring), DE4X5_TRBA);
lp656drivers/net/de4x5.clp->irq_mask = IMR_RIM | IMR_TIM | IMR_TUM ;
lp657drivers/net/de4x5.clp->irq_en   = IMR_NIM | IMR_AIM;
lp659drivers/net/de4x5.clp->tx_enable = TRUE;
lp700drivers/net/de4x5.cif (status) release_region(iobase, (lp->bus == PCI ? 
lp735drivers/net/de4x5.cif (lp->chipset == DC21041) {
lp740drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp741drivers/net/de4x5.cif (lp) {
lp742drivers/net/de4x5.ckfree_s(bus_to_virt(lp->rx_ring[0].buf),
lp758drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp766drivers/net/de4x5.cif (lp->chipset == DC21041) {
lp771drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) {
lp790drivers/net/de4x5.cprintk("\t0x%8.8lx  0x%8.8lx\n",(u_long)lp->rx_ring,(u_long)lp->tx_ring);
lp792drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
lp794drivers/net/de4x5.cprintk("0x%8.8lx  ",(u_long)&lp->rx_ring[i].status);
lp797drivers/net/de4x5.cprintk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status);
lp799drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
lp801drivers/net/de4x5.cprintk("0x%8.8lx  ", (u_long)&lp->tx_ring[i].status);
lp804drivers/net/de4x5.cprintk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status);
lp806drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
lp808drivers/net/de4x5.cprintk("0x%8.8x  ",lp->rx_ring[i].buf);
lp811drivers/net/de4x5.cprintk("...0x%8.8x\n",lp->rx_ring[i].buf);
lp813drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
lp815drivers/net/de4x5.cprintk("0x%8.8x  ", lp->tx_ring[i].buf);
lp818drivers/net/de4x5.cprintk("...0x%8.8x\n", lp->tx_ring[i].buf);
lp820drivers/net/de4x5.c(short)lp->rxRingSize, 
lp821drivers/net/de4x5.c(short)lp->txRingSize); 
lp871drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp885drivers/net/de4x5.cif (lp->chipset != DC21140) {
lp887drivers/net/de4x5.clp->setup_f = HASH_PERF;
lp890drivers/net/de4x5.clp->setup_f = PERFECT;
lp892drivers/net/de4x5.coutl(virt_to_bus(lp->rx_ring), DE4X5_RRBA);
lp893drivers/net/de4x5.coutl(virt_to_bus(lp->tx_ring), DE4X5_TRBA);
lp895drivers/net/de4x5.clp->rx_new = lp->rx_old = 0;
lp896drivers/net/de4x5.clp->tx_new = lp->tx_old = 0;
lp898drivers/net/de4x5.cfor (i = 0; i < lp->rxRingSize; i++) {
lp899drivers/net/de4x5.clp->rx_ring[i].status = R_OWN;
lp902drivers/net/de4x5.cfor (i = 0; i < lp->txRingSize; i++) {
lp903drivers/net/de4x5.clp->tx_ring[i].status = 0;
lp911drivers/net/de4x5.cif (lp->chipset != DC21140) {
lp912drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
lp914drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
lp920drivers/net/de4x5.cif (lp->tx_ring[lp->tx_new].status >= 0) j=1;
lp930drivers/net/de4x5.clp->tx_new = (++lp->tx_new) % lp->txRingSize;
lp931drivers/net/de4x5.clp->tx_old = lp->tx_new;
lp947drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp969drivers/net/de4x5.cif (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) {
lp972drivers/net/de4x5.c(lp->lostMedia <= LOST_MEDIA_THRESHOLD)) {
lp976drivers/net/de4x5.cprintk("%s: transmit timed out, status %08x, tbusy:%ld, lostMedia:%d tickssofar:%ld, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar);
lp983drivers/net/de4x5.cfor (i=lp->tx_old; i!=lp->tx_new; i=(++i)%lp->txRingSize) {
lp984drivers/net/de4x5.cif (lp->skb[i] != NULL) {
lp985drivers/net/de4x5.cif (lp->skb[i]->len != FAKE_FRAME_LEN) {
lp986drivers/net/de4x5.cif (lp->tx_ring[i].status == T_OWN) {
lp987drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
lp989drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
lp992drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
lp994drivers/net/de4x5.clp->skb[i] = NULL;
lp1043drivers/net/de4x5.cif (lp->tx_enable) {
lp1047drivers/net/de4x5.clp->tx_new = (++lp->tx_new) % lp->txRingSize; /* Ensure a wrap */
lp1078drivers/net/de4x5.cstruct de4x5_private *lp;
lp1085drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
lp1094drivers/net/de4x5.cwhile ((sts = inl(DE4X5_STS)) & lp->irq_mask) { /* Read IRQ status */
lp1107drivers/net/de4x5.clp->lostMedia = LOST_MEDIA_THRESHOLD + 1;
lp1108drivers/net/de4x5.clp->irq_mask &= ~IMR_LFM;
lp1134drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1139drivers/net/de4x5.cfor (entry = lp->rx_new; lp->rx_ring[entry].status >= 0;entry = lp->rx_new) {
lp1140drivers/net/de4x5.cstatus = lp->rx_ring[entry].status;
lp1143drivers/net/de4x5.clp->rx_old = entry;
lp1148drivers/net/de4x5.clp->stats.rx_errors++;              /* Update the error stats. */
lp1149drivers/net/de4x5.cif (status & (RD_RF | RD_TL)) lp->stats.rx_frame_errors++;
lp1150drivers/net/de4x5.cif (status & RD_CE)           lp->stats.rx_crc_errors++;
lp1151drivers/net/de4x5.cif (status & RD_OF)           lp->stats.rx_fifo_errors++;
lp1154drivers/net/de4x5.cshort pkt_len = (short)(lp->rx_ring[entry].status >> 16) - 4;
lp1160drivers/net/de4x5.cif (entry < lp->rx_old) {         /* Wrapped buffer */
lp1161drivers/net/de4x5.cshort len = (lp->rxRingSize - lp->rx_old) * RX_BUFF_SZ;
lp1162drivers/net/de4x5.cmemcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len);
lp1163drivers/net/de4x5.cmemcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len);
lp1165drivers/net/de4x5.cmemcpy(skb_put(skb,pkt_len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), pkt_len);
lp1173drivers/net/de4x5.clp->stats.rx_packets++;
lp1176drivers/net/de4x5.clp->pktStats.bins[i]++;
lp1183drivers/net/de4x5.clp->pktStats.broadcast++;
lp1185drivers/net/de4x5.clp->pktStats.multicast++;
lp1189drivers/net/de4x5.clp->pktStats.unicast++;
lp1192drivers/net/de4x5.clp->pktStats.bins[0]++;           /* Duplicates stats.rx_packets */
lp1193drivers/net/de4x5.cif (lp->pktStats.bins[0] == 0) {  /* Reset counters */
lp1194drivers/net/de4x5.cmemset((char *)&lp->pktStats, 0, sizeof(lp->pktStats));
lp1198drivers/net/de4x5.clp->stats.rx_dropped++;        /* Really, deferred. */
lp1204drivers/net/de4x5.cfor (; lp->rx_old!=entry; lp->rx_old=(++lp->rx_old)%lp->rxRingSize) {
lp1205drivers/net/de4x5.clp->rx_ring[lp->rx_old].status = R_OWN;
lp1208drivers/net/de4x5.clp->rx_ring[entry].status = R_OWN;
lp1215drivers/net/de4x5.clp->rx_new = (++lp->rx_new) % lp->rxRingSize;
lp1227drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1232drivers/net/de4x5.cfor (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) {
lp1233drivers/net/de4x5.cstatus = lp->tx_ring[entry].status;
lp1237drivers/net/de4x5.clp->stats.tx_errors++; 
lp1238drivers/net/de4x5.cif (status & TD_NC)  lp->stats.tx_carrier_errors++;
lp1239drivers/net/de4x5.cif (status & TD_LC)  lp->stats.tx_window_errors++;
lp1240drivers/net/de4x5.cif (status & TD_UF)  lp->stats.tx_fifo_errors++;
lp1241drivers/net/de4x5.cif (status & TD_LC)  lp->stats.collisions++;
lp1242drivers/net/de4x5.cif (status & TD_EC)  lp->pktStats.excessive_collisions++;
lp1243drivers/net/de4x5.cif (status & TD_DE)  lp->stats.tx_aborted_errors++;
lp1247drivers/net/de4x5.clp->lostMedia++;
lp1248drivers/net/de4x5.cif (lp->lostMedia > LOST_MEDIA_THRESHOLD) { /* Trip autosense */
lp1255drivers/net/de4x5.clp->stats.tx_packets++;
lp1256drivers/net/de4x5.clp->lostMedia = 0;                         /* Remove transient problem */
lp1259drivers/net/de4x5.cif (lp->skb[entry] != NULL) {
lp1260drivers/net/de4x5.cdev_kfree_skb(lp->skb[entry], FREE_WRITE);
lp1261drivers/net/de4x5.clp->skb[entry] = NULL;
lp1265drivers/net/de4x5.clp->tx_old = (++lp->tx_old) % lp->txRingSize;
lp1274drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1280drivers/net/de4x5.cif (lp->chipset == DC21140) {
lp1282drivers/net/de4x5.cif (((lp->media == _100Mb) &&  (gep & GEP_SLNK)) ||
lp1283drivers/net/de4x5.c((lp->media == _10Mb)  &&  (gep & GEP_LNP))  ||
lp1284drivers/net/de4x5.c((lp->media == _10Mb)  && !(gep & GEP_SLNK)) ||
lp1285drivers/net/de4x5.c(lp->media == NC)) {
lp1286drivers/net/de4x5.cif (lp->linkProb || ((lp->media == NC) && (!(gep & GEP_LNP)))) {
lp1287drivers/net/de4x5.clp->lostMedia = LOST_MEDIA_THRESHOLD + 1;
lp1288drivers/net/de4x5.clp->linkProb = 0;
lp1291drivers/net/de4x5.cswitch(lp->media) {
lp1293drivers/net/de4x5.clp->linkProb = 0;
lp1298drivers/net/de4x5.clp->linkProb = 1;                    /* Flag a potential problem */
lp1303drivers/net/de4x5.clp->linkProb = 1;                    /* Flag a potential problem */
lp1309drivers/net/de4x5.clp->linkProb = 0;                        /* Link OK */
lp1320drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1348drivers/net/de4x5.cif (lp->chipset == DC21041) {
lp1359drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1362drivers/net/de4x5.clp->stats.rx_missed_errors = (int) (inl(DE4X5_MFC) & (MFC_OVFL | MFC_CNTR));
lp1364drivers/net/de4x5.creturn &lp->stats;
lp1369drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1371drivers/net/de4x5.clp->tx_ring[lp->tx_new].buf = virt_to_bus(buf);
lp1372drivers/net/de4x5.clp->tx_ring[lp->tx_new].des1 &= TD_TER;
lp1373drivers/net/de4x5.clp->tx_ring[lp->tx_new].des1 |= flags;
lp1374drivers/net/de4x5.clp->skb[lp->tx_new] = skb;
lp1376drivers/net/de4x5.clp->tx_ring[lp->tx_new].status = T_OWN;
lp1394drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1401drivers/net/de4x5.cif (lp->setup_f == HASH_PERF) {
lp1402drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
lp1405drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
lp1409drivers/net/de4x5.clp->tx_new = (++lp->tx_new) % lp->txRingSize;
lp1430drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1440drivers/net/de4x5.cif (lp->setup_f == HASH_PERF) {
lp1464drivers/net/de4x5.clp->setup_frame[byte] |= bit;
lp1498drivers/net/de4x5.cstruct bus_type *lp = &bus;
lp1504drivers/net/de4x5.clp->bus = EISA;
lp1522drivers/net/de4x5.clp->bus = EISA;
lp1523drivers/net/de4x5.clp->chipset = device;
lp1569drivers/net/de4x5.cstruct bus_type *lp = &bus;
lp1574drivers/net/de4x5.clp->bus = PCI;
lp1594drivers/net/de4x5.clp->device = dev_num;
lp1595drivers/net/de4x5.clp->bus_num = pb;
lp1598drivers/net/de4x5.clp->chipset = device;
lp1757drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1760drivers/net/de4x5.clp->tx_enable = YES;
lp1762drivers/net/de4x5.cif (lp->chipset != DC21140) {
lp1769drivers/net/de4x5.cif (lp->chipset == DC21040) {
lp1770drivers/net/de4x5.clp->media = (lp->autosense == AUTO ? TP : lp->autosense);
lp1772drivers/net/de4x5.c} else if (lp->chipset == DC21041) {
lp1773drivers/net/de4x5.clp->media = (lp->autosense == AUTO ? TP_NW : lp->autosense);
lp1775drivers/net/de4x5.c} else if (lp->chipset == DC21140) {
lp1777drivers/net/de4x5.clp->media = (lp->autosense == AUTO ? _10Mb : lp->autosense);
lp1782drivers/net/de4x5.cif (lp->chipset != DC21140) {
lp1783drivers/net/de4x5.cprintk("media is %s\n", (lp->media == NC  ? "unconnected!" :
lp1784drivers/net/de4x5.c(lp->media == TP  ? "TP." :
lp1785drivers/net/de4x5.c(lp->media == ANS ? "TP/Nway." :
lp1786drivers/net/de4x5.c(lp->media == BNC ? "BNC." : 
lp1787drivers/net/de4x5.c(lp->media == AUI ? "AUI." : 
lp1791drivers/net/de4x5.cprintk("mode is %s\n",(lp->media == NC      ? "link down.":
lp1792drivers/net/de4x5.c(lp->media == _100Mb  ? "100Mb/s." :
lp1793drivers/net/de4x5.c(lp->media == _10Mb   ? "10Mb/s." :
lp1799drivers/net/de4x5.cif (lp->media) {
lp1800drivers/net/de4x5.clp->lostMedia = 0;
lp1802drivers/net/de4x5.cif ((lp->media == TP) || (lp->media == ANS)) {
lp1803drivers/net/de4x5.clp->irq_mask |= IMR_LFM;
lp1808drivers/net/de4x5.creturn (lp->media);
lp1813drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1818drivers/net/de4x5.cswitch (lp->media) {
lp1825drivers/net/de4x5.cif (linkBad && (lp->autosense == AUTO)) {
lp1826drivers/net/de4x5.clp->media = BNC_AUI;
lp1837drivers/net/de4x5.cif (linkBad && (lp->autosense == AUTO)) {
lp1838drivers/net/de4x5.clp->media = NC;
lp1864drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1868drivers/net/de4x5.cswitch (lp->media) {
lp1876drivers/net/de4x5.clp->media = ANS;
lp1878drivers/net/de4x5.clp->media = AUI;
lp1887drivers/net/de4x5.cif (!(sts & STS_LNP) && (lp->autosense == AUTO)) {
lp1888drivers/net/de4x5.clp->media = TP;
lp1899drivers/net/de4x5.cif (!(sts & STS_LNP) && (lp->autosense == AUTO)) {
lp1901drivers/net/de4x5.clp->media = AUI;
lp1903drivers/net/de4x5.clp->media = BNC;
lp1915drivers/net/de4x5.cif (!(inl(DE4X5_SISR) & SISR_SRA) && (lp->autosense == AUTO)) {
lp1916drivers/net/de4x5.clp->media = BNC;
lp1927drivers/net/de4x5.cif (!(inl(DE4X5_SISR) & SISR_SRA) && (lp->autosense == AUTO)) {
lp1928drivers/net/de4x5.clp->media = NC;
lp1930drivers/net/de4x5.cif (ping_media(dev)) lp->media = NC;
lp1949drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp1953drivers/net/de4x5.cswitch(lp->media) {
lp1975drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2027drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2035drivers/net/de4x5.centry = lp->tx_new;                        /* Remember the ring position */
lp2041drivers/net/de4x5.clp->tx_new = (++lp->tx_new) % lp->txRingSize;
lp2042drivers/net/de4x5.clp->tx_old = lp->tx_new;
lp2047drivers/net/de4x5.cif (lp->tx_ring[entry].status >= 0) linkBad=0;
lp2052drivers/net/de4x5.creturn ((linkBad || (lp->tx_ring[entry].status & TD_ES)) ? 1 : 0);
lp2061drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2088drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2104drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2108drivers/net/de4x5.cif (lp->chipset == DC21140) {
lp2226drivers/net/de4x5.cstruct bus_type *lp = &bus;
lp2232drivers/net/de4x5.cif (lp->chipset == DC21040) {
lp2234drivers/net/de4x5.cif (lp->bus == PCI) {
lp2256drivers/net/de4x5.cshort *p = (short *)&lp->srom;
lp2270drivers/net/de4x5.cstruct bus_type *lp = &bus;
lp2276drivers/net/de4x5.cif (lp->bus == PCI) {
lp2277drivers/net/de4x5.cif (lp->chipset == DC21040) {
lp2285drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
lp2286drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
lp2299drivers/net/de4x5.cif (lp->bus == PCI) {
lp2300drivers/net/de4x5.cif (lp->chipset == DC21040) {
lp2423drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2425drivers/net/de4x5.cchar *pa = lp->setup_frame;
lp2429drivers/net/de4x5.cmemset(lp->setup_frame, 0, SETUP_FRAME_LEN);
lp2432drivers/net/de4x5.cif (lp->setup_f == HASH_PERF) {
lp2433drivers/net/de4x5.cfor (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) {
lp2437drivers/net/de4x5.c*(lp->setup_frame + (HASH_TABLE_LEN >> 3) - 3) = 0x80; /* B'cast address */
lp2454drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2457drivers/net/de4x5.clp->irq_mask |= IMR_TMM;
lp2458drivers/net/de4x5.coutl(lp->irq_mask, DE4X5_IMR);
lp2466drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2469drivers/net/de4x5.clp->irq_mask &= ~IMR_TMM;
lp2470drivers/net/de4x5.coutl(lp->irq_mask, DE4X5_IMR);
lp2496drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
lp2534drivers/net/de4x5.cif (lp->setup_f == HASH_PERF) {
lp2535drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
lp2538drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
lp2541drivers/net/de4x5.clp->tx_new = (++lp->tx_new) % lp->txRingSize;
lp2575drivers/net/de4x5.cmemcpy_tofs(ioc->data, lp->setup_frame, ioc->len); 
lp2612drivers/net/de4x5.cioc->len = sizeof(lp->pktStats);
lp2618drivers/net/de4x5.cmemcpy_tofs(ioc->data, &lp->pktStats, ioc->len); 
lp2625drivers/net/de4x5.cmemset(&lp->pktStats, 0, sizeof(lp->pktStats));
lp2674drivers/net/de4x5.ctmp.addr[j++] = lp->rxRingSize;
lp2675drivers/net/de4x5.ctmp.lval[j>>2] = (long)lp->rx_ring; j+=4;
lp2676drivers/net/de4x5.ctmp.lval[j>>2] = (long)lp->tx_ring; j+=4;
lp2678drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
lp2680drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
lp2683drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
lp2684drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
lp2686drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
lp2689drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
lp2691drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
lp2693drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
lp2696drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
lp2697drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
lp2699drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
lp2702drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
lp2704drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize;i++){
lp2705drivers/net/de4x5.ctmp.lval[j>>2] = lp->rx_ring[i].status; j+=4;
lp2707drivers/net/de4x5.cfor (i=0;i<lp->txRingSize;i++){
lp2708drivers/net/de4x5.ctmp.lval[j>>2] = lp->tx_ring[i].status; j+=4;
lp2720drivers/net/de4x5.ctmp.addr[j++] = lp->txRingSize;
lp2761drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *) thisDE4X5.priv;
lp2766drivers/net/de4x5.cif (lp) {
lp2767drivers/net/de4x5.ckfree_s(bus_to_virt(lp->rx_ring[0].buf), RX_BUFF_SZ * NUM_RX_DESC + ALIGN);
lp2772drivers/net/de4x5.crelease_region(thisDE4X5.base_addr, (lp->bus == PCI ? 
lp16drivers/net/de4x5.h#define DE4X5_BMR    iobase+(0x000 << lp->bus)  /* Bus Mode Register */
lp17drivers/net/de4x5.h#define DE4X5_TPD    iobase+(0x008 << lp->bus)  /* Transmit Poll Demand Reg */
lp18drivers/net/de4x5.h#define DE4X5_RPD    iobase+(0x010 << lp->bus)  /* Receive Poll Demand Reg */
lp19drivers/net/de4x5.h#define DE4X5_RRBA   iobase+(0x018 << lp->bus)  /* RX Ring Base Address Reg */
lp20drivers/net/de4x5.h#define DE4X5_TRBA   iobase+(0x020 << lp->bus)  /* TX Ring Base Address Reg */
lp21drivers/net/de4x5.h#define DE4X5_STS    iobase+(0x028 << lp->bus)  /* Status Register */
lp22drivers/net/de4x5.h#define DE4X5_OMR    iobase+(0x030 << lp->bus)  /* Operation Mode Register */
lp23drivers/net/de4x5.h#define DE4X5_IMR    iobase+(0x038 << lp->bus)  /* Interrupt Mask Register */
lp24drivers/net/de4x5.h#define DE4X5_MFC    iobase+(0x040 << lp->bus)  /* Missed Frame Counter */
lp25drivers/net/de4x5.h#define DE4X5_APROM  iobase+(0x048 << lp->bus)  /* Ethernet Address PROM */
lp26drivers/net/de4x5.h#define DE4X5_BROM   iobase+(0x048 << lp->bus)  /* Boot ROM Register */
lp27drivers/net/de4x5.h#define DE4X5_SROM   iobase+(0x048 << lp->bus)  /* Serial ROM Register */
lp28drivers/net/de4x5.h#define DE4X5_DDR    iobase+(0x050 << lp->bus)  /* Data Diagnostic Register */
lp29drivers/net/de4x5.h#define DE4X5_FDR    iobase+(0x058 << lp->bus)  /* Full Duplex Register */
lp30drivers/net/de4x5.h#define DE4X5_GPT    iobase+(0x058 << lp->bus)  /* General Purpose Timer Reg.*/
lp31drivers/net/de4x5.h#define DE4X5_GEP    iobase+(0x060 << lp->bus)  /* General Purpose Register */
lp32drivers/net/de4x5.h#define DE4X5_SISR   iobase+(0x060 << lp->bus)  /* SIA Status Register */
lp33drivers/net/de4x5.h#define DE4X5_SICR   iobase+(0x068 << lp->bus)  /* SIA Connectivity Register */
lp34drivers/net/de4x5.h#define DE4X5_STRR   iobase+(0x070 << lp->bus)  /* SIA TX/RX Register */
lp35drivers/net/de4x5.h#define DE4X5_SIGR   iobase+(0x078 << lp->bus)  /* SIA General Register */
lp360drivers/net/depca.c#define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
lp361drivers/net/depca.clp->tx_old+lp->txRingMask-lp->tx_new:\
lp362drivers/net/depca.clp->tx_old               -lp->tx_new-1)
lp452drivers/net/depca.cstruct depca_private *lp;
lp514drivers/net/depca.clp = (struct depca_private *)dev->priv;
lp516drivers/net/depca.clp->adapter = adapter;
lp517drivers/net/depca.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
lp518drivers/net/depca.crequest_region(ioaddr, DEPCA_TOTAL_SIZE, lp->adapter_name);
lp521drivers/net/depca.clp->sh_mem = mem_start;
lp526drivers/net/depca.clp->rx_ring = (struct depca_rx_desc *)mem_start;
lp529drivers/net/depca.clp->tx_ring = (struct depca_tx_desc *)mem_start;
lp532drivers/net/depca.clp->bus_offset = mem_start & 0x00ff0000;
lp535drivers/net/depca.clp->dma_buffs = mem_start;
lp538drivers/net/depca.clp->rxRingMask = NUM_RX_DESC - 1;
lp539drivers/net/depca.clp->txRingMask = NUM_TX_DESC - 1;
lp542drivers/net/depca.cfor (i=0, j = lp->rxRingMask; j>0; i++) {
lp545drivers/net/depca.clp->rx_rlen = (s32)(i << 29);
lp546drivers/net/depca.cfor (i=0, j = lp->txRingMask; j>0; i++) {
lp549drivers/net/depca.clp->tx_rlen = (s32)(i << 29);
lp569drivers/net/depca.cswitch (lp->adapter) {
lp655drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp659drivers/net/depca.cstruct depca_init *p = (struct depca_init *)lp->sh_mem;
lp661drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name)) {
lp682drivers/net/depca.cmemcpy_toio((char *)lp->sh_mem, &lp->init_block, sizeof(struct depca_init));
lp686drivers/net/depca.cprintk("\t0x%lx  0x%lx\n",(u_long)lp->rx_ring, (u_long)lp->tx_ring);
lp688drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
lp690drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->rx_ring[i].base);
lp693drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base);
lp695drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
lp697drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->tx_ring[i].base);
lp700drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base);
lp702drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
lp704drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->rx_ring[i].base));
lp707drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->rx_ring[i].base));
lp709drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
lp711drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->tx_ring[i].base));
lp714drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->tx_ring[i].base));
lp716drivers/net/depca.cprintk("Initialisation block at 0x%8.8lx\n",lp->sh_mem);
lp730drivers/net/depca.cprintk("dma_buffs: 0x%8.8lx\n",lp->dma_buffs);
lp732drivers/net/depca.c(int)lp->rxRingMask + 1, 
lp733drivers/net/depca.clp->rx_rlen);
lp735drivers/net/depca.c(int)lp->txRingMask + 1, 
lp736drivers/net/depca.clp->tx_rlen);
lp770drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp777drivers/net/depca.clp->rx_new = lp->tx_new = 0;
lp778drivers/net/depca.clp->rx_old = lp->tx_old = 0;
lp781drivers/net/depca.cfor (i = 0; i <= lp->rxRingMask; i++) {
lp782drivers/net/depca.cwritel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base);
lp783drivers/net/depca.cwritew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length);
lp784drivers/net/depca.clp->rx_memcpy[i]=(char *)(p+lp->bus_offset);
lp786drivers/net/depca.cfor (i = 0; i <= lp->txRingMask; i++) {
lp787drivers/net/depca.cwritel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff,
lp788drivers/net/depca.c&lp->tx_ring[i].base);
lp789drivers/net/depca.clp->tx_memcpy[i]=(char *)(p+lp->bus_offset);
lp793drivers/net/depca.clp->init_block.rx_ring = ((u32)((u_long)lp->rx_ring)&LA_MASK) | lp->rx_rlen;
lp794drivers/net/depca.clp->init_block.tx_ring = ((u32)((u_long)lp->tx_ring)&LA_MASK) | lp->tx_rlen;
lp799drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
lp802drivers/net/depca.clp->init_block.mode = 0x0000;            /* Enable the Tx and Rx */
lp813drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp874drivers/net/depca.cstruct depca_private *lp;
lp881drivers/net/depca.clp = (struct depca_private *)dev->priv;
lp924drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp928drivers/net/depca.cfor (entry=lp->rx_new; 
lp929drivers/net/depca.c!(readl(&lp->rx_ring[entry].base) & R_OWN);
lp930drivers/net/depca.centry=lp->rx_new){
lp931drivers/net/depca.cstatus = readl(&lp->rx_ring[entry].base) >> 16 ;
lp933drivers/net/depca.clp->rx_old = entry;
lp937drivers/net/depca.clp->stats.rx_errors++;                 /* Update the error stats. */
lp938drivers/net/depca.cif (status & R_FRAM) lp->stats.rx_frame_errors++;
lp939drivers/net/depca.cif (status & R_OFLO) lp->stats.rx_over_errors++;
lp940drivers/net/depca.cif (status & R_CRC)  lp->stats.rx_crc_errors++;
lp941drivers/net/depca.cif (status & R_BUFF) lp->stats.rx_fifo_errors++;
lp943drivers/net/depca.cshort len, pkt_len = readw(&lp->rx_ring[entry].msg_length);
lp952drivers/net/depca.cif (entry < lp->rx_old) {         /* Wrapped buffer */
lp953drivers/net/depca.clen = (lp->rxRingMask - lp->rx_old + 1) * RX_BUFF_SZ;
lp954drivers/net/depca.cmemcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len);
lp955drivers/net/depca.cmemcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len);
lp957drivers/net/depca.cmemcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], pkt_len);
lp970drivers/net/depca.clp->stats.rx_packets++;
lp973drivers/net/depca.clp->pktStats.bins[i]++;
lp979drivers/net/depca.clp->pktStats.broadcast++;
lp981drivers/net/depca.clp->pktStats.multicast++;
lp985drivers/net/depca.clp->pktStats.unicast++;
lp988drivers/net/depca.clp->pktStats.bins[0]++;           /* Duplicates stats.rx_packets */
lp989drivers/net/depca.cif (lp->pktStats.bins[0] == 0) {  /* Reset counters */
lp990drivers/net/depca.cmemset((char *)&lp->pktStats, 0, sizeof(lp->pktStats));
lp994drivers/net/depca.clp->stats.rx_dropped++;  /* Really, deferred. */
lp999drivers/net/depca.cfor (; lp->rx_old!=entry; lp->rx_old=(++lp->rx_old)&lp->rxRingMask) {
lp1000drivers/net/depca.cwritel(readl(&lp->rx_ring[lp->rx_old].base) | R_OWN, 
lp1001drivers/net/depca.c&lp->rx_ring[lp->rx_old].base);
lp1003drivers/net/depca.cwritel(readl(&lp->rx_ring[entry].base) | R_OWN, &lp->rx_ring[entry].base);
lp1009drivers/net/depca.clp->rx_new = (++lp->rx_new) & lp->rxRingMask;
lp1021drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1026drivers/net/depca.cfor (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) {
lp1027drivers/net/depca.cstatus = readl(&lp->tx_ring[entry].base) >> 16 ;
lp1032drivers/net/depca.cstatus = readl(&lp->tx_ring[entry].misc);
lp1033drivers/net/depca.clp->stats.tx_errors++;
lp1034drivers/net/depca.cif (status & TMD3_RTRY) lp->stats.tx_aborted_errors++;
lp1035drivers/net/depca.cif (status & TMD3_LCAR) lp->stats.tx_carrier_errors++;
lp1036drivers/net/depca.cif (status & TMD3_LCOL) lp->stats.tx_window_errors++;
lp1037drivers/net/depca.cif (status & TMD3_UFLO) lp->stats.tx_fifo_errors++;
lp1044drivers/net/depca.clp->stats.collisions++;
lp1046drivers/net/depca.clp->stats.tx_packets++;
lp1050drivers/net/depca.clp->tx_old = (++lp->tx_old) & lp->txRingMask;
lp1059drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1082drivers/net/depca.cif (lp->adapter != DEPCA) {
lp1101drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1105drivers/net/depca.coutw((u16)(lp->sh_mem & LA_MASK), DEPCA_DATA);
lp1107drivers/net/depca.coutw((u16)((lp->sh_mem & LA_MASK) >> 16), DEPCA_DATA);
lp1118drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1123drivers/net/depca.cmemcpy_toio((char *)lp->sh_mem, &lp->init_block, sizeof(struct depca_init));
lp1136drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
lp1140drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
lp1150drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1154drivers/net/depca.creturn &lp->stats;
lp1167drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1173drivers/net/depca.cwhile(lp->tx_old != lp->tx_new);  /* Wait for the ring to empty */
lp1180drivers/net/depca.clp->init_block.mode &= ~PROM;   /* Unset promiscuous mode */
lp1182drivers/net/depca.clp->init_block.mode |= PROM;    /* Set promiscuous mode */
lp1199drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1206drivers/net/depca.clp->init_block.mcast_table[i] = (char)0xff;
lp1211drivers/net/depca.clp->init_block.mcast_table[i]=0;
lp1232drivers/net/depca.clp->init_block.mcast_table[byte] |= bit;
lp1567drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1570drivers/net/depca.centry = lp->tx_new;                     /* Ring around buffer number. */
lp1571drivers/net/depca.cend = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask;
lp1572drivers/net/depca.cif (!(readl(&lp->tx_ring[end].base) & T_OWN)) {/* Enough room? */
lp1578drivers/net/depca.clen = (lp->txRingMask - entry + 1) * TX_BUFF_SZ;
lp1579drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[entry], skb->data, len);
lp1580drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[0], skb->data + len, skb->len - len);
lp1582drivers/net/depca.cmemcpy_toio(lp->tx_memcpy[entry], skb->data, skb->len);
lp1587drivers/net/depca.cfor (i = entry; i != end; i = (++i) & lp->txRingMask) {
lp1589drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base);
lp1590drivers/net/depca.cwritew(0x0000, &lp->tx_ring[i].misc);       /* clears other error flags */
lp1591drivers/net/depca.cwritew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */
lp1595drivers/net/depca.cwritel(readl(&lp->tx_ring[end].base) & ~T_FLAGS, &lp->tx_ring[end].base);
lp1596drivers/net/depca.cwritew(0x0000, &lp->tx_ring[end].misc);       /* clears other error flags */
lp1597drivers/net/depca.cwritew(-len, &lp->tx_ring[end].length);       /* packet length in last buff */
lp1600drivers/net/depca.cwritel(readl(&lp->tx_ring[entry].base) | T_STP, &lp->tx_ring[entry].base);
lp1602drivers/net/depca.cwritel(readl(&lp->tx_ring[end].base) | T_ENP, &lp->tx_ring[end].base);
lp1606drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base);
lp1607drivers/net/depca.cif (i == 0) i=lp->txRingMask+1;
lp1609drivers/net/depca.cwritel(readl(&lp->tx_ring[entry].base) | T_OWN, &lp->tx_ring[entry].base);
lp1611drivers/net/depca.clp->tx_new = (++end) & lp->txRingMask;     /* update current pointers */
lp1659drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
lp1689drivers/net/depca.cwhile(lp->tx_old != lp->tx_new);/* Wait for the ring to empty */
lp1706drivers/net/depca.cwhile(lp->tx_old != lp->tx_new);  /* Wait for the ring to empty */
lp1710drivers/net/depca.clp->init_block.mode |= PROM;      /* Set promiscuous mode */
lp1724drivers/net/depca.cwhile(lp->tx_old != lp->tx_new);  /* Wait for the ring to empty */
lp1728drivers/net/depca.clp->init_block.mode &= ~PROM;     /* Clear promiscuous mode */
lp1745drivers/net/depca.cmemcpy_tofs(ioc->data, lp->init_block.mcast_table, ioc->len); 
lp1782drivers/net/depca.cioc->len = sizeof(lp->pktStats);
lp1784drivers/net/depca.cmemcpy_tofs(ioc->data, &lp->pktStats, ioc->len); 
lp1792drivers/net/depca.cmemset(&lp->pktStats, 0, sizeof(lp->pktStats));
lp1804drivers/net/depca.cmemcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init));
lp508drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp516drivers/net/eepro.clp->eepro = 1; /* Yes, an Intel EtherExpress Pro/10 */
lp517drivers/net/eepro.celse lp->eepro = 0; /* No, it is a generic 82585 lan card */
lp573drivers/net/eepro.clp->rx_start = (RCV_LOWER_LIMIT << 8) ;
lp584drivers/net/eepro.clp->tx_start = lp->tx_end = XMT_LOWER_LIMIT << 8; /* or = RCV_RAM */
lp585drivers/net/eepro.clp->tx_last = 0;  
lp605drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp620drivers/net/eepro.clp->stats.tx_errors++;
lp628drivers/net/eepro.clp->tx_start = lp->tx_end = RCV_RAM; 
lp629drivers/net/eepro.clp->tx_last = 0;
lp725drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp742drivers/net/eepro.clp->tx_start = lp->tx_end = RCV_RAM ;
lp743drivers/net/eepro.clp->tx_last = 0;  
lp776drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp778drivers/net/eepro.creturn &lp->stats;
lp790drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp826drivers/net/eepro.coutw(lp->tx_end, ioaddr + HOST_ADDRESS_REG);
lp840drivers/net/eepro.coutw(lp->tx_end, ioaddr + XMT_BAR);
lp844drivers/net/eepro.ci = lp->tx_end + XMT_HEADER + 6*(num_addrs + 1);
lp845drivers/net/eepro.cif (lp->tx_start != lp->tx_end) { 
lp848drivers/net/eepro.coutw(lp->tx_last + XMT_CHAIN, ioaddr + HOST_ADDRESS_REG);
lp850drivers/net/eepro.coutw(lp->tx_last + XMT_COUNT, ioaddr + HOST_ADDRESS_REG);
lp853drivers/net/eepro.clp->tx_end = i ;
lp854drivers/net/eepro.c} else lp->tx_start = lp->tx_end = i ;
lp932drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp942drivers/net/eepro.cif (lp->tx_end > lp->tx_start)
lp943drivers/net/eepro.ctx_available = XMT_RAM - (lp->tx_end - lp->tx_start);
lp944drivers/net/eepro.celse if (lp->tx_end < lp->tx_start)
lp945drivers/net/eepro.ctx_available = lp->tx_start - lp->tx_end;
lp957drivers/net/eepro.clast = lp->tx_end;
lp977drivers/net/eepro.cif (lp->tx_start != lp->tx_end) { 
lp980drivers/net/eepro.cif (lp->tx_end != last) {
lp981drivers/net/eepro.coutw(lp->tx_last + XMT_CHAIN, ioaddr + HOST_ADDRESS_REG);
lp984drivers/net/eepro.coutw(lp->tx_last + XMT_COUNT, ioaddr + HOST_ADDRESS_REG);
lp995drivers/net/eepro.cif (lp->tx_start == lp->tx_end) {
lp998drivers/net/eepro.clp->tx_start = last;   /* I don't like to change tx_start here */
lp1002drivers/net/eepro.clp->tx_last = last;
lp1003drivers/net/eepro.clp->tx_end = end;
lp1022drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp1025drivers/net/eepro.cshort rcv_car = lp->rx_start;
lp1048drivers/net/eepro.clp->stats.rx_dropped++;
lp1058drivers/net/eepro.clp->stats.rx_packets++;
lp1062drivers/net/eepro.clp->stats.rx_errors++;
lp1064drivers/net/eepro.clp->stats.rx_over_errors++;
lp1066drivers/net/eepro.clp->stats.rx_frame_errors++;
lp1068drivers/net/eepro.clp->stats.rx_crc_errors++;
lp1073drivers/net/eepro.clp->stats.rx_length_errors++;
lp1077drivers/net/eepro.crcv_car = lp->rx_start + RCV_HEADER + rcv_size;
lp1078drivers/net/eepro.clp->rx_start = rcv_next_frame;
lp1094drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
lp1099drivers/net/eepro.cwhile (lp->tx_start != lp->tx_end) { 
lp1101drivers/net/eepro.coutw(lp->tx_start, ioaddr + HOST_ADDRESS_REG);
lp1105drivers/net/eepro.clp->tx_start = inw(ioaddr+IO_PORT);
lp1113drivers/net/eepro.clp->stats.tx_packets++;
lp1115drivers/net/eepro.clp->stats.tx_errors++;
lp1117drivers/net/eepro.clp->stats.tx_carrier_errors++;
lp1122drivers/net/eepro.clp->stats.collisions += (xmt_status & 0x000f);
lp1124drivers/net/eepro.clp->stats.tx_heartbeat_errors++;
lp455drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp468drivers/net/eexpress.clp->stats.tx_errors++;
lp470drivers/net/eexpress.cif (lp->last_restart == lp->stats.tx_packets) {
lp479drivers/net/eexpress.clp->last_restart = lp->stats.tx_packets;
lp511drivers/net/eexpress.clp->stats.tx_aborted_errors++;
lp522drivers/net/eexpress.cstruct net_local *lp;
lp533drivers/net/eexpress.clp = (struct net_local *)dev->priv;
lp545drivers/net/eexpress.cwhile (lp->tx_reap != lp->tx_head) {   /* if (status & 0x8000) */
lp547drivers/net/eexpress.coutw(lp->tx_reap, ioaddr + READ_PTR);
lp550drivers/net/eexpress.cif (net_debug > 5)  printk("Couldn't reap %#x.\n", lp->tx_reap);
lp554drivers/net/eexpress.clp->stats.tx_packets++;
lp555drivers/net/eexpress.clp->stats.collisions += tx_status & 0xf;
lp559drivers/net/eexpress.clp->stats.tx_errors++;
lp560drivers/net/eexpress.cif (tx_status & 0x0600)  lp->stats.tx_carrier_errors++;
lp561drivers/net/eexpress.cif (tx_status & 0x0100)  lp->stats.tx_fifo_errors++;
lp562drivers/net/eexpress.cif (!(tx_status & 0x0040))  lp->stats.tx_heartbeat_errors++;
lp563drivers/net/eexpress.cif (tx_status & 0x0020)  lp->stats.tx_aborted_errors++;
lp566drivers/net/eexpress.cprintk("Reaped %x, Tx status %04x.\n" , lp->tx_reap, tx_status);
lp567drivers/net/eexpress.clp->tx_reap += TX_BUF_SIZE;
lp568drivers/net/eexpress.cif (lp->tx_reap > TX_BUF_END - TX_BUF_SIZE)
lp569drivers/net/eexpress.clp->tx_reap = TX_BUF_START;
lp576drivers/net/eexpress.cprintk("Received packet, rx_head %04x.\n", lp->rx_head);
lp595drivers/net/eexpress.clp->tx_cmd_link = IDLELOOP + 4;
lp596drivers/net/eexpress.clp->tx_head = lp->tx_reap = TX_BUF_START;
lp606drivers/net/eexpress.clp->stats.rx_errors++;
lp610drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
lp671drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp675drivers/net/eexpress.creturn &lp->stats;
lp755drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp775drivers/net/eexpress.clp->tx_cmd_link = DUMP_DATA + 4;
lp777drivers/net/eexpress.clp->tx_cmd_link = IDLELOOP + 4;
lp779drivers/net/eexpress.clp->tx_head = lp->tx_reap = TX_BUF_START;
lp813drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp816drivers/net/eexpress.cint cur_rxbuf = lp->rx_head = RX_BUF_START;
lp840drivers/net/eexpress.clp->rx_tail = cur_rxbuf;
lp846drivers/net/eexpress.coutw(lp->rx_tail + 2, ioaddr + WRITE_PTR);
lp848drivers/net/eexpress.coutw(lp->rx_head, ioaddr);        /* Link */
lp854drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp856drivers/net/eexpress.cshort tx_block = lp->tx_head;
lp881drivers/net/eexpress.coutw(lp->tx_cmd_link, ioaddr + WRITE_PTR);
lp883drivers/net/eexpress.clp->tx_cmd_link = tx_block + 20;
lp886drivers/net/eexpress.clp->tx_head = tx_block + TX_BUF_SIZE;
lp887drivers/net/eexpress.cif (lp->tx_head > TX_BUF_END - TX_BUF_SIZE)
lp888drivers/net/eexpress.clp->tx_head = TX_BUF_START;
lp893drivers/net/eexpress.ctx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS));
lp896drivers/net/eexpress.cif (lp->tx_head != lp->tx_reap)
lp903drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
lp906drivers/net/eexpress.cshort rx_head = lp->rx_head;
lp907drivers/net/eexpress.cshort rx_tail = lp->rx_tail;
lp931drivers/net/eexpress.clp->stats.rx_errors++;
lp932drivers/net/eexpress.cif (frame_status & 0x0800) lp->stats.rx_crc_errors++;
lp933drivers/net/eexpress.cif (frame_status & 0x0400) lp->stats.rx_frame_errors++;
lp934drivers/net/eexpress.cif (frame_status & 0x0200) lp->stats.rx_fifo_errors++;
lp935drivers/net/eexpress.cif (frame_status & 0x0100) lp->stats.rx_over_errors++;
lp936drivers/net/eexpress.cif (frame_status & 0x0080) lp->stats.rx_length_errors++;
lp945drivers/net/eexpress.clp->stats.rx_dropped++;
lp957drivers/net/eexpress.clp->stats.rx_packets++;
lp994drivers/net/eexpress.clp->rx_head = rx_head;
lp995drivers/net/eexpress.clp->rx_tail = rx_tail;
lp399drivers/net/ewrk3.cstruct ewrk3_private *lp;
lp551drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
lp553drivers/net/ewrk3.clp->shmem_base = mem_start;
lp554drivers/net/ewrk3.clp->shmem_length = shmem_length;
lp555drivers/net/ewrk3.clp->lemac = lemac;
lp556drivers/net/ewrk3.clp->hard_strapped = hard_strapped;
lp558drivers/net/ewrk3.clp->mPage = 64;
lp559drivers/net/ewrk3.cif (cmr & DRAM) lp->mPage <<= 1 ;     /* 2 DRAMS on module */ 
lp650drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp660drivers/net/ewrk3.cif (!lp->hard_strapped) {
lp681drivers/net/ewrk3.cif (lp->shmem_length == 0) {
lp684drivers/net/ewrk3.cprintk("\tstart of shared memory: 0x%08lx\n",lp->shmem_base);
lp685drivers/net/ewrk3.cprintk("\twindow length: 0x%04lx\n",lp->shmem_length);
lp727drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp747drivers/net/ewrk3.cfor (page=1;page<lp->mPage;page++) {      /* Write the free page numbers */
lp751drivers/net/ewrk3.clp->lock = 0;                             /* Ensure there are no locks */
lp762drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp768drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
lp772drivers/net/ewrk3.c} else if (!lp->hard_strapped) {
lp816drivers/net/ewrk3.cif ((page = inb(EWRK3_FMQ)) < lp->mPage) {
lp822drivers/net/ewrk3.cwhile (set_bit(0, (void *)&lp->lock) != 0); /* Wait for lock to free */
lp823drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp825drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_2K) {
lp826drivers/net/ewrk3.cbuf = (char *) lp->shmem_base;
lp828drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_32K) {
lp829drivers/net/ewrk3.cbuf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base);
lp831drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_64K) {
lp832drivers/net/ewrk3.cbuf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base);
lp846drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp861drivers/net/ewrk3.cif (lp->txc) {
lp884drivers/net/ewrk3.clp->lock = 0;         /* unlock the page register */
lp912drivers/net/ewrk3.cstruct ewrk3_private *lp;
lp919drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
lp976drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp982drivers/net/ewrk3.cif ((page = inb(EWRK3_RQ)) < lp->mPage) {/* Get next entry's buffer page */
lp989drivers/net/ewrk3.cif ((tmpLock = set_bit(0, (void *)&lp->lock)) == 1) {   /* Assert lock */
lp990drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {              /* Get existing page */
lp1000drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1002drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_2K) {
lp1003drivers/net/ewrk3.cbuf = (char *) lp->shmem_base;
lp1005drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_32K) {
lp1006drivers/net/ewrk3.cbuf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base);
lp1008drivers/net/ewrk3.c} else if (lp->shmem_length == SHMEM_64K) {
lp1009drivers/net/ewrk3.cbuf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base);
lp1020drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1031drivers/net/ewrk3.clp->stats.rx_errors++;            /* Update the error stats. */
lp1032drivers/net/ewrk3.cif (rx_status & DBE) lp->stats.rx_frame_errors++;
lp1033drivers/net/ewrk3.cif (rx_status & CRC) lp->stats.rx_crc_errors++;
lp1034drivers/net/ewrk3.cif (rx_status & PLL) lp->stats.rx_fifo_errors++;
lp1044drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1064drivers/net/ewrk3.clp->stats.rx_packets++;
lp1067drivers/net/ewrk3.clp->pktStats.bins[i]++;
lp1074drivers/net/ewrk3.clp->pktStats.broadcast++;
lp1076drivers/net/ewrk3.clp->pktStats.multicast++;
lp1080drivers/net/ewrk3.clp->pktStats.unicast++;
lp1083drivers/net/ewrk3.clp->pktStats.bins[0]++;           /* Duplicates stats.rx_packets */
lp1084drivers/net/ewrk3.cif (lp->pktStats.bins[0] == 0) {  /* Reset counters */
lp1085drivers/net/ewrk3.cmemset(&lp->pktStats, 0, sizeof(lp->pktStats));
lp1089drivers/net/ewrk3.clp->stats.rx_dropped++;        /* Really, deferred. */
lp1100drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {    /* Replace old page */
lp1106drivers/net/ewrk3.clp->lock = 0;                           /* Unlock the page register */
lp1121drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1128drivers/net/ewrk3.clp->stats.tx_errors++;
lp1129drivers/net/ewrk3.cif (tx_status & MAC_NCL)    lp->stats.tx_carrier_errors++;
lp1130drivers/net/ewrk3.cif (tx_status & MAC_LCL)    lp->stats.tx_window_errors++;
lp1133drivers/net/ewrk3.clp->pktStats.tx_underruns++;
lp1135drivers/net/ewrk3.clp->pktStats.excessive_underruns++;
lp1139drivers/net/ewrk3.clp->stats.collisions++;
lp1141drivers/net/ewrk3.clp->pktStats.excessive_collisions++;
lp1145drivers/net/ewrk3.clp->stats.tx_packets++;
lp1156drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1185drivers/net/ewrk3.cif (!lp->hard_strapped) {
lp1201drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1205drivers/net/ewrk3.creturn &lp->stats;
lp1218drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1225drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1228drivers/net/ewrk3.cmulticast_table = (char *)(lp->shmem_base + PAGE0_HTE);
lp1253drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1260drivers/net/ewrk3.cwhile (set_bit(0, (void *)&lp->lock) != 0); /* Wait for lock to free */
lp1262drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1271drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1280drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1308drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1325drivers/net/ewrk3.clp->lock = 0;                              /* Unlock the page register */
lp1613drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
lp1685drivers/net/ewrk3.cwhile (set_bit(0, (void *)&lp->lock) != 0); /* Wait for lock to free */
lp1686drivers/net/ewrk3.cif (lp->shmem_length == IO_ONLY) {
lp1694drivers/net/ewrk3.cmemcpy(tmp.addr, (char *)(lp->shmem_base + PAGE0_HTE), (HASH_TABLE_LEN >> 3));
lp1698drivers/net/ewrk3.clp->lock = 0;                               /* Unlock the page register */
lp1735drivers/net/ewrk3.cerr = verify_area(VERIFY_WRITE, (void *)ioc->data, sizeof(lp->pktStats));
lp1739drivers/net/ewrk3.cmemcpy_tofs(ioc->data, &lp->pktStats, sizeof(lp->pktStats)); 
lp1747drivers/net/ewrk3.cmemset(&lp->pktStats, 0, sizeof(lp->pktStats));
lp1818drivers/net/ewrk3.clp->txc = 1;
lp1826drivers/net/ewrk3.clp->txc = 0;
lp311drivers/net/hp100.cstruct hp100_private *lp;
lp414drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
lp415drivers/net/hp100.clp -> id = eid;
lp416drivers/net/hp100.clp -> mem_mapped = mem_mapped;
lp417drivers/net/hp100.clp -> mem_ptr_phys = mem_ptr_phys;
lp418drivers/net/hp100.clp -> mem_ptr_virt = mem_ptr_virt;
lp420drivers/net/hp100.clp -> soft_model = hp100_inb( SOFT_MODEL );
lp421drivers/net/hp100.clp -> mac1_mode = HP100_MAC1MODE3;
lp422drivers/net/hp100.clp -> mac2_mode = HP100_MAC2MODE3;
lp428drivers/net/hp100.clp -> memory_size = 0x200 << ( ( hp100_inb( SRAM ) & 0xe0 ) >> 5 );
lp429drivers/net/hp100.clp -> rx_ratio = hp100_rx_ratio;
lp449drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
lp452drivers/net/hp100.cdev -> name, lp -> id -> name, ioaddr, dev -> irq );
lp459drivers/net/hp100.clp -> memory_size >> ( 10 - 4 ), lp -> rx_ratio );
lp469drivers/net/hp100.cif ( lp -> lan_type != HP100_LAN_ERR )
lp471drivers/net/hp100.cswitch ( lp -> lan_type ) {
lp495drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp497drivers/net/hp100.cif ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name ) )
lp513drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
lp514drivers/net/hp100.clp -> mac1_mode = HP100_MAC1MODE3;
lp515drivers/net/hp100.clp -> mac2_mode = HP100_MAC2MODE3;
lp544drivers/net/hp100.chp100_outw( ( lp -> memory_size * lp -> rx_ratio ) / 100, RX_MEM_STOP );
lp545drivers/net/hp100.chp100_outw( lp -> memory_size - 1, TX_MEM_STOP );
lp548drivers/net/hp100.cif ( lp -> lan_type == HP100_LAN_100 )
lp549drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
lp559drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp566drivers/net/hp100.cif ( lp -> lan_type == HP100_LAN_100 )  /* relogin */
lp589drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp591drivers/net/hp100.cif ( lp -> lan_type < 0 )
lp594drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 )
lp600drivers/net/hp100.cif ( lp -> lan_type == HP100_LAN_100 )
lp601drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
lp611drivers/net/hp100.cif ( lp -> lan_type == HP100_LAN_100 && lp -> hub_status < 0 )
lp616drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
lp628drivers/net/hp100.cif ( lp -> lan_type != i )
lp632drivers/net/hp100.clp -> lan_type = i;
lp634drivers/net/hp100.cif ( lp -> lan_type == HP100_LAN_100 )
lp635drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
lp674drivers/net/hp100.cif ( lp -> mem_mapped )
lp676drivers/net/hp100.cif ( lp -> mem_ptr_virt )
lp678drivers/net/hp100.cmemcpy( lp -> mem_ptr_virt, skb -> data, skb -> len );
lp680drivers/net/hp100.cmemset( lp -> mem_ptr_virt, 0, HP100_MIN_PACKET_SIZE - skb -> len );
lp684drivers/net/hp100.cmemcpy_toio( lp -> mem_ptr_phys, skb -> data, skb -> len );
lp686drivers/net/hp100.cmemset_io( lp -> mem_ptr_phys, 0, HP100_MIN_PACKET_SIZE - skb -> len );
lp697drivers/net/hp100.clp -> stats.tx_packets++;
lp718drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp723drivers/net/hp100.cif ( lp -> lan_type < 0 )
lp725drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 )
lp726drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
lp744drivers/net/hp100.cif ( lp -> mem_mapped )
lp746drivers/net/hp100.cif ( lp -> mem_ptr_virt )
lp747drivers/net/hp100.cheader = *(__u32 *)lp -> mem_ptr_virt;
lp749drivers/net/hp100.cheader = readl( lp -> mem_ptr_phys );
lp769drivers/net/hp100.clp -> stats.rx_dropped++;
lp777drivers/net/hp100.cif ( lp -> mem_mapped )
lp779drivers/net/hp100.cif ( lp -> mem_ptr_virt )
lp780drivers/net/hp100.cmemcpy( ptr, lp -> mem_ptr_virt, ( pkt_len + 3 ) & ~3 );
lp782drivers/net/hp100.cmemcpy_fromio( ptr, lp -> mem_ptr_phys, ( pkt_len + 3 ) & ~3 );
lp788drivers/net/hp100.clp -> stats.rx_packets++;
lp799drivers/net/hp100.clp -> stats.multicast++; break;
lp825drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp829drivers/net/hp100.clp -> stats.rx_errors += val;
lp830drivers/net/hp100.clp -> stats.rx_over_errors += val;
lp832drivers/net/hp100.clp -> stats.rx_errors += val;
lp833drivers/net/hp100.clp -> stats.rx_crc_errors += val;
lp835drivers/net/hp100.clp -> stats.tx_errors += val;
lp836drivers/net/hp100.clp -> stats.tx_aborted_errors += val;
lp869drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp881drivers/net/hp100.clp -> mac2_mode = HP100_MAC2MODE6;  /* promiscuous mode, all good */
lp882drivers/net/hp100.clp -> mac1_mode = HP100_MAC1MODE6;  /* packets on the net */
lp887drivers/net/hp100.clp -> mac2_mode = HP100_MAC2MODE5;  /* multicast mode, packets for me */
lp888drivers/net/hp100.clp -> mac1_mode = HP100_MAC1MODE5;  /* broadcasts and all multicasts */
lp892drivers/net/hp100.clp -> mac2_mode = HP100_MAC2MODE3;  /* normal mode, packets for me */
lp893drivers/net/hp100.clp -> mac1_mode = HP100_MAC1MODE3;  /* and broadcasts */
lp896drivers/net/hp100.chp100_outb( lp -> mac2_mode, MAC_CFG_2 );
lp898drivers/net/hp100.chp100_orb( lp -> mac1_mode |
lp915drivers/net/hp100.cstruct hp100_private *lp;
lp941drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
lp959drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp964drivers/net/hp100.chp100_outb( lp -> mac2_mode, MAC_CFG_2 );
lp966drivers/net/hp100.chp100_orb( lp -> mac1_mode |
lp972drivers/net/hp100.cif ( lp -> mem_mapped )
lp1020drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
lp1030drivers/net/hp100.cif ( lp -> id -> id == 0x02019F022 ) /* HP J27248B doesn't have 100Mb/s interface */
lp335drivers/net/lance.cstruct lance_private *lp;
lp413drivers/net/lance.clp = (struct lance_private *)dev->priv;
lp414drivers/net/lance.clp->name = chipname;
lp415drivers/net/lance.clp->rx_buffs = (long)lp + ((sizeof(struct lance_private) + 7) & ~7);
lp416drivers/net/lance.clp->tx_bounce_buffs = (char (*)[PKT_BUF_SZ])
lp417drivers/net/lance.c(lp->rx_buffs + PKT_BUF_SZ*RX_RING_SIZE);
lp419drivers/net/lance.clp->chip_version = lance_version;
lp421drivers/net/lance.clp->init_block.mode = 0x0003;    /* Disable Rx and Tx. */
lp423drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
lp424drivers/net/lance.clp->init_block.filter[0] = 0x00000000;
lp425drivers/net/lance.clp->init_block.filter[1] = 0x00000000;
lp426drivers/net/lance.clp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS;
lp427drivers/net/lance.clp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS;
lp431drivers/net/lance.coutw((short) (int) &lp->init_block, ioaddr+LANCE_DATA);
lp434drivers/net/lance.coutw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA);
lp542drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_ENABLE_AUTOSELECT) {
lp566drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp571drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name)) {
lp590drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_MUST_UNRESET)
lp593drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_ENABLE_AUTOSELECT) {
lp601drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
lp602drivers/net/lance.c(int) &lp->init_block);
lp607drivers/net/lance.coutw((short) (int) &lp->init_block, ioaddr+LANCE_DATA);
lp609drivers/net/lance.coutw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA);
lp632drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
lp652drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp656drivers/net/lance.cif (lp->tx_skbuff[i]) {
lp657drivers/net/lance.cdev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE);
lp658drivers/net/lance.clp->tx_skbuff[i] = NULL;
lp668drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp671drivers/net/lance.clp->lock = 0, lp->tx_full = 0;
lp672drivers/net/lance.clp->cur_rx = lp->cur_tx = 0;
lp673drivers/net/lance.clp->dirty_rx = lp->dirty_tx = 0;
lp676drivers/net/lance.clp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000;
lp677drivers/net/lance.clp->rx_ring[i].buf_length = -PKT_BUF_SZ;
lp682drivers/net/lance.clp->tx_ring[i].base = 0;
lp685drivers/net/lance.clp->init_block.mode = 0x0000;
lp687drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
lp688drivers/net/lance.clp->init_block.filter[0] = 0x00000000;
lp689drivers/net/lance.clp->init_block.filter[1] = 0x00000000;
lp690drivers/net/lance.clp->init_block.rx_ring = (int)lp->rx_ring | RX_RING_LEN_BITS;
lp691drivers/net/lance.clp->init_block.tx_ring = (int)lp->tx_ring | TX_RING_LEN_BITS;
lp697drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp700drivers/net/lance.c(chip_table[lp->chip_version].flags & LANCE_MUST_REINIT_RING)) {
lp711drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp725drivers/net/lance.clp->stats.tx_errors++;
lp730drivers/net/lance.clp->dirty_tx, lp->cur_tx, lp->tx_full ? " (full)" : "",
lp731drivers/net/lance.clp->cur_rx);
lp734drivers/net/lance.clp->rx_ring[i].base, -lp->rx_ring[i].buf_length,
lp735drivers/net/lance.clp->rx_ring[i].msg_length);
lp738drivers/net/lance.clp->tx_ring[i].base, -lp->tx_ring[i].length,
lp739drivers/net/lance.clp->tx_ring[i].misc);
lp773drivers/net/lance.cif (set_bit(0, (void*)&lp->lock) != 0) {
lp783drivers/net/lance.centry = lp->cur_tx & TX_RING_MOD_MASK;
lp789drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_MUST_PAD) {
lp790drivers/net/lance.clp->tx_ring[entry].length =
lp793drivers/net/lance.clp->tx_ring[entry].length = -skb->len;
lp795drivers/net/lance.clp->tx_ring[entry].misc = 0x0000;
lp803drivers/net/lance.cmemcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len);
lp804drivers/net/lance.clp->tx_ring[entry].base =
lp805drivers/net/lance.c(int)(lp->tx_bounce_buffs + entry) | 0x83000000;
lp808drivers/net/lance.clp->tx_skbuff[entry] = skb;
lp809drivers/net/lance.clp->tx_ring[entry].base = (int)(skb->data) | 0x83000000;
lp811drivers/net/lance.clp->cur_tx++;
lp821drivers/net/lance.clp->lock = 0;
lp822drivers/net/lance.cif (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0)
lp825drivers/net/lance.clp->tx_full = 1;
lp836drivers/net/lance.cstruct lance_private *lp;
lp846drivers/net/lance.clp = (struct lance_private *)dev->priv;
lp868drivers/net/lance.cint dirty_tx = lp->dirty_tx;
lp870drivers/net/lance.cwhile (dirty_tx < lp->cur_tx) {
lp872drivers/net/lance.cint status = lp->tx_ring[entry].base;
lp877drivers/net/lance.clp->tx_ring[entry].base = 0;
lp881drivers/net/lance.cint err_status = lp->tx_ring[entry].misc;
lp882drivers/net/lance.clp->stats.tx_errors++;
lp883drivers/net/lance.cif (err_status & 0x0400) lp->stats.tx_aborted_errors++;
lp884drivers/net/lance.cif (err_status & 0x0800) lp->stats.tx_carrier_errors++;
lp885drivers/net/lance.cif (err_status & 0x1000) lp->stats.tx_window_errors++;
lp888drivers/net/lance.clp->stats.tx_fifo_errors++;
lp897drivers/net/lance.clp->stats.collisions++;
lp898drivers/net/lance.clp->stats.tx_packets++;
lp903drivers/net/lance.cif (lp->tx_skbuff[entry]) {
lp904drivers/net/lance.cdev_kfree_skb(lp->tx_skbuff[entry],FREE_WRITE);
lp905drivers/net/lance.clp->tx_skbuff[entry] = 0;
lp911drivers/net/lance.cif (lp->cur_tx - dirty_tx >= TX_RING_SIZE) {
lp913drivers/net/lance.cdirty_tx, lp->cur_tx, lp->tx_full);
lp918drivers/net/lance.cif (lp->tx_full && dev->tbusy
lp919drivers/net/lance.c&& dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
lp921drivers/net/lance.clp->tx_full = 0;
lp926drivers/net/lance.clp->dirty_tx = dirty_tx;
lp930drivers/net/lance.cif (csr0 & 0x4000) lp->stats.tx_errors++; /* Tx babble. */
lp931drivers/net/lance.cif (csr0 & 0x1000) lp->stats.rx_errors++; /* Missed a Rx frame. */
lp963drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp964drivers/net/lance.cint entry = lp->cur_rx & RX_RING_MOD_MASK;
lp968drivers/net/lance.cwhile (lp->rx_ring[entry].base >= 0) {
lp969drivers/net/lance.cint status = lp->rx_ring[entry].base >> 24;
lp977drivers/net/lance.clp->stats.rx_errors++; /* end of a packet.*/
lp978drivers/net/lance.cif (status & 0x20) lp->stats.rx_frame_errors++;
lp979drivers/net/lance.cif (status & 0x10) lp->stats.rx_over_errors++;
lp980drivers/net/lance.cif (status & 0x08) lp->stats.rx_crc_errors++;
lp981drivers/net/lance.cif (status & 0x04) lp->stats.rx_fifo_errors++;
lp982drivers/net/lance.clp->rx_ring[entry].base &= 0x03ffffff;
lp985drivers/net/lance.cshort pkt_len = (lp->rx_ring[entry].msg_length & 0xfff)-4;
lp992drivers/net/lance.cif (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0)
lp996drivers/net/lance.clp->stats.rx_dropped++;
lp997drivers/net/lance.clp->rx_ring[entry].base |= 0x80000000;
lp998drivers/net/lance.clp->cur_rx++;
lp1006drivers/net/lance.c(unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff),
lp1010drivers/net/lance.clp->stats.rx_packets++;
lp1015drivers/net/lance.clp->rx_ring[entry].buf_length = -PKT_BUF_SZ;
lp1016drivers/net/lance.clp->rx_ring[entry].base |= 0x80000000;
lp1017drivers/net/lance.centry = (++lp->cur_rx) & RX_RING_MOD_MASK;
lp1030drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp1035drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_HAS_MISSED_FRAME) {
lp1037drivers/net/lance.clp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA);
lp1062drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
lp1067drivers/net/lance.cif (chip_table[lp->chip_version].flags & LANCE_HAS_MISSED_FRAME) {
lp1072drivers/net/lance.clp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA);
lp1077drivers/net/lance.creturn &lp->stats;
lp158drivers/net/pi2.cstatic void rts(struct pi_local *lp, int x);
lp159drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp);
lp160drivers/net/pi2.cstatic void b_txint(struct pi_local *lp);
lp161drivers/net/pi2.cstatic void b_exint(struct pi_local *lp);
lp162drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp);
lp163drivers/net/pi2.cstatic void a_txint(struct pi_local *lp);
lp164drivers/net/pi2.cstatic void a_exint(struct pi_local *lp);
lp202drivers/net/pi2.cstatic void switchbuffers(struct pi_local *lp)
lp204drivers/net/pi2.cif (lp->rcvbuf == lp->rxdmabuf1)
lp205drivers/net/pi2.clp->rcvbuf = lp->rxdmabuf2;
lp207drivers/net/pi2.clp->rcvbuf = lp->rxdmabuf1;
lp210drivers/net/pi2.cstatic void hardware_send_packet(struct pi_local *lp, struct sk_buff *skb)
lp215drivers/net/pi2.clp->stats.tx_packets++;
lp219drivers/net/pi2.ckickflag = (skb_peek(&lp->sndq) == NULL) && (lp->sndbuf == NULL);
lp222drivers/net/pi2.cskb_queue_tail(&lp->sndq, skb);
lp225drivers/net/pi2.cswitch (lp->base & 2) {
lp227drivers/net/pi2.ca_txint(lp);  /* process interrupt */
lp232drivers/net/pi2.cif (lp->tstate == IDLE)
lp233drivers/net/pi2.cb_txint(lp);
lp240drivers/net/pi2.cstatic void setup_rx_dma(struct pi_local *lp)
lp250drivers/net/pi2.cdma_abs = (unsigned long) (lp->rcvbuf->data);
lp251drivers/net/pi2.cdmachan = lp->dmachan;
lp252drivers/net/pi2.ccmd = lp->base + CTL;
lp258drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB);
lp268drivers/net/pi2.cset_dma_count(dmachan, lp->bufsiz);
lp274drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC);
lp277drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1,
lp283drivers/net/pi2.cstatic void setup_tx_dma(struct pi_local *lp, int length)
lp292drivers/net/pi2.cdmachan = lp->dmachan;
lp293drivers/net/pi2.cdma_abs = (unsigned long) (lp->txdmabuf);
lp311drivers/net/pi2.cstatic void tdelay(struct pi_local *lp, int time)
lp317drivers/net/pi2.cif (lp->base & 2) {    /* If A channel */
lp320drivers/net/pi2.cport = lp->cardbase + TMR1;
lp324drivers/net/pi2.cport = lp->cardbase + TMR2;
lp325drivers/net/pi2.cwrtscc(lp->cardbase, lp->base + CTL, R1, INT_ALL_Rx | EXT_INT_ENAB);
lp329drivers/net/pi2.coutb_p(sc | LSB_MSB | MODE0, lp->cardbase + TMRCMD);
lp336drivers/net/pi2.cwrtscc(lp->cardbase, lp->base + CTL, R15, CTSIE);
lp337drivers/net/pi2.cwrtscc(lp->cardbase, lp->base + CTL, R0, RES_EXT_INT);
lp345drivers/net/pi2.cstatic void a_txint(struct pi_local *lp)
lp353drivers/net/pi2.ccmd = CTL + lp->base;
lp355drivers/net/pi2.cswitch (lp->tstate) {
lp358drivers/net/pi2.cif ((lp->sndbuf = skb_dequeue(&lp->sndq)) == NULL) {
lp359drivers/net/pi2.crts(lp, OFF);
lp369drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp370drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp371drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
lp372drivers/net/pi2.clp->tstate = DEFER;
lp373drivers/net/pi2.ctdelay(lp, 100);
lp375drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
lp379drivers/net/pi2.cif (random() > lp->persist) {
lp380drivers/net/pi2.clp->tstate = DEFER;
lp381drivers/net/pi2.ctdelay(lp, lp->slotime);
lp386drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
lp387drivers/net/pi2.crts(lp, ON);    /* Transmitter on */
lp388drivers/net/pi2.clp->tstate = ST_TXDELAY;
lp389drivers/net/pi2.ctdelay(lp, lp->txdelay);
lp399drivers/net/pi2.cstatic void a_exint(struct pi_local *lp)
lp409drivers/net/pi2.cst = rdscc(lp->cardbase, lp->base + CTL, R0);  /* Fetch status */
lp412drivers/net/pi2.cwrtscc(lp->cardbase, CTL + lp->base, R0, RES_EXT_INT);
lp413drivers/net/pi2.ccmd = lp->base + CTL;
lp415drivers/net/pi2.cif ((lp->rstate >= ACTIVE) && (st & BRK_ABRT)) {
lp416drivers/net/pi2.csetup_rx_dma(lp);
lp417drivers/net/pi2.clp->rstate = ACTIVE;
lp419drivers/net/pi2.cswitch (lp->tstate) {
lp421drivers/net/pi2.cfree_p(lp->sndbuf);
lp422drivers/net/pi2.clp->sndbuf = NULL;
lp423drivers/net/pi2.clp->tstate = FLAGOUT;
lp424drivers/net/pi2.ctdelay(lp, lp->squeldelay);
lp427drivers/net/pi2.cif ((lp->sndbuf = skb_dequeue(&lp->sndq)) == NULL) {
lp429drivers/net/pi2.clp->tstate = IDLE;
lp430drivers/net/pi2.crts(lp, OFF);
lp437drivers/net/pi2.cdisable_dma(lp->dmachan);
lp440drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
lp445drivers/net/pi2.clength = lp->sndbuf->len - 1;
lp446drivers/net/pi2.cmemcpy(lp->txdmabuf, &lp->sndbuf->data[1], length);
lp450drivers/net/pi2.csetup_tx_dma(lp, length);
lp454drivers/net/pi2.cenable_dma(lp->dmachan);
lp457drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P);
lp460drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);
lp463drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB);
lp466drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);
lp470drivers/net/pi2.clp->tstate = ACTIVE;
lp476drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp477drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp478drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
lp479drivers/net/pi2.clp->tstate = DEFER;
lp480drivers/net/pi2.ctdelay(lp, 100);
lp482drivers/net/pi2.cwrtscc(lp->cardbase, CTL + lp->base, R15, CTSIE | DCDIE);
lp486drivers/net/pi2.cif (random() > lp->persist) {
lp487drivers/net/pi2.clp->tstate = DEFER;
lp488drivers/net/pi2.ctdelay(lp, lp->slotime);
lp493drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
lp494drivers/net/pi2.crts(lp, ON);    /* Transmitter on */
lp495drivers/net/pi2.clp->tstate = ST_TXDELAY;
lp496drivers/net/pi2.ctdelay(lp, lp->txdelay);
lp506drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp)
lp519drivers/net/pi2.ccmd = lp->base + CTL;
lp521drivers/net/pi2.crse = rdscc(lp->cardbase, cmd, R1);  /* Get special condition bits from R1 */
lp523drivers/net/pi2.clp->rstate = RXERROR;
lp528drivers/net/pi2.cclear_dma_ff(lp->dmachan);
lp529drivers/net/pi2.cbytecount = lp->bufsiz - get_dma_residue(lp->dmachan);
lp531drivers/net/pi2.cif ((rse & CRC_ERR) || (lp->rstate > ACTIVE) || (bytecount < 10)) {
lp533drivers/net/pi2.clp->stats.rx_crc_errors++;
lp535drivers/net/pi2.cif (lp->rstate == RXERROR) {
lp536drivers/net/pi2.clp->stats.rx_errors++;
lp537drivers/net/pi2.clp->stats.rx_over_errors++;
lp540drivers/net/pi2.clp->rstate = ACTIVE;
lp541drivers/net/pi2.csetup_rx_dma(lp);
lp545drivers/net/pi2.cpkt_len = lp->rcvbuf->cnt = bytecount - 2 + 1;
lp548drivers/net/pi2.ccur_buf = lp->rcvbuf;
lp549drivers/net/pi2.cswitchbuffers(lp);
lp550drivers/net/pi2.csetup_rx_dma(lp);
lp559drivers/net/pi2.clp->stats.rx_dropped++;
lp575drivers/net/pi2.clp->stats.rx_packets++;
lp578drivers/net/pi2.cwrtscc(lp->cardbase, lp->base + CTL, R0, ERR_RES);  /* error reset */
lp582drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
lp594drivers/net/pi2.ccmd = CTL + lp->base;
lp596drivers/net/pi2.crse = rdscc(lp->cardbase, cmd, R1);  /* get status byte from R1 */
lp598drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0)) & Rx_CH_AV) {
lp605drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp606drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp608drivers/net/pi2.clp->rstate = RXERROR;  /* set error flag */
lp609drivers/net/pi2.clp->stats.rx_errors++;
lp610drivers/net/pi2.clp->stats.rx_over_errors++;
lp611drivers/net/pi2.c} else if (lp->rcvbuf->cnt >= lp->bufsiz) {
lp614drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp615drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp616drivers/net/pi2.clp->rstate = TOOBIG;/* when set, chars are not stored */
lp619drivers/net/pi2.cif (lp->rstate == ACTIVE) {  /* If no errors... */
lp620drivers/net/pi2.c*lp->rcp++ = rdscc(lp->cardbase, cmd, R8);  /* char to rcv buff */
lp621drivers/net/pi2.clp->rcvbuf->cnt++;  /* bump count */
lp624drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp625drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);  /* reset err latch */
lp626drivers/net/pi2.clp->rstate = ACTIVE;
lp631drivers/net/pi2.cif (lp->rcvbuf->cnt > 0) {
lp632drivers/net/pi2.cif ((rse & CRC_ERR) || (lp->rstate > ACTIVE) || (lp->rcvbuf->cnt < 10)) {
lp633drivers/net/pi2.cif ((lp->rcvbuf->cnt >= 10) && (rse & CRC_ERR)) {
lp634drivers/net/pi2.clp->stats.rx_crc_errors++;
lp636drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp637drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp640drivers/net/pi2.cpkt_len = lp->rcvbuf->cnt -= 2;  /* Toss 2 crc bytes */
lp648drivers/net/pi2.clp->stats.rx_dropped++;
lp658drivers/net/pi2.cmemcpy(cfix, lp->rcvbuf->data, pkt_len - 1);
lp662drivers/net/pi2.clp->stats.rx_packets++;
lp664drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp665drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp669drivers/net/pi2.clp->rstate = ACTIVE;  /* and clear error status */
lp675drivers/net/pi2.cstatic void b_txint(struct pi_local *lp)
lp683drivers/net/pi2.ccmd = CTL + lp->base;
lp685drivers/net/pi2.cswitch (lp->tstate) {
lp687drivers/net/pi2.clp->tstate = FLAGOUT;
lp688drivers/net/pi2.ctdelay(lp, lp->squeldelay);
lp693drivers/net/pi2.cif ((lp->sndbuf = skb_dequeue(&lp->sndq)) == NULL) {
lp697drivers/net/pi2.crts(lp, OFF);
lp702drivers/net/pi2.clp->txptr = lp->sndbuf->data;
lp703drivers/net/pi2.clp->txptr++;    /* Ignore KISS control byte */
lp704drivers/net/pi2.clp->txcnt = (int) lp->sndbuf->len - 1;
lp709drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp710drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp711drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
lp712drivers/net/pi2.clp->tstate = DEFER;
lp713drivers/net/pi2.ctdelay(lp, 100);
lp715drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
lp719drivers/net/pi2.cif (random() > lp->persist) {
lp720drivers/net/pi2.clp->tstate = DEFER;
lp721drivers/net/pi2.ctdelay(lp, lp->slotime);
lp725drivers/net/pi2.crts(lp, ON);    /* Transmitter on */
lp726drivers/net/pi2.clp->tstate = ST_TXDELAY;
lp727drivers/net/pi2.ctdelay(lp, lp->txdelay);
lp733drivers/net/pi2.cif (lp->txcnt--) {
lp734drivers/net/pi2.cc = *lp->txptr++;
lp736drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
lp740drivers/net/pi2.cfree_p(lp->sndbuf);
lp741drivers/net/pi2.clp->sndbuf = NULL;
lp742drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & 0x40)) {
lp745drivers/net/pi2.clp->stats.tx_errors++;
lp746drivers/net/pi2.clp->stats.tx_fifo_errors++;
lp747drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
lp748drivers/net/pi2.clp->tstate = FLAGOUT;
lp749drivers/net/pi2.ctdelay(lp, lp->squeldelay);
lp753drivers/net/pi2.clp->tstate = UNDERRUN;  /* Now we expect to underrun */
lp755drivers/net/pi2.cif (lp->speed) {  /* If internally clocked */
lp756drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);
lp758drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS);
lp760drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_P);  /* reset Tx Int Pend */
lp775drivers/net/pi2.cstatic void b_exint(struct pi_local *lp)
lp782drivers/net/pi2.ccmd = CTL + lp->base;
lp785drivers/net/pi2.cst = rdscc(lp->cardbase, cmd, R0);  /* Fetch status */
lp787drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp790drivers/net/pi2.cswitch (lp->tstate) {
lp792drivers/net/pi2.cfree_p(lp->sndbuf);
lp793drivers/net/pi2.clp->sndbuf = NULL;
lp794drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
lp795drivers/net/pi2.clp->tstate = FLAGOUT;
lp796drivers/net/pi2.clp->stats.tx_errors++;
lp797drivers/net/pi2.clp->stats.tx_fifo_errors++;
lp798drivers/net/pi2.ctdelay(lp, lp->squeldelay);
lp802drivers/net/pi2.clp->tstate = CRCOUT;
lp807drivers/net/pi2.cif ((lp->sndbuf = skb_dequeue(&lp->sndq)) == NULL) {
lp811drivers/net/pi2.crts(lp, OFF);
lp812drivers/net/pi2.clp->tstate = IDLE;
lp816drivers/net/pi2.clp->txptr = lp->sndbuf->data;
lp817drivers/net/pi2.clp->txptr++;    /* Ignore KISS control byte */
lp818drivers/net/pi2.clp->txcnt = (int) lp->sndbuf->len - 1;
lp820drivers/net/pi2.clp->txcnt--;
lp821drivers/net/pi2.cc = *lp->txptr++;
lp822drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC);  /* reset for next frame */
lp825drivers/net/pi2.cif (lp->speed) {  /* If internally clocked */
lp826drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER);
lp828drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER);
lp831drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);  /* First char out now */
lp832drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);  /* Reset end of message latch */
lp836drivers/net/pi2.cif (lp->txcnt) {
lp837drivers/net/pi2.clp->txcnt--;
lp838drivers/net/pi2.cc = *lp->txptr++;
lp840drivers/net/pi2.cwhile((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0)
lp842drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
lp848drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);  /* allow Underrun int only */
lp849drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp850drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB);  /* Tx/Ext ints */
lp852drivers/net/pi2.clp->tstate = ACTIVE;  /* char going out now */
lp860drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp861drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp862drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
lp863drivers/net/pi2.clp->tstate = DEFER;
lp864drivers/net/pi2.ctdelay(lp, 100);
lp866drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
lp870drivers/net/pi2.cif (random() > lp->persist) {
lp871drivers/net/pi2.clp->tstate = DEFER;
lp872drivers/net/pi2.ctdelay(lp, lp->slotime);
lp876drivers/net/pi2.crts(lp, ON);    /* Transmitter on */
lp877drivers/net/pi2.clp->tstate = ST_TXDELAY;
lp878drivers/net/pi2.ctdelay(lp, lp->txdelay);
lp885drivers/net/pi2.clp->txcnt--;
lp886drivers/net/pi2.cc = *lp->txptr++;
lp887drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC);  /* reset for next frame */
lp890drivers/net/pi2.cif (lp->speed) {  /* If internally clocked */
lp891drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER);
lp893drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER);
lp896drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);  /* First char out now */
lp897drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);  /* Reset end of message latch */
lp901drivers/net/pi2.cif (lp->txcnt) {
lp902drivers/net/pi2.clp->txcnt--;
lp903drivers/net/pi2.cc = *lp->txptr++;
lp905drivers/net/pi2.cwhile((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0)
lp907drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
lp913drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);  /* allow Underrun int only */
lp914drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
lp916drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB);
lp918drivers/net/pi2.clp->tstate = ACTIVE;  /* char going out now */
lp928drivers/net/pi2.cif ((lp->rstate == ACTIVE) && (st & BRK_ABRT)) {
lp929drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp930drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp931drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp932drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp933drivers/net/pi2.clp->rcvbuf->cnt = 0;  /* rewind on DCD transition */
lp999drivers/net/pi2.cstatic void rts(struct pi_local *lp, int x)
lp1007drivers/net/pi2.ccmd = CTL + lp->base;
lp1012drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, 0);
lp1013drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* Rx off */
lp1014drivers/net/pi2.clp->rstate = IDLE;
lp1017drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
lp1019drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, 0);  /* No interrupts */
lp1022drivers/net/pi2.cif (!lp->clockmode) {
lp1023drivers/net/pi2.cif (lp->speed) {  /* if internally clocked */
lp1024drivers/net/pi2.cbr = lp->speed;  /* get desired speed */
lp1025drivers/net/pi2.ctc = (lp->xtal / br) - 2;  /* calc 1X BRG divisor */
lp1026drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
lp1027drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
lp1030drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR);
lp1033drivers/net/pi2.clp->tstate = IDLE;
lp1034drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);  /*  TX off */
lp1036drivers/net/pi2.cif (!lp->clockmode) {
lp1037drivers/net/pi2.cif (lp->speed) {  /* if internally clocked */
lp1040drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC);
lp1041drivers/net/pi2.cbr = lp->speed;  /* get desired speed */
lp1043drivers/net/pi2.ctc = ((lp->xtal / 32) / br) - 2;
lp1044drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
lp1045drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
lp1047drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);
lp1049drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);
lp1053drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* Make sure rx is off */
lp1054drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);  /* reset err latch */
lp1055drivers/net/pi2.cdummy = rdscc(lp->cardbase, cmd, R1);  /* get status byte from R1 */
lp1056drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp1057drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp1059drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
lp1062drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | Rx8);
lp1063drivers/net/pi2.clp->rstate = ACTIVE;  /* Normal state */
lp1066drivers/net/pi2.csetup_rx_dma(lp);
lp1069drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp1070drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp1071drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB));
lp1073drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, BRKIE);  /* allow ABORT int */
lp1094drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
lp1102drivers/net/pi2.ccmd = CTL + lp->base;
lp1108drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R9, CHRA);  /* Reset channel A */
lp1109drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R2, 0xff);  /* Initialize interrupt vector */
lp1112drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R9, CHRB);  /* Reset channel B */
lp1117drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, 0);
lp1120drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, 0);
lp1123drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK);
lp1126drivers/net/pi2.cif (lp->speed) {    /* Use internal clocking */
lp1127drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);
lp1128drivers/net/pi2.cif (!lp->clockmode)
lp1130drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI);
lp1133drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCDPLL | RCDPLL | TRxCBR | TRxCOI);
lp1135drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS);
lp1137drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCTRxCP);
lp1141drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R6, 0);
lp1144drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R7, FLAG);
lp1149drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);
lp1152drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* 8 bits/char */
lp1155drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC);  /* BRG off, keep Pclk source */
lp1159drivers/net/pi2.cif (lp->speed) {
lp1160drivers/net/pi2.cbr = lp->speed;    /* get desired speed */
lp1161drivers/net/pi2.ctc = ((lp->xtal / 32) / br) - 2;  /* calc 32X BRG divisor */
lp1166drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
lp1167drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
lp1170drivers/net/pi2.crts(lp, OFF);    /* TX OFF and RX ON */
lp1172drivers/net/pi2.cif (lp->speed) {
lp1174drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR);
lp1177drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SSRTxC);
lp1179drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);  /* SEARCH mode, keep BRG src */
lp1180drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);  /* Enable the BRG */
lp1183drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB));
lp1185drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, BRKIE);  /* ABORT int */
lp1188drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | Rx8);
lp1308drivers/net/pi2.cstruct pi_local *lp;
lp1319drivers/net/pi2.clp = (struct pi_local *) dev->priv;
lp1325drivers/net/pi2.clp->txdmabuf = get_dma_buffer(&mem_ptr);
lp1326drivers/net/pi2.clp->rxdmabuf1 = (struct mbuf *) get_dma_buffer(&mem_ptr);
lp1327drivers/net/pi2.clp->rxdmabuf2 = (struct mbuf *) get_dma_buffer(&mem_ptr);
lp1330drivers/net/pi2.clp->rcvbuf = lp->rxdmabuf1;
lp1331drivers/net/pi2.clp->rcp = lp->rcvbuf->data;
lp1332drivers/net/pi2.clp->rcvbuf->cnt = 0;
lp1335drivers/net/pi2.cskb_queue_head_init(&lp->sndq);
lp1339drivers/net/pi2.clp->xtal = (unsigned long) SINGLE / 2;
lp1341drivers/net/pi2.clp->xtal = (unsigned long) DOUBLE / 2;
lp1342drivers/net/pi2.clp->base = dev->base_addr;
lp1343drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
lp1345drivers/net/pi2.clp->speed = DEF_A_SPEED;
lp1347drivers/net/pi2.clp->txdelay = DEF_A_TXDELAY;
lp1348drivers/net/pi2.clp->persist = DEF_A_PERSIST;
lp1349drivers/net/pi2.clp->slotime = DEF_A_SLOTIME;
lp1350drivers/net/pi2.clp->squeldelay = DEF_A_SQUELDELAY;
lp1351drivers/net/pi2.clp->clockmode = DEF_A_CLOCKMODE;
lp1354drivers/net/pi2.clp->speed = DEF_B_SPEED;
lp1356drivers/net/pi2.clp->txdelay = DEF_B_TXDELAY;
lp1357drivers/net/pi2.clp->persist = DEF_B_PERSIST;
lp1358drivers/net/pi2.clp->slotime = DEF_B_SLOTIME;
lp1359drivers/net/pi2.clp->squeldelay = DEF_B_SQUELDELAY;
lp1360drivers/net/pi2.clp->clockmode = DEF_B_CLOCKMODE;
lp1362drivers/net/pi2.clp->bufsiz = DMA_BUFF_SIZE;
lp1363drivers/net/pi2.clp->tstate = IDLE;
lp1370drivers/net/pi2.clp->dmachan = dev->dma;
lp1371drivers/net/pi2.cif (lp->dmachan < 1 || lp->dmachan > 3)
lp1372drivers/net/pi2.cprintk("PI: DMA channel %d out of range\n", lp->dmachan);
lp1380drivers/net/pi2.cwrtscc(lp->cardbase, CTL + lp->base, R1, EXT_INT_ENAB);
lp1382drivers/net/pi2.cwrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV);
lp1385drivers/net/pi2.ctdelay(lp, 1);
lp1393drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
lp1395drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
lp1464drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
lp1477drivers/net/pi2.clp->tstate = IDLE;
lp1486drivers/net/pi2.cwrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV);
lp1489drivers/net/pi2.clp->open_time = jiffies;
lp1500drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
lp1509drivers/net/pi2.chardware_send_packet(lp, skb);
lp1520drivers/net/pi2.cstruct pi_local *lp;
lp1535drivers/net/pi2.clp = (struct pi_local *) pi0a.priv;  /* Assume channel A */
lp1536drivers/net/pi2.cwhile ((st = rdscc(lp->cardbase, pi0a.base_addr | CHANA | CTL, R3)) != 0) {
lp1539drivers/net/pi2.clp = (struct pi_local *) pi0b.priv;
lp1540drivers/net/pi2.cb_txint(lp);
lp1543drivers/net/pi2.clp = (struct pi_local *) pi0a.priv;
lp1544drivers/net/pi2.ca_rxint(&pi0a, lp);
lp1547drivers/net/pi2.clp = (struct pi_local *) pi0a.priv;
lp1548drivers/net/pi2.ca_txint(lp);
lp1551drivers/net/pi2.clp = (struct pi_local *) pi0a.priv;
lp1552drivers/net/pi2.ca_exint(lp);
lp1555drivers/net/pi2.clp = (struct pi_local *) pi0b.priv;
lp1556drivers/net/pi2.cb_rxint(&pi0b, lp);
lp1559drivers/net/pi2.clp = (struct pi_local *) pi0b.priv;
lp1560drivers/net/pi2.cb_exint(lp);
lp1565drivers/net/pi2.cwrtscc(lp->cardbase, lp->base + CTL, R0, RES_H_IUS);
lp1575drivers/net/pi2.cstruct pi_local *lp;
lp1581drivers/net/pi2.clp = (struct pi_local *) dev->priv;
lp1585drivers/net/pi2.cdisable_dma(lp->dmachan);
lp1587drivers/net/pi2.clp->open_time = 0;
lp1593drivers/net/pi2.cwhile ((ptr = skb_dequeue(&lp->sndq)) != NULL)
lp1604drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
lp1622drivers/net/pi2.clp->txdelay = rq.txdelay;
lp1623drivers/net/pi2.clp->persist = rq.persist;
lp1624drivers/net/pi2.clp->slotime = rq.slotime;
lp1625drivers/net/pi2.clp->squeldelay = rq.squeldelay;
lp1626drivers/net/pi2.clp->clockmode = rq.clockmode;
lp1627drivers/net/pi2.clp->speed = rq.speed;
lp1644drivers/net/pi2.cfree_dma(lp->dmachan);
lp1645drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
lp1646drivers/net/pi2.cif (request_dma(lp->dmachan,"pi2")) 
lp1661drivers/net/pi2.crq.speed = lp->speed;
lp1662drivers/net/pi2.crq.txdelay = lp->txdelay;
lp1663drivers/net/pi2.crq.persist = lp->persist;
lp1664drivers/net/pi2.crq.slotime = lp->slotime;
lp1665drivers/net/pi2.crq.squeldelay = lp->squeldelay;
lp1666drivers/net/pi2.crq.clockmode = lp->clockmode;
lp1667drivers/net/pi2.crq.dmachan = lp->dmachan;
lp1684drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
lp1686drivers/net/pi2.creturn &lp->stats;
lp353drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
lp368drivers/net/seeq8005.clp->open_time = jiffies;
lp427drivers/net/seeq8005.cstruct net_local *lp;
lp440drivers/net/seeq8005.clp = (struct net_local *)dev->priv;
lp456drivers/net/seeq8005.clp->stats.tx_packets++;
lp478drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
lp490drivers/net/seeq8005.coutw( lp->receive_ptr, SEEQ_DMAAR);
lp497drivers/net/seeq8005.cprintk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
lp507drivers/net/seeq8005.cif (next_packet < lp->receive_ptr) {
lp508drivers/net/seeq8005.cpkt_len = (next_packet + 0x10000 - ((DEFAULT_TEA+1)<<8)) - lp->receive_ptr - 4;
lp510drivers/net/seeq8005.cpkt_len = next_packet - lp->receive_ptr - 4;
lp519drivers/net/seeq8005.clp->receive_ptr = next_packet;
lp526drivers/net/seeq8005.clp->stats.rx_errors++;
lp527drivers/net/seeq8005.cif (pkt_hdr & SEEQPKTS_SHORT) lp->stats.rx_frame_errors++;
lp528drivers/net/seeq8005.cif (pkt_hdr & SEEQPKTS_DRIB) lp->stats.rx_frame_errors++;
lp529drivers/net/seeq8005.cif (pkt_hdr & SEEQPKTS_OVERSIZE) lp->stats.rx_over_errors++;
lp530drivers/net/seeq8005.cif (pkt_hdr & SEEQPKTS_CRC_ERR) lp->stats.rx_crc_errors++;
lp533drivers/net/seeq8005.coutw( (lp->receive_ptr & 0xff00)>>8, SEEQ_REA);
lp542drivers/net/seeq8005.clp->stats.rx_dropped++;
lp562drivers/net/seeq8005.clp->stats.rx_packets++;
lp576drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
lp579drivers/net/seeq8005.clp->open_time = 0;
lp602drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
lp604drivers/net/seeq8005.creturn &lp->stats;
lp637drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
lp660drivers/net/seeq8005.clp->receive_ptr = (DEFAULT_TEA+1)<<8;  /* so we can find our packet_header */
lp661drivers/net/seeq8005.coutw( lp->receive_ptr, SEEQ_RPR);  /* Receive Pointer Register is set to recv buffer memory */
lp304drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
lp323drivers/net/skeleton.clp->open_time = jiffies;
lp337drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
lp377drivers/net/skeleton.clp->stats.tx_aborted_errors++;
lp388drivers/net/skeleton.cstruct net_local *lp;
lp398drivers/net/skeleton.clp = (struct net_local *)dev->priv;
lp407drivers/net/skeleton.clp->stats.tx_packets++;
lp413drivers/net/skeleton.clp->stats.tx_window_errors++;
lp425drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
lp437drivers/net/skeleton.clp->stats.rx_errors++;
lp438drivers/net/skeleton.cif (status & 0x20) lp->stats.rx_frame_errors++;
lp439drivers/net/skeleton.cif (status & 0x10) lp->stats.rx_over_errors++;
lp440drivers/net/skeleton.cif (status & 0x08) lp->stats.rx_crc_errors++;
lp441drivers/net/skeleton.cif (status & 0x04) lp->stats.rx_fifo_errors++;
lp450drivers/net/skeleton.clp->stats.rx_dropped++;
lp462drivers/net/skeleton.clp->stats.rx_packets++;
lp476drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
lp479drivers/net/skeleton.clp->open_time = 0;
lp509drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
lp514drivers/net/skeleton.clp->stats.rx_missed_errors = inw(ioaddr+1);
lp517drivers/net/skeleton.creturn &lp->stats;
lp463drivers/net/tulip.cstruct tulip_private *lp;
lp472drivers/net/tulip.clp = (struct tulip_private *)dev->priv;
lp494drivers/net/tulip.cint dirty_tx = lp->dirty_tx;
lp496drivers/net/tulip.cwhile (dirty_tx < lp->cur_tx) {
lp498drivers/net/tulip.cint status = lp->tx_ring[entry].status;
lp505drivers/net/tulip.clp->stats.tx_errors++;
lp506drivers/net/tulip.cif (status & 0x4104) lp->stats.tx_aborted_errors++;
lp507drivers/net/tulip.cif (status & 0x0C00) lp->stats.tx_carrier_errors++;
lp508drivers/net/tulip.cif (status & 0x0200) lp->stats.tx_window_errors++;
lp509drivers/net/tulip.cif (status & 0x0002) lp->stats.tx_fifo_errors++;
lp510drivers/net/tulip.cif (status & 0x0080) lp->stats.tx_heartbeat_errors++;
lp512drivers/net/tulip.cif (status & 0x0100) lp->stats.collisions16++;
lp516drivers/net/tulip.cif (status & 0x0001) lp->stats.tx_deferred++;
lp518drivers/net/tulip.clp->stats.collisions += (status >> 3) & 15;
lp519drivers/net/tulip.clp->stats.tx_packets++;
lp523drivers/net/tulip.cdev_kfree_skb(lp->tx_skbuff[entry], FREE_WRITE);
lp528drivers/net/tulip.cif (lp->cur_tx - dirty_tx >= TX_RING_SIZE) {
lp530drivers/net/tulip.cdirty_tx, lp->cur_tx, lp->tx_full);
lp535drivers/net/tulip.cif (lp->tx_full && dev->tbusy
lp536drivers/net/tulip.c&& dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
lp538drivers/net/tulip.clp->tx_full = 0;
lp543drivers/net/tulip.clp->dirty_tx = dirty_tx;
lp548drivers/net/tulip.cif (csr5 & 0x0008) lp->stats.tx_errors++; /* Tx babble. */
lp550drivers/net/tulip.clp->stats.rx_errors++;
lp551drivers/net/tulip.clp->stats.rx_missed_errors += inl(ioaddr + CSR8) & 0xffff;
lp589drivers/net/tulip.cstruct tulip_private *lp = (struct tulip_private *)dev->priv;
lp590drivers/net/tulip.cint entry = lp->cur_rx % RX_RING_SIZE;
lp596drivers/net/tulip.cwhile (lp->rx_ring[entry].status >= 0) {
lp597drivers/net/tulip.cint status = lp->rx_ring[entry].status;
lp606drivers/net/tulip.clp->stats.rx_errors++; /* end of a packet.*/
lp607drivers/net/tulip.cif (status & 0x0890) lp->stats.rx_length_errors++;
lp608drivers/net/tulip.cif (status & 0x0004) lp->stats.rx_frame_errors++;
lp609drivers/net/tulip.cif (status & 0x0002) lp->stats.rx_crc_errors++;
lp610drivers/net/tulip.cif (status & 0x0001) lp->stats.rx_fifo_errors++;
lp613drivers/net/tulip.cshort pkt_len = lp->rx_ring[entry].status >> 16;
lp622drivers/net/tulip.cif (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0)
lp626drivers/net/tulip.clp->stats.rx_dropped++;
lp627drivers/net/tulip.clp->rx_ring[entry].status = 0x80000000;
lp628drivers/net/tulip.clp->cur_rx++;
lp634drivers/net/tulip.cmemcpy(skb_put(skb,pkt_len), lp->rx_ring[entry].buffer1, pkt_len);
lp637drivers/net/tulip.clp->stats.rx_packets++;
lp640drivers/net/tulip.clp->rx_ring[entry].status = 0x80000000;
lp641drivers/net/tulip.centry = (++lp->cur_rx) % RX_RING_SIZE;
lp197drivers/net/wavelan.cnet_local  *lp;
lp201drivers/net/wavelan.clp = (net_local *)dev->priv;
lp205drivers/net/wavelan.clp->hacr &= ~HACR_INTRON;
lp206drivers/net/wavelan.chacr_write(ioaddr, lp->hacr);
lp216drivers/net/wavelan.cnet_local  *lp;
lp220drivers/net/wavelan.clp = (net_local *)dev->priv;
lp224drivers/net/wavelan.clp->hacr |= HACR_INTRON;
lp225drivers/net/wavelan.chacr_write(ioaddr, lp->hacr);
lp387drivers/net/wavelan.cnet_local  *lp;
lp392drivers/net/wavelan.clp = (net_local *)dev->priv;
lp436drivers/net/wavelan.cif (lp->promiscuous && lp->full_promiscuous)
lp453drivers/net/wavelan.cm.mmw_netw_id_l = lp->nwid[1];
lp454drivers/net/wavelan.cm.mmw_netw_id_h = lp->nwid[0];
lp464drivers/net/wavelan.cnet_local  *lp;
lp469drivers/net/wavelan.clp = (net_local *)dev->priv;
lp479drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp503drivers/net/wavelan.cnet_local  *lp;
lp509drivers/net/wavelan.clp = (net_local *)dev->priv;
lp514drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp543drivers/net/wavelan.cnet_local  *lp;
lp556drivers/net/wavelan.clp = (net_local *)dev->priv;
lp558drivers/net/wavelan.clp->nresets++;
lp561drivers/net/wavelan.clp->hacr = HACR_DEFAULT;
lp575drivers/net/wavelan.cpsa_read(ioaddr, lp->hacr, 0, (unsigned char *)&psa, sizeof(psa));
lp599drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp702drivers/net/wavelan.cAC_CFG_PRM(lp->promiscuous);
lp866drivers/net/wavelan.cnet_local  *lp;
lp1019drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1023drivers/net/wavelan.cfirst_wavelan = lp;
lp1024drivers/net/wavelan.clp->prev = lp;
lp1025drivers/net/wavelan.clp->next = lp;
lp1029drivers/net/wavelan.clp->prev = first_wavelan->prev;
lp1030drivers/net/wavelan.clp->next = first_wavelan;
lp1031drivers/net/wavelan.cfirst_wavelan->prev->next = lp;
lp1032drivers/net/wavelan.cfirst_wavelan->prev = lp;
lp1034drivers/net/wavelan.clp->dev = dev;
lp1036drivers/net/wavelan.clp->hacr = HACR_DEFAULT;
lp1038drivers/net/wavelan.clp->full_promiscuous = enable_full_promiscuous;
lp1039drivers/net/wavelan.clp->nwid[0] = psa.psa_nwid[0];
lp1040drivers/net/wavelan.clp->nwid[1] = psa.psa_nwid[1];
lp1042drivers/net/wavelan.clp->watchdog.function = wavelan_watchdog;
lp1043drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
lp1074drivers/net/wavelan.cnet_local  *lp;
lp1083drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1089drivers/net/wavelan.clp->rx_head = OFFSET_RU;
lp1091drivers/net/wavelan.cfor (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next)
lp1093drivers/net/wavelan.crx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ;
lp1108drivers/net/wavelan.clp->rx_last = rx;
lp1111drivers/net/wavelan.cobram_write(ioaddr, scboff(OFFSET_SCB, scb_rfa_offset), (unsigned char *)&lp->rx_head, sizeof(lp->rx_head));
lp1116drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp1141drivers/net/wavelan.cnet_local  *lp;
lp1148drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1150drivers/net/wavelan.clp->tx_first_free = OFFSET_CU;
lp1151drivers/net/wavelan.clp->tx_first_in_use = I82586NULL;
lp1197drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp1211drivers/net/wavelan.clp->tx_n_in_use = 0;
lp1220drivers/net/wavelan.cnet_local  *lp;
lp1228drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1285drivers/net/wavelan.cnet_local  *lp;
lp1298drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1302drivers/net/wavelan.ctxblock = lp->tx_first_free;
lp1306drivers/net/wavelan.clp->tx_first_free += TXBLOCKZ;
lp1307drivers/net/wavelan.cif (lp->tx_first_free >= OFFSET_CU + NTXBLOCKS * TXBLOCKZ)
lp1308drivers/net/wavelan.clp->tx_first_free -= NTXBLOCKS * TXBLOCKZ;
lp1315drivers/net/wavelan.clp->tx_n_in_use++;
lp1360drivers/net/wavelan.cif (lp->tx_first_in_use == I82586NULL)
lp1361drivers/net/wavelan.clp->tx_first_in_use = txblock;
lp1363drivers/net/wavelan.cif (lp->tx_n_in_use < NTXBLOCKS - 1)
lp1368drivers/net/wavelan.cif (lp->watchdog.next == (timer_list *)0)
lp1487drivers/net/wavelan.cnet_local  *lp;
lp1491drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1502drivers/net/wavelan.cobram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd));
lp1529drivers/net/wavelan.clp->stats.rx_errors++;
lp1536drivers/net/wavelan.clp->stats.rx_length_errors++;
lp1542drivers/net/wavelan.clp->stats.rx_over_errors++;
lp1548drivers/net/wavelan.clp->stats.rx_fifo_errors++;
lp1554drivers/net/wavelan.clp->stats.rx_frame_errors++;
lp1560drivers/net/wavelan.clp->stats.rx_crc_errors++;
lp1646drivers/net/wavelan.clp->stats.rx_dropped++;
lp1684drivers/net/wavelan.clp->stats.rx_packets++;
lp1689drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status));
lp1692drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
lp1695drivers/net/wavelan.cobram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command));
lp1697drivers/net/wavelan.clp->rx_last = lp->rx_head;
lp1698drivers/net/wavelan.clp->rx_head = fd.fd_link_offset;
lp1713drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
lp1723drivers/net/wavelan.cif (lp->tx_first_in_use == I82586NULL)
lp1726drivers/net/wavelan.cobram_read(ioaddr, acoff(lp->tx_first_in_use, ac_status), (unsigned char *)&tx_status, sizeof(tx_status));
lp1733drivers/net/wavelan.c--lp->tx_n_in_use;
lp1740drivers/net/wavelan.cif (lp->tx_n_in_use <= 0)
lp1741drivers/net/wavelan.clp->tx_first_in_use = I82586NULL;
lp1744drivers/net/wavelan.clp->tx_first_in_use += TXBLOCKZ;
lp1745drivers/net/wavelan.cif (lp->tx_first_in_use >= OFFSET_CU + NTXBLOCKS * TXBLOCKZ)
lp1746drivers/net/wavelan.clp->tx_first_in_use -= NTXBLOCKS * TXBLOCKZ;
lp1753drivers/net/wavelan.clp->stats.tx_packets++;
lp1755drivers/net/wavelan.clp->stats.collisions += ncollisions;
lp1763drivers/net/wavelan.clp->stats.tx_errors++;
lp1766drivers/net/wavelan.clp->stats.tx_carrier_errors++;
lp1772drivers/net/wavelan.clp->stats.tx_carrier_errors++;
lp1777drivers/net/wavelan.clp->stats.tx_fifo_errors++;
lp1782drivers/net/wavelan.clp->stats.tx_heartbeat_errors++;
lp1788drivers/net/wavelan.clp->stats.tx_aborted_errors++;
lp1806drivers/net/wavelan.cif (lp->tx_n_in_use < NTXBLOCKS - 1)
lp1820drivers/net/wavelan.cnet_local  *lp;
lp1829drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1831drivers/net/wavelan.cif (lp->tx_n_in_use <= 0)
lp1837drivers/net/wavelan.clp->watchdog.expires = jiffies+WATCHDOG_JIFFIES;
lp1838drivers/net/wavelan.cadd_timer(&lp->watchdog);
lp1846drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
lp1848drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
lp1866drivers/net/wavelan.cnet_local  *lp;
lp1878drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1912drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp1924drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
lp1969drivers/net/wavelan.cnet_local  *lp;
lp1976drivers/net/wavelan.clp = (net_local *)dev->priv;
lp1986drivers/net/wavelan.cset_chan_attn(ioaddr, lp->hacr);
lp2016drivers/net/wavelan.cnet_local  *lp;
lp2018drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2020drivers/net/wavelan.creturn &lp->stats;
lp2027drivers/net/wavelan.cnet_local  *lp;
lp2033drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2041drivers/net/wavelan.clp->promiscuous = 1;
lp2052drivers/net/wavelan.clp->promiscuous = 0;
lp2078drivers/net/wavelan.cnet_local  *lp;
lp2082drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2084drivers/net/wavelan.cif (lp == (net_local *)0)
lp2102drivers/net/wavelan.clp->correct_nwid += (m.mmr_correct_nwid_h << 8) | m.mmr_correct_nwid_l;
lp2103drivers/net/wavelan.clp->wrong_nwid += (m.mmr_wrong_nwid_h << 8) | m.mmr_wrong_nwid_l;
lp2111drivers/net/wavelan.clp->correct_nwid,
lp2112drivers/net/wavelan.clp->wrong_nwid,
lp2116drivers/net/wavelan.clp->tx_n_in_use,
lp2117drivers/net/wavelan.clp->nresets
lp2143drivers/net/wavelan.cnet_local  *lp;
lp2145drivers/net/wavelan.clp = first_wavelan;
lp2148drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
lp2162drivers/net/wavelan.cwhile ((lp = lp->next) != first_wavelan);
lp2217drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
lp2430drivers/net/wavelan.cnet_local  *lp;
lp2432drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2445drivers/net/wavelan.cnet_local  *lp;
lp2449drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2454drivers/net/wavelan.cfor (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++)
lp2456drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
lp2481drivers/net/wavelan.cnet_local  *lp;
lp2483drivers/net/wavelan.clp = (net_local *)dev->priv;
lp2486drivers/net/wavelan.cprintk(" tx_n_in_use=%d,", lp->tx_n_in_use);
lp2487drivers/net/wavelan.cprintk(" hacr=0x%x,", lp->hacr);
lp2488drivers/net/wavelan.cprintk(" rx_head=0x%x,", lp->rx_head);
lp2489drivers/net/wavelan.cprintk(" rx_last=0x%x,", lp->rx_last);
lp2490drivers/net/wavelan.cprintk(" tx_first_free=0x%x,", lp->tx_first_free);
lp2491drivers/net/wavelan.cprintk(" tx_first_in_use=0x%x,", lp->tx_first_in_use);
lp437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
lp443drivers/net/znet.clp->stats.tx_packets++;
lp444drivers/net/znet.clp->stats.collisions += tx_status & 0xf;
lp446drivers/net/znet.cif (tx_status & 0x0600)  lp->stats.tx_carrier_errors++;
lp447drivers/net/znet.cif (tx_status & 0x0100)  lp->stats.tx_fifo_errors++;
lp448drivers/net/znet.cif (!(tx_status & 0x0040)) lp->stats.tx_heartbeat_errors++;
lp449drivers/net/znet.cif (tx_status & 0x0020)  lp->stats.tx_aborted_errors++;
lp452drivers/net/znet.clp->stats.tx_errors++;
lp472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
lp539drivers/net/znet.clp->stats.rx_errors++;
lp540drivers/net/znet.cif (status & 0x0800) lp->stats.rx_crc_errors++;
lp541drivers/net/znet.cif (status & 0x0400) lp->stats.rx_frame_errors++;
lp542drivers/net/znet.cif (status & 0x0200) lp->stats.rx_over_errors++; /* Wrong. */
lp543drivers/net/znet.cif (status & 0x0100) lp->stats.rx_fifo_errors++;
lp544drivers/net/znet.cif (status & 0x0080) lp->stats.rx_length_errors++;
lp546drivers/net/znet.clp->stats.rx_length_errors++;
lp555drivers/net/znet.clp->stats.rx_dropped++;
lp575drivers/net/znet.clp->stats.rx_packets++;
lp621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
lp623drivers/net/znet.creturn &lp->stats;
lp5drivers/scsi/eata_dma_proc.cu32 *lp, h_lp;
lp9drivers/scsi/eata_dma_proc.clp = (u32 *)p;
lp10drivers/scsi/eata_dma_proc.csp = ((short *)lp) + 1;      /* Convert Header */
lp12drivers/scsi/eata_dma_proc.clp++;
lp15drivers/scsi/eata_dma_proc.csp = (u16 *)lp;      /* Convert SubHeader */
lp17drivers/scsi/eata_dma_proc.cbp = (u8 *) lp;
lp19drivers/scsi/eata_dma_proc.clp++;
lp20drivers/scsi/eata_dma_proc.cfor (h_lp = (u32)lp; (u32)lp < h_lp + ((u32)*(bp + 3)); lp++)
lp21drivers/scsi/eata_dma_proc.c*lp = ntohl(*lp);
lp22drivers/scsi/eata_dma_proc.c}while ((u32)lp < ((u32)p) + 4 + h_sp);
lp72fs/xiafs/bitmap.cregister long * lp;
lp74fs/xiafs/bitmap.clp=(long *)bh->b_data;
lp76fs/xiafs/bitmap.c*lp++=0;
lp249fs/xiafs/inode.cdt_getblk(struct inode * inode, u_long *lp, int create, u_long prev_addr)
lp255fs/xiafs/inode.cif ((tmp=*lp)) {
lp257fs/xiafs/inode.cif (tmp == *lp)
lp268fs/xiafs/inode.cif (*lp) {
lp273fs/xiafs/inode.c*lp = tmp;
lp283fs/xiafs/inode.cu_long *lp;
lp296fs/xiafs/inode.clp = nr + (u_long *) bh->b_data;
lp298fs/xiafs/inode.cif ((tmp=*lp)) {
lp300fs/xiafs/inode.cif (tmp == *lp) {
lp317fs/xiafs/inode.cif (*lp) {
lp322fs/xiafs/inode.c*lp = tmp;
lp44fs/xiafs/truncate.cu_long * lp;
lp53fs/xiafs/truncate.clp=i + inode->u.xiafs_i.i_zone;
lp54fs/xiafs/truncate.cif (!(tmp = *lp))
lp61fs/xiafs/truncate.cif ((bh && bh->b_count != 1) || tmp != *lp)
lp64fs/xiafs/truncate.c*lp = 0;
lp74fs/xiafs/truncate.cstatic int trunc_indirect(struct inode * inode, int addr_off, u_long * lp)
lp84fs/xiafs/truncate.cif ( !(tmp=*lp) )
lp87fs/xiafs/truncate.cif (tmp != *lp) {
lp92fs/xiafs/truncate.c*lp = 0;
lp123fs/xiafs/truncate.ctmp = *lp;
lp124fs/xiafs/truncate.c*lp = 0;
lp141fs/xiafs/truncate.cu_long * dindp, * lp;
lp144fs/xiafs/truncate.clp = &(inode->u.xiafs_i.i_dind_zone);
lp145fs/xiafs/truncate.cif (!(tmp = *lp))
lp148fs/xiafs/truncate.cif (tmp != *lp) {
lp153fs/xiafs/truncate.c*lp = 0;
lp172fs/xiafs/truncate.ctmp = *lp;
lp173fs/xiafs/truncate.c*lp = 0;
lp167net/ipv4/protocol.cstruct inet_protocol *lp = NULL;
lp188net/ipv4/protocol.cif (p->copy == 0 && lp != NULL) lp->copy = 0;
lp194net/ipv4/protocol.clp = p;