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()
1441 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_receive() local
1455 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1463 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1471 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1478 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1489 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1506 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1519 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1554 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_table() local
1592 net_device_ctx->tx_table[i] = tab[i]; in netvsc_send_table()
1599 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_vf() local
1608 net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; in netvsc_send_vf()
1609 net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; in netvsc_send_vf()
1611 if (net_device_ctx->vf_alloc) in netvsc_send_vf()
1612 complete(&net_device_ctx->vf_add); in netvsc_send_vf()
1615 net_device_ctx->vf_serial, in netvsc_send_vf()
1616 net_device_ctx->vf_alloc ? "added" : "removed"); in netvsc_send_vf()
1767 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_add() local
1774 net_device_ctx->tx_table[i] = 0; in netvsc_device_add()
1849 rcu_assign_pointer(net_device_ctx->nvdev, net_device); in netvsc_device_add()
1854 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_add()