Lines Matching refs:net_device_ctx
35 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_switch_datapath() local
36 struct hv_device *dev = net_device_ctx->device_ctx; in netvsc_switch_datapath()
37 struct netvsc_device *nv_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_switch_datapath()
617 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_remove() local
619 = rtnl_dereference(net_device_ctx->nvdev); in netvsc_device_remove()
634 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_remove()
1115 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_receive() local
1127 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1134 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1153 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1185 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_table() local
1216 net_device_ctx->tx_table[i] = tab[i]; in netvsc_send_table()
1222 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_vf() local
1224 net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; in netvsc_send_vf()
1225 net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; in netvsc_send_vf()
1227 net_device_ctx->vf_serial, in netvsc_send_vf()
1228 net_device_ctx->vf_alloc ? "added" : "removed"); in netvsc_send_vf()
1367 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_add() local
1374 net_device_ctx->tx_table[i] = 0; in netvsc_device_add()
1427 rcu_assign_pointer(net_device_ctx->nvdev, net_device); in netvsc_device_add()
1432 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_add()