printk(KERN_DEBUG " Tx scavenge %d status %8.8x.\n", 
printk(KERN_DEBUG "Tx scavenge %d status %8.8x.\n", 
static void rhine_tx(struct net_device *dev){	struct rhine_private *rp = netdev_priv(dev);	int txstatus = 0, entry = rp->dirty_tx % TX_RING_SIZE;	spin_lock(&rp->lock);	/* find and cleanup dirty tx descriptors */	while (rp->dirty_tx != rp->cur_tx) {		txstatus = le32_to_cpu(rp->tx_ring[entry].tx_status);		if (debug > 6)			printk(KERN_DEBUG " Tx scavenge %d status %8.8x.\n",			       entry, txstatus);		if (txstatus & DescOwn)			break;		if (txstatus & 0x8000) {			if (debug > 1)				printk(KERN_DEBUG "%s: Transmit error, "				       "Tx status %8.8x.\n",				       dev->name, txstatus);			rp->stats.tx_errors++;			if (txstatus & 0x0400) rp->stats.tx_carrier_errors++;			if (txstatus & 0x0200) rp->stats.tx_window_errors++;			if (txstatus & 0x0100) rp->stats.tx_aborted_errors++;			if (txstatus & 0x0080) rp->stats.tx_heartbeat_errors++;			if (((rp->quirks & rqRhineI) && txstatus & 0x0002) ||			    (txstatus & 0x0800) || (txstatus & 0x1000)) {				rp->stats.tx_fifo_errors++;				rp->tx_ring[entry].tx_status = cpu_to_le32(DescOwn);				break; /* Keep the skb - we try again */			}			/* Transmitter restarted in 'abnormal' handler. */		} else {			if (rp->quirks & rqRhineI)				rp->stats.collisions += (txstatus >> 3) & 0x0F;			else				rp->stats.collisions += txstatus & 0x0F;			if (debug > 6)				printk(KERN_DEBUG "collisions: %1.1x:%1.1x\n",				       (txstatus >> 3) & 0xF,				       txstatus & 0xF);			rp->stats.tx_bytes += rp->tx_skbuff[entry]->len;			rp->stats.tx_packets++;		}		/* Free the original skb. */		if (rp->tx_skbuff_dma[entry]) {			pci_unmap_single(rp->pdev,					 rp->tx_skbuff_dma[entry],					 rp->tx_skbuff[entry]->len,					 PCI_DMA_TODEVICE);		}		dev_kfree_skb_irq(rp->tx_skbuff[entry]);		rp->tx_skbuff[entry] = NULL;		entry = (++rp->dirty_tx) % TX_RING_SIZE;	}	if ((rp->cur_tx - rp->dirty_tx) < TX_QUEUE_LEN - 4)		netif_wake_queue(dev);	spin_unlock(&rp->lock);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed4030d114efff53e2605ea4d07d39835b68b605/via-rhine.c/clean/drivers/net/via-rhine.c