Lines Matching refs:mac_data
1820 struct virtio_net_ctrl_mac *mac_data; in virtnet_set_rx_mode() local
1852 (2 * sizeof(mac_data->entries)), GFP_ATOMIC); in virtnet_set_rx_mode()
1853 mac_data = buf; in virtnet_set_rx_mode()
1860 mac_data->entries = cpu_to_virtio32(vi->vdev, uc_count); in virtnet_set_rx_mode()
1863 memcpy(&mac_data->macs[i++][0], ha->addr, ETH_ALEN); in virtnet_set_rx_mode()
1865 sg_set_buf(&sg[0], mac_data, in virtnet_set_rx_mode()
1866 sizeof(mac_data->entries) + (uc_count * ETH_ALEN)); in virtnet_set_rx_mode()
1869 mac_data = (void *)&mac_data->macs[uc_count][0]; in virtnet_set_rx_mode()
1871 mac_data->entries = cpu_to_virtio32(vi->vdev, mc_count); in virtnet_set_rx_mode()
1874 memcpy(&mac_data->macs[i++][0], ha->addr, ETH_ALEN); in virtnet_set_rx_mode()
1876 sg_set_buf(&sg[1], mac_data, in virtnet_set_rx_mode()
1877 sizeof(mac_data->entries) + (mc_count * ETH_ALEN)); in virtnet_set_rx_mode()