lance_init_ring(struct net_device *dev, int gfp) 
lance_init_ring(struct net_device *dev, gfp_t gfp) 
lance_init_ring(struct net_device *dev, int gfp){	struct lance_private *lp = dev->priv;	int i;	lp->cur_rx = lp->cur_tx = 0;	lp->dirty_rx = lp->dirty_tx = 0;	for (i = 0; i < RX_RING_SIZE; i++) {		struct sk_buff *skb;		void *rx_buff;		skb = alloc_skb(PKT_BUF_SZ, GFP_DMA | gfp);		lp->rx_skbuff[i] = skb;		if (skb) {			skb->dev = dev;			rx_buff = skb->data;		} else			rx_buff = kmalloc(PKT_BUF_SZ, GFP_DMA | gfp);		if (rx_buff == NULL)			lp->rx_ring[i].base = 0;		else			lp->rx_ring[i].base = (u32)isa_virt_to_bus(rx_buff) | 0x80000000;		lp->rx_ring[i].buf_length = -PKT_BUF_SZ;	}	/* The Tx buffer address is filled in as needed, but we do need to clear	   the upper ownership bit. */	for (i = 0; i < TX_RING_SIZE; i++) {		lp->tx_skbuff[i] = NULL;		lp->tx_ring[i].base = 0;	}	lp->init_block.mode = 0x0000;	for (i = 0; i < 6; i++)		lp->init_block.phys_addr[i] = dev->dev_addr[i];	lp->init_block.filter[0] = 0x00000000;	lp->init_block.filter[1] = 0x00000000;	lp->init_block.rx_ring = ((u32)isa_virt_to_bus(lp->rx_ring) & 0xffffff) | RX_RING_LEN_BITS;	lp->init_block.tx_ring = ((u32)isa_virt_to_bus(lp->tx_ring) & 0xffffff) | TX_RING_LEN_BITS;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/9e24974db6b01ec067c24de09588282b6a1407f0/lance.c/buggy/drivers/net/lance.c