Lines Matching refs:net_device_ctx
87 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_set_multicast_list() local
89 schedule_work(&net_device_ctx->work); in netvsc_set_multicast_list()
94 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_open() local
95 struct hv_device *device_obj = net_device_ctx->device_ctx; in netvsc_open()
121 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_close() local
122 struct hv_device *device_obj = net_device_ctx->device_ctx; in netvsc_close()
131 cancel_work_sync(&net_device_ctx->work); in netvsc_close()
260 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_select_queue() local
261 struct hv_device *hdev = net_device_ctx->device_ctx; in netvsc_select_queue()
419 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_start_xmit() local
437 struct netvsc_stats *tx_stats = this_cpu_ptr(net_device_ctx->tx_stats); in netvsc_start_xmit()
622 ret = netvsc_send(net_device_ctx->device_ctx, packet); in netvsc_start_xmit()
692 struct net_device_context *net_device_ctx; in netvsc_recv_callback() local
701 net_device_ctx = netdev_priv(net); in netvsc_recv_callback()
702 rx_stats = this_cpu_ptr(net_device_ctx->rx_stats); in netvsc_recv_callback()
763 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_get_channels() local
764 struct hv_device *dev = net_device_ctx->device_ctx; in netvsc_get_channels()
776 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_set_channels() local
777 struct hv_device *dev = net_device_ctx->device_ctx; in netvsc_set_channels()
819 net_device_ctx->device_ctx = dev; in netvsc_set_channels()
1059 struct net_device_context *net_device_ctx = netdev_priv(netdev); in netvsc_free_netdev() local
1061 free_percpu(net_device_ctx->tx_stats); in netvsc_free_netdev()
1062 free_percpu(net_device_ctx->rx_stats); in netvsc_free_netdev()
1070 struct net_device_context *net_device_ctx; in netvsc_probe() local
1086 net_device_ctx = netdev_priv(net); in netvsc_probe()
1087 net_device_ctx->device_ctx = dev; in netvsc_probe()
1088 net_device_ctx->msg_enable = netif_msg_init(debug, default_msg); in netvsc_probe()
1089 if (netif_msg_probe(net_device_ctx)) in netvsc_probe()
1091 net_device_ctx->msg_enable); in netvsc_probe()
1093 net_device_ctx->tx_stats = netdev_alloc_pcpu_stats(struct netvsc_stats); in netvsc_probe()
1094 if (!net_device_ctx->tx_stats) { in netvsc_probe()
1098 net_device_ctx->rx_stats = netdev_alloc_pcpu_stats(struct netvsc_stats); in netvsc_probe()
1099 if (!net_device_ctx->rx_stats) { in netvsc_probe()
1100 free_percpu(net_device_ctx->tx_stats); in netvsc_probe()
1106 INIT_DELAYED_WORK(&net_device_ctx->dwork, netvsc_link_change); in netvsc_probe()
1107 INIT_WORK(&net_device_ctx->work, do_set_multicast); in netvsc_probe()
1149 schedule_delayed_work(&net_device_ctx->dwork, 0); in netvsc_probe()