Lines Matching refs:net_device_ctx

37 	struct net_device_context *net_device_ctx = netdev_priv(ndev);  in netvsc_switch_datapath()  local
38 struct hv_device *dev = net_device_ctx->device_ctx; in netvsc_switch_datapath()
39 struct netvsc_device *nv_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_switch_datapath()
45 net_device_ctx->data_path_is_vf = vf; in netvsc_switch_datapath()
88 net_device_ctx->data_path_is_vf = vf; in netvsc_switch_datapath()
692 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_remove() local
694 = rtnl_dereference(net_device_ctx->nvdev); in netvsc_device_remove()
709 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_remove()
1442 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_receive() local
1456 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1464 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1472 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1479 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1490 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1507 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1520 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1555 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_table() local
1593 net_device_ctx->tx_table[i] = tab[i]; in netvsc_send_table()
1600 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_vf() local
1609 net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; in netvsc_send_vf()
1610 net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; in netvsc_send_vf()
1612 if (net_device_ctx->vf_alloc) in netvsc_send_vf()
1613 complete(&net_device_ctx->vf_add); in netvsc_send_vf()
1616 net_device_ctx->vf_serial, in netvsc_send_vf()
1617 net_device_ctx->vf_alloc ? "added" : "removed"); in netvsc_send_vf()
1768 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_add() local
1775 net_device_ctx->tx_table[i] = 0; in netvsc_device_add()
1851 rcu_assign_pointer(net_device_ctx->nvdev, net_device); in netvsc_device_add()
1856 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_add()