Lines Matching defs:net_device
63 static void netvsc_change_rx_flags(struct net_device *net, int change)
66 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev);
83 static void netvsc_set_rx_mode(struct net_device *net)
86 struct net_device *vf_netdev;
103 struct net_device *ndev)
111 static int netvsc_open(struct net_device *net)
114 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev);
187 struct net_device *ndev)
197 static int netvsc_close(struct net_device *net)
200 struct net_device *vf_netdev
297 static inline int netvsc_get_tx_queue(struct net_device *ndev,
326 static u16 netvsc_pick_tx(struct net_device *ndev, struct sk_buff *skb)
343 static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb,
344 struct net_device *sb_dev)
347 struct net_device *vf_netdev;
497 static int netvsc_vf_xmit(struct net_device *net, struct net_device *vf_netdev,
523 static int netvsc_xmit(struct sk_buff *skb, struct net_device *net, bool xdp_tx)
530 struct net_device *vf_netdev;
735 struct net_device *ndev)
743 void netvsc_linkstatus_callback(struct net_device *net,
789 static void netvsc_xdp_xmit(struct sk_buff *skb, struct net_device *ndev)
813 static struct sk_buff *netvsc_alloc_recv_skb(struct net_device *net,
895 int netvsc_recv_callback(struct net_device *net,
896 struct netvsc_device *net_device,
954 static void netvsc_get_drvinfo(struct net_device *net,
961 static void netvsc_get_channels(struct net_device *net,
1026 static int netvsc_detach(struct net_device *ndev,
1065 static int netvsc_attach(struct net_device *ndev,
1127 static int netvsc_set_channels(struct net_device *net,
1175 static void netvsc_init_settings(struct net_device *dev)
1187 static int netvsc_get_link_ksettings(struct net_device *dev,
1191 struct net_device *vf_netdev;
1205 static int netvsc_set_link_ksettings(struct net_device *dev,
1209 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1223 static int netvsc_change_mtu(struct net_device *ndev, int mtu)
1226 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev);
1271 static void netvsc_get_vf_stats(struct net_device *net,
1301 static void netvsc_get_pcpu_stats(struct net_device *net,
1359 static void netvsc_get_stats64(struct net_device *net,
1414 static int netvsc_set_mac_addr(struct net_device *ndev, void *p)
1417 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1496 static int netvsc_get_sset_count(struct net_device *dev, int string_set)
1515 static void netvsc_get_ethtool_stats(struct net_device *dev,
1579 static void netvsc_get_strings(struct net_device *dev, u32 stringset, u8 *data)
1670 netvsc_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
1748 netvsc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *info)
1758 static u32 netvsc_get_rxfh_key_size(struct net_device *dev)
1763 static u32 netvsc_rss_indir_size(struct net_device *dev)
1768 static int netvsc_get_rxfh(struct net_device *dev, u32 *indir, u8 *key,
1794 static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,
1849 static void netvsc_get_ringparam(struct net_device *ndev,
1861 static int netvsc_set_ringparam(struct net_device *ndev,
1912 static netdev_features_t netvsc_fix_features(struct net_device *ndev,
1929 static int netvsc_set_features(struct net_device *ndev,
1935 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev);
1972 static int netvsc_get_regs_len(struct net_device *netdev)
1977 static void netvsc_get_regs(struct net_device *netdev,
1989 static u32 netvsc_get_msglevel(struct net_device *ndev)
1996 static void netvsc_set_msglevel(struct net_device *ndev, u32 val)
2054 struct net_device *net = hv_get_drvdata(device_obj);
2055 struct netvsc_device *net_device;
2067 net_device = rtnl_dereference(ndev_ctx->nvdev);
2068 if (!net_device)
2071 rdev = net_device->extension;
2106 netvsc_tx_enable(net_device, net);
2116 netvsc_tx_disable(net_device, net);
2125 netvsc_tx_disable(net_device, net);
2152 static struct net_device *get_netvsc_byref(struct net_device *vf_netdev)
2155 struct net_device *dev;
2175 struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data);
2196 static int netvsc_vf_join(struct net_device *vf_netdev,
2197 struct net_device *ndev)
2233 static void __netvsc_vf_setup(struct net_device *ndev,
2234 struct net_device *vf_netdev)
2268 struct net_device *ndev = hv_get_drvdata(ndev_ctx->device_ctx);
2269 struct net_device *vf_netdev;
2286 static struct net_device *get_netvsc_byslot(const struct net_device *vf_netdev)
2290 struct net_device *ndev;
2336 static int netvsc_prepare_bonding(struct net_device *vf_netdev)
2338 struct net_device *ndev;
2349 static int netvsc_register_vf(struct net_device *vf_netdev)
2354 struct net_device *ndev;
2414 static int netvsc_vf_changed(struct net_device *vf_netdev)
2418 struct net_device *ndev;
2446 static int netvsc_unregister_vf(struct net_device *vf_netdev)
2448 struct net_device *ndev;
2474 struct net_device *net = NULL;
2604 struct net_device *vf_netdev, *net;
2651 struct net_device *net;
2682 struct net_device *net = hv_get_drvdata(dev);
2737 struct net_device *event_dev = netdev_notifier_info_to_dev(ptr);