Lines Matching refs:net_device_ctx

198 	struct net_device_context *net_device_ctx = netdev_priv(net);  in netvsc_close()  local
200 = rtnl_dereference(net_device_ctx->vf_netdev); in netvsc_close()
201 struct netvsc_device *nvdev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_close()
524 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_start_xmit() local
537 vf_netdev = rcu_dereference_bh(net_device_ctx->vf_netdev); in netvsc_start_xmit()
551 ++net_device_ctx->eth_stats.tx_scattered; in netvsc_start_xmit()
558 ++net_device_ctx->eth_stats.tx_too_big; in netvsc_start_xmit()
648 if (net_checksum_info(skb) & net_device_ctx->tx_checksum_mask) { in netvsc_start_xmit()
694 ++net_device_ctx->eth_stats.tx_busy; in netvsc_start_xmit()
699 ++net_device_ctx->eth_stats.tx_no_space; in netvsc_start_xmit()
708 ++net_device_ctx->eth_stats.tx_no_memory; in netvsc_start_xmit()
825 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_recv_callback() local
838 ++net_device_ctx->eth_stats.rx_no_memory; in netvsc_recv_callback()
874 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_get_channels() local
875 struct netvsc_device *nvdev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_get_channels()
1005 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_set_channels() local
1006 struct netvsc_device *nvdev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_set_channels()
1993 struct net_device_context *net_device_ctx; in get_netvsc_byref() local
2000 net_device_ctx = netdev_priv(dev); in get_netvsc_byref()
2001 if (!rtnl_dereference(net_device_ctx->nvdev)) in get_netvsc_byref()
2165 struct net_device_context *net_device_ctx; in netvsc_register_vf() local
2177 net_device_ctx = netdev_priv(ndev); in netvsc_register_vf()
2178 netvsc_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_register_vf()
2179 if (!netvsc_dev || rtnl_dereference(net_device_ctx->vf_netdev)) in netvsc_register_vf()
2206 rcu_assign_pointer(net_device_ctx->vf_netdev, vf_netdev); in netvsc_register_vf()
2217 struct net_device_context *net_device_ctx; in netvsc_vf_changed() local
2226 net_device_ctx = netdev_priv(ndev); in netvsc_vf_changed()
2227 netvsc_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_vf_changed()
2241 struct net_device_context *net_device_ctx; in netvsc_unregister_vf() local
2247 net_device_ctx = netdev_priv(ndev); in netvsc_unregister_vf()
2248 cancel_delayed_work_sync(&net_device_ctx->vf_takeover); in netvsc_unregister_vf()
2254 RCU_INIT_POINTER(net_device_ctx->vf_netdev, NULL); in netvsc_unregister_vf()
2264 struct net_device_context *net_device_ctx; in netvsc_probe() local
2278 net_device_ctx = netdev_priv(net); in netvsc_probe()
2279 net_device_ctx->device_ctx = dev; in netvsc_probe()
2280 net_device_ctx->msg_enable = netif_msg_init(debug, default_msg); in netvsc_probe()
2281 if (netif_msg_probe(net_device_ctx)) in netvsc_probe()
2283 net_device_ctx->msg_enable); in netvsc_probe()
2287 INIT_DELAYED_WORK(&net_device_ctx->dwork, netvsc_link_change); in netvsc_probe()
2289 spin_lock_init(&net_device_ctx->lock); in netvsc_probe()
2290 INIT_LIST_HEAD(&net_device_ctx->reconfig_events); in netvsc_probe()
2291 INIT_DELAYED_WORK(&net_device_ctx->vf_takeover, netvsc_vf_setup); in netvsc_probe()
2293 net_device_ctx->vf_stats in netvsc_probe()
2295 if (!net_device_ctx->vf_stats) in netvsc_probe()
2360 list_add(&net_device_ctx->list, &netvsc_dev_list); in netvsc_probe()
2372 free_percpu(net_device_ctx->vf_stats); in netvsc_probe()