Lines Matching defs:net_device
60 * batadv_hardif_get_by_netdev() - Get hard interface object of a net_device
61 * @net_dev: net_device to search for
66 batadv_hardif_get_by_netdev(const struct net_device *net_dev)
86 * @netdev: net_device to check
91 static struct net *batadv_getlink_net(const struct net_device *netdev,
114 static bool batadv_mutual_parents(const struct net_device *dev1,
116 const struct net_device *dev2,
149 static bool batadv_is_on_batman_iface(const struct net_device *net_dev)
152 struct net_device *parent_dev;
187 static bool batadv_is_valid_iface(const struct net_device *net_dev)
216 static struct net_device *batadv_get_real_netdevice(struct net_device *netdev)
219 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)
314 if (net_device->ieee80211_ptr)
321 * batadv_wifi_flags_evaluate() - calculate wifi flags for net_device
322 * @net_device: the device to check
326 static u32 batadv_wifi_flags_evaluate(struct net_device *net_device)
329 struct net_device *real_netdev;
331 if (batadv_is_wext_netdev(net_device))
334 if (batadv_is_cfg80211_netdev(net_device))
337 real_netdev = batadv_get_real_netdevice(net_device);
341 if (real_netdev == net_device)
440 batadv_hardif_get_active(const struct net_device *soft_iface)
510 static void batadv_check_known_mac_addr(const struct net_device *net_dev)
538 static void batadv_hardif_recalc_extra_skbroom(struct net_device *soft_iface)
582 int batadv_hardif_min_mtu(struct net_device *soft_iface)
633 void batadv_update_min_mtu(struct net_device *soft_iface)
715 struct net_device *master)
741 struct net_device *soft_iface, *master;
852 static size_t batadv_hardif_cnt(const struct net_device *soft_iface)
930 batadv_hardif_add_interface(struct net_device *net_dev)
1008 * @net_dev: net_device which generated an event
1013 struct net_device *net_dev)
1034 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr);