Lines Matching defs:net_device
61 * batadv_hardif_get_by_netdev() - Get hard interface object of a net_device
62 * @net_dev: net_device to search for
67 batadv_hardif_get_by_netdev(const struct net_device *net_dev)
87 * @netdev: net_device to check
92 static struct net *batadv_getlink_net(const struct net_device *netdev,
115 static bool batadv_mutual_parents(const struct net_device *dev1,
117 const struct net_device *dev2,
150 static bool batadv_is_on_batman_iface(const struct net_device *net_dev)
153 struct net_device *parent_dev;
188 static bool batadv_is_valid_iface(const struct net_device *net_dev)
217 static struct net_device *batadv_get_real_netdevice(struct net_device *netdev)
220 struct net_device *real_netdev = NULL;
258 * batadv_get_real_netdev() - check if the given net_device struct is a virtual
260 * @net_device: the device to check
265 struct net_device *batadv_get_real_netdev(struct net_device *net_device)
267 struct net_device *real_netdev;
270 real_netdev = batadv_get_real_netdevice(net_device);
277 * batadv_is_wext_netdev() - check if the given net_device struct is a
279 * @net_device: the device to check
284 static bool batadv_is_wext_netdev(struct net_device *net_device)
286 if (!net_device)
293 if (net_device->wireless_handlers)
301 * batadv_is_cfg80211_netdev() - check if the given net_device struct is a
303 * @net_device: the device to check
308 static bool batadv_is_cfg80211_netdev(struct net_device *net_device)
310 if (!net_device)
315 if (net_device->ieee80211_ptr)
323 * batadv_wifi_flags_evaluate() - calculate wifi flags for net_device
324 * @net_device: the device to check
328 static u32 batadv_wifi_flags_evaluate(struct net_device *net_device)
331 struct net_device *real_netdev;
333 if (batadv_is_wext_netdev(net_device))
336 if (batadv_is_cfg80211_netdev(net_device))
339 real_netdev = batadv_get_real_netdevice(net_device);
343 if (real_netdev == net_device)
442 batadv_hardif_get_active(struct net_device *mesh_iface)
510 struct net_device *mesh_iface = hard_iface->mesh_iface;
538 static void batadv_hardif_recalc_extra_skbroom(struct net_device *mesh_iface)
580 int batadv_hardif_min_mtu(struct net_device *mesh_iface)
627 void batadv_update_min_mtu(struct net_device *mesh_iface)
705 struct net_device *mesh_iface)
799 static size_t batadv_hardif_cnt(struct net_device *mesh_iface)
865 batadv_hardif_add_interface(struct net_device *net_dev)
925 * @net_dev: net_device which generated an event
930 struct net_device *net_dev)
947 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr);