static inline int skge_rx_alloc(struct skge_port *skge, struct skge_element *e) 
static struct sk_buff *skge_rx_alloc(struct net_device *dev, unsigned int size) 
static inline int skge_rx_alloc(struct skge_port *skge,				struct skge_element *e){	unsigned long bufsize = skge->netdev->mtu + ETH_HLEN; /* VLAN? */	struct skge_rx_desc *rd = e->desc;	struct sk_buff *skb;	u64 map;	skb = dev_alloc_skb(bufsize + NET_IP_ALIGN);	if (unlikely(!skb)) {		printk(KERN_DEBUG PFX "%s: out of memory for receive\n",		       skge->netdev->name);		return -ENOMEM;	}	skb->dev = skge->netdev;	skb_reserve(skb, NET_IP_ALIGN);	map = pci_map_single(skge->hw->pdev, skb->data, bufsize,			     PCI_DMA_FROMDEVICE);	rd->dma_lo = map;	rd->dma_hi = map >> 32;	e->skb = skb;	rd->csum1_start = ETH_HLEN;	rd->csum2_start = ETH_HLEN;	rd->csum1 = 0;	rd->csum2 = 0;	wmb();	rd->control = BMU_OWN | BMU_STF | BMU_IRQ_EOF | BMU_TCP_CHECK | bufsize;	pci_unmap_addr_set(e, mapaddr, map);	pci_unmap_len_set(e, maplen, bufsize);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/19a33d4e6be2b627487676a69638e189e833675f/skge.c/clean/drivers/net/skge.c