Lines Matching refs:hard_iface

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