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()
721 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_remove() local
723 = rtnl_dereference(net_device_ctx->nvdev); in netvsc_device_remove()
738 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_remove()
1414 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_receive() local
1428 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1436 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1444 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1451 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1462 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1479 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1492 netif_err(net_device_ctx, rx_err, ndev, in netvsc_receive()
1527 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_table() local
1565 net_device_ctx->tx_table[i] = tab[i]; in netvsc_send_table()
1572 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_send_vf() local
1581 net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; in netvsc_send_vf()
1582 net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; in netvsc_send_vf()
1584 if (net_device_ctx->vf_alloc) in netvsc_send_vf()
1585 complete(&net_device_ctx->vf_add); in netvsc_send_vf()
1588 net_device_ctx->vf_serial, in netvsc_send_vf()
1589 net_device_ctx->vf_alloc ? "added" : "removed"); in netvsc_send_vf()
1740 struct net_device_context *net_device_ctx = netdev_priv(ndev); in netvsc_device_add() local
1747 net_device_ctx->tx_table[i] = 0; in netvsc_device_add()
1819 rcu_assign_pointer(net_device_ctx->nvdev, net_device); in netvsc_device_add()
1824 RCU_INIT_POINTER(net_device_ctx->nvdev, NULL); in netvsc_device_add()