Lines Matching defs:net_device

65 static void netvsc_change_rx_flags(struct net_device *net, int change)
68 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev);
85 static void netvsc_set_rx_mode(struct net_device *net)
88 struct net_device *vf_netdev;
105 struct net_device *ndev)
113 static int netvsc_open(struct net_device *net)
116 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev);
189 struct net_device *ndev)
199 static int netvsc_close(struct net_device *net)
202 struct net_device *vf_netdev
249 static inline int netvsc_get_tx_queue(struct net_device *ndev,
278 static u16 netvsc_pick_tx(struct net_device *ndev, struct sk_buff *skb)
295 static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb,
296 struct net_device *sb_dev)
299 struct net_device *vf_netdev;
449 static int netvsc_vf_xmit(struct net_device *net, struct net_device *vf_netdev,
475 static int netvsc_xmit(struct sk_buff *skb, struct net_device *net, bool xdp_tx)
482 struct net_device *vf_netdev;
688 struct net_device *ndev)
696 void netvsc_linkstatus_callback(struct net_device *net,
761 void netvsc_xdp_xmit(struct sk_buff *skb, struct net_device *ndev)
785 static struct sk_buff *netvsc_alloc_recv_skb(struct net_device *net,
874 int netvsc_recv_callback(struct net_device *net,
875 struct netvsc_device *net_device,
939 static void netvsc_get_drvinfo(struct net_device *net,
946 static void netvsc_get_channels(struct net_device *net,
1011 static int netvsc_detach(struct net_device *ndev,
1050 static int netvsc_attach(struct net_device *ndev,
1112 static int netvsc_set_channels(struct net_device *net,
1160 static void netvsc_init_settings(struct net_device *dev)
1172 static int netvsc_get_link_ksettings(struct net_device *dev,
1176 struct net_device *vf_netdev;
1190 static int netvsc_set_link_ksettings(struct net_device *dev,
1194 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1208 static int netvsc_change_mtu(struct net_device *ndev, int mtu)
1211 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev);
1256 static void netvsc_get_vf_stats(struct net_device *net,
1286 static void netvsc_get_pcpu_stats(struct net_device *net,
1345 static void netvsc_get_stats64(struct net_device *net,
1401 static int netvsc_set_mac_addr(struct net_device *ndev, void *p)
1404 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1483 static int netvsc_get_sset_count(struct net_device *dev, int string_set)
1502 static void netvsc_get_ethtool_stats(struct net_device *dev,
1576 static void netvsc_get_strings(struct net_device *dev, u32 stringset, u8 *data)
1659 netvsc_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
1737 netvsc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *info)
1747 static u32 netvsc_get_rxfh_key_size(struct net_device *dev)
1752 static u32 netvsc_rss_indir_size(struct net_device *dev)
1759 static int netvsc_get_rxfh(struct net_device *dev, u32 *indir, u8 *key,
1785 static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,
1840 static void netvsc_get_ringparam(struct net_device *ndev,
1854 static int netvsc_set_ringparam(struct net_device *ndev,
1907 static netdev_features_t netvsc_fix_features(struct net_device *ndev,
1924 static int netvsc_set_features(struct net_device *ndev,
1930 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev);
1967 static int netvsc_get_regs_len(struct net_device *netdev)
1972 static void netvsc_get_regs(struct net_device *netdev,
1984 static u32 netvsc_get_msglevel(struct net_device *ndev)
1991 static void netvsc_set_msglevel(struct net_device *ndev, u32 val)
2050 struct net_device *net = hv_get_drvdata(device_obj);
2053 struct netvsc_device *net_device;
2063 net_device = rtnl_dereference(ndev_ctx->nvdev);
2064 if (!net_device)
2067 rdev = net_device->extension;
2102 netvsc_tx_enable(net_device, net);
2112 netvsc_tx_disable(net_device, net);
2121 netvsc_tx_disable(net_device, net);
2145 static struct net_device *get_netvsc_byref(struct net_device *vf_netdev)
2148 struct net_device *dev;
2168 struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data);
2189 static int netvsc_vf_join(struct net_device *vf_netdev,
2190 struct net_device *ndev, int context)
2230 static void __netvsc_vf_setup(struct net_device *ndev,
2231 struct net_device *vf_netdev)
2265 struct net_device *ndev = hv_get_drvdata(ndev_ctx->device_ctx);
2266 struct net_device *vf_netdev;
2283 static struct net_device *get_netvsc_byslot(const struct net_device *vf_netdev)
2287 struct net_device *ndev;
2342 static int netvsc_prepare_bonding(struct net_device *vf_netdev)
2344 struct net_device *ndev;
2355 static int netvsc_register_vf(struct net_device *vf_netdev, int context)
2360 struct net_device *ndev;
2423 static int netvsc_vf_changed(struct net_device *vf_netdev, unsigned long event)
2427 struct net_device *ndev;
2466 static int netvsc_unregister_vf(struct net_device *vf_netdev)
2468 struct net_device *ndev;
2493 static int check_dev_is_matching_vf(struct net_device *event_ndev)
2517 struct net_device *net = NULL, *vf_netdev;
2675 struct net_device *vf_netdev, *net;
2721 struct net_device *net;
2752 struct net_device *net = hv_get_drvdata(dev);
2807 struct net_device *event_dev = netdev_notifier_info_to_dev(ptr);