Lines Matching refs:hard_iface

471  * @hard_iface: the interface where this neighbour is connected to
481 const struct batadv_hard_iface *hard_iface,
491 if (tmp_neigh_node->if_incoming != hard_iface)
507 * @hard_iface: the interface this neighbour is connected to
514 batadv_hardif_neigh_create(struct batadv_hard_iface *hard_iface,
518 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface);
521 spin_lock_bh(&hard_iface->neigh_list_lock);
524 hardif_neigh = batadv_hardif_neigh_get(hard_iface, neigh_addr);
532 kref_get(&hard_iface->refcount);
536 hardif_neigh->if_incoming = hard_iface;
544 hlist_add_head_rcu(&hardif_neigh->list, &hard_iface->neigh_list);
547 spin_unlock_bh(&hard_iface->neigh_list_lock);
554 * @hard_iface: the interface this neighbour is connected to
561 batadv_hardif_neigh_get_or_create(struct batadv_hard_iface *hard_iface,
568 hardif_neigh = batadv_hardif_neigh_get(hard_iface, neigh_addr);
572 return batadv_hardif_neigh_create(hard_iface, neigh_addr, orig_node);
577 * @hard_iface: the interface where this neighbour is connected to
585 batadv_hardif_neigh_get(const struct batadv_hard_iface *hard_iface,
592 &hard_iface->neigh_list, list) {
610 * @hard_iface: the interface where the neighbour is connected to
619 struct batadv_hard_iface *hard_iface,
627 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr);
631 hardif_neigh = batadv_hardif_neigh_get_or_create(hard_iface,
644 kref_get(&hard_iface->refcount);
646 neigh_node->if_incoming = hard_iface;
662 neigh_addr, orig_node->orig, hard_iface->net_dev->name);
674 * @hard_iface: the interface where the neighbour is connected to
681 struct batadv_hard_iface *hard_iface,
687 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr);
691 return batadv_neigh_node_create(orig_node, hard_iface, neigh_addr);
706 struct net_device *hard_iface = NULL;
734 hard_iface = dev_get_by_index(net, hard_ifindex);
735 if (hard_iface)
736 hardif = batadv_hardif_get_by_netdev(hard_iface);
760 dev_put(hard_iface);
1172 struct batadv_hard_iface *hard_iface;
1198 list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) {
1199 if (hard_iface->if_status != BATADV_IF_ACTIVE)
1202 if (hard_iface->soft_iface != bat_priv->soft_iface)
1205 if (!kref_get_unless_zero(&hard_iface->refcount))
1210 hard_iface);
1211 batadv_update_route(bat_priv, orig_node, hard_iface,
1215 batadv_hardif_put(hard_iface);
1290 struct net_device *hard_iface = NULL;
1318 hard_iface = dev_get_by_index(net, hard_ifindex);
1319 if (hard_iface)
1320 hardif = batadv_hardif_get_by_netdev(hard_iface);
1344 dev_put(hard_iface);