struct e1000_adapter *adapter = netdev->priv; 
struct e1000_adapter *adapter = netdev_priv(netdev); 
e1000_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp){	struct e1000_adapter *adapter = netdev->priv;	uint32_t ctrl, rctl;	e1000_irq_disable(adapter);	adapter->vlgrp = grp;	if(grp) {		/* enable VLAN tag insert/strip */		ctrl = E1000_READ_REG(&adapter->hw, CTRL);		ctrl |= E1000_CTRL_VME;		E1000_WRITE_REG(&adapter->hw, CTRL, ctrl);		/* enable VLAN receive filtering */		rctl = E1000_READ_REG(&adapter->hw, RCTL);		rctl |= E1000_RCTL_VFE;		rctl &= ~E1000_RCTL_CFIEN;		E1000_WRITE_REG(&adapter->hw, RCTL, rctl);		e1000_update_mng_vlan(adapter);	} else {		/* disable VLAN tag insert/strip */		ctrl = E1000_READ_REG(&adapter->hw, CTRL);		ctrl &= ~E1000_CTRL_VME;		E1000_WRITE_REG(&adapter->hw, CTRL, ctrl);		/* disable VLAN filtering */		rctl = E1000_READ_REG(&adapter->hw, RCTL);		rctl &= ~E1000_RCTL_VFE;		E1000_WRITE_REG(&adapter->hw, RCTL, rctl);		if(adapter->mng_vlan_id != (uint16_t)E1000_MNG_VLAN_NONE) {			e1000_vlan_rx_kill_vid(netdev, adapter->mng_vlan_id);			adapter->mng_vlan_id = E1000_MNG_VLAN_NONE;		}	}	e1000_irq_enable(adapter);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60490fe030f3969a8706d94c7cf8469be6330678/e1000_main.c/clean/drivers/net/e1000/e1000_main.c