struct ixgb_adapter *adapter = netdev->priv; 
struct ixgb_adapter *adapter = netdev_priv(netdev); 
ixgb_set_multi(struct net_device *netdev){	struct ixgb_adapter *adapter = netdev->priv;	struct ixgb_hw *hw = &adapter->hw;	struct dev_mc_list *mc_ptr;	uint32_t rctl;	int i;	/* Check for Promiscuous and All Multicast modes */	rctl = IXGB_READ_REG(hw, RCTL);	if(netdev->flags & IFF_PROMISC) {		rctl |= (IXGB_RCTL_UPE | IXGB_RCTL_MPE);	} else if(netdev->flags & IFF_ALLMULTI) {		rctl |= IXGB_RCTL_MPE;		rctl &= ~IXGB_RCTL_UPE;	} else {		rctl &= ~(IXGB_RCTL_UPE | IXGB_RCTL_MPE);	}	if(netdev->mc_count > IXGB_MAX_NUM_MULTICAST_ADDRESSES) {		rctl |= IXGB_RCTL_MPE;		IXGB_WRITE_REG(hw, RCTL, rctl);	} else {		uint8_t mta[netdev->mc_count * IXGB_ETH_LENGTH_OF_ADDRESS];		IXGB_WRITE_REG(hw, RCTL, rctl);		for(i = 0, mc_ptr = netdev->mc_list; mc_ptr;			i++, mc_ptr = mc_ptr->next)			memcpy(&mta[i * IXGB_ETH_LENGTH_OF_ADDRESS],				   mc_ptr->dmi_addr, IXGB_ETH_LENGTH_OF_ADDRESS);		ixgb_mc_addr_list_update(hw, mta, netdev->mc_count, 0);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8908c6cd1d6889850148aeb50bb14301959adaa7/ixgb_main.c/buggy/drivers/net/ixgb/ixgb_main.c