Lines Matching refs:net_device_ctx
46 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_switch_datapath() local
47 struct hv_device *dev = net_device_ctx->device_ctx; in netvsc_switch_datapath()
48 struct netvsc_device *nv_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_switch_datapath()
624 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_remove() local
626 = rtnl_dereference(net_device_ctx->nvdev); in netvsc_device_remove()
641 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_remove()
1118 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_receive() local
1129 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1136 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1154 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1182 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_table() local
1196 net_device_ctx->tx_table[i] = tab[i]; in netvsc_send_table()
1202 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_vf() local
1204 net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; in netvsc_send_vf()
1205 net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; in netvsc_send_vf()
1207 net_device_ctx->vf_serial, in netvsc_send_vf()
1208 net_device_ctx->vf_alloc ? "added" : "removed"); in netvsc_send_vf()
1343 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_add() local
1350 net_device_ctx->tx_table[i] = 0; in netvsc_device_add()
1403 rcu_assign_pointer(net_device_ctx->nvdev, net_device); in netvsc_device_add()
1408 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_add()