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,
1784 static int netvsc_set_rxfh(struct net_device *dev,
1842 static void netvsc_get_ringparam(struct net_device *ndev,
1856 static int netvsc_set_ringparam(struct net_device *ndev,
1909 static netdev_features_t netvsc_fix_features(struct net_device *ndev,
1926 static int netvsc_set_features(struct net_device *ndev,
1932 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev);
1969 static int netvsc_get_regs_len(struct net_device *netdev)
1974 static void netvsc_get_regs(struct net_device *netdev,
1986 static u32 netvsc_get_msglevel(struct net_device *ndev)
1993 static void netvsc_set_msglevel(struct net_device *ndev, u32 val)
2052 struct net_device *net = hv_get_drvdata(device_obj);
2055 struct netvsc_device *net_device;
2065 net_device = rtnl_dereference(ndev_ctx->nvdev);
2066 if (!net_device)
2069 rdev = net_device->extension;
2104 netvsc_tx_enable(net_device, net);
2114 netvsc_tx_disable(net_device, net);
2123 netvsc_tx_disable(net_device, net);
2147 static struct net_device *get_netvsc_byref(struct net_device *vf_netdev)
2150 struct net_device *dev;
2170 struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data);
2191 static int netvsc_vf_join(struct net_device *vf_netdev,
2192 struct net_device *ndev, int context)
2232 static void __netvsc_vf_setup(struct net_device *ndev,
2233 struct net_device *vf_netdev)
2267 struct net_device *ndev = hv_get_drvdata(ndev_ctx->device_ctx);
2268 struct net_device *vf_netdev;
2285 static struct net_device *get_netvsc_byslot(const struct net_device *vf_netdev)
2289 struct net_device *ndev;
2344 static int netvsc_prepare_bonding(struct net_device *vf_netdev)
2346 struct net_device *ndev;
2357 static int netvsc_register_vf(struct net_device *vf_netdev, int context)
2362 struct net_device *ndev;
2425 static int netvsc_vf_changed(struct net_device *vf_netdev, unsigned long event)
2429 struct net_device *ndev;
2468 static int netvsc_unregister_vf(struct net_device *vf_netdev)
2470 struct net_device *ndev;
2495 static int check_dev_is_matching_vf(struct net_device *event_ndev)
2519 struct net_device *net = NULL, *vf_netdev;
2677 struct net_device *vf_netdev, *net;
2723 struct net_device *net;
2754 struct net_device *net = hv_get_drvdata(dev);
2809 struct net_device *event_dev = netdev_notifier_info_to_dev(ptr);