Lines Matching refs:bat_priv

57 batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data)  in batadv_orig_hash_find()  argument
59 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_orig_hash_find()
195 int batadv_originator_init(struct batadv_priv *bat_priv) in batadv_originator_init() argument
197 if (bat_priv->orig_hash) in batadv_originator_init()
200 bat_priv->orig_hash = batadv_hash_new(1024); in batadv_originator_init()
202 if (!bat_priv->orig_hash) in batadv_originator_init()
205 batadv_hash_set_lock_class(bat_priv->orig_hash, in batadv_originator_init()
208 INIT_DELAYED_WORK(&bat_priv->orig_work, batadv_purge_orig); in batadv_originator_init()
210 &bat_priv->orig_work, in batadv_originator_init()
518 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create() local
541 if (bat_priv->algo_ops->neigh.hardif_init) in batadv_hardif_neigh_create()
542 bat_priv->algo_ops->neigh.hardif_init(hardif_neigh); in batadv_hardif_neigh_create()
660 batadv_dbg(BATADV_DBG_BATMAN, orig_node->bat_priv, in batadv_neigh_node_create()
708 struct batadv_priv *bat_priv; in batadv_hardif_neigh_dump() local
723 bat_priv = netdev_priv(soft_iface); in batadv_hardif_neigh_dump()
725 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_neigh_dump()
749 if (!bat_priv->algo_ops->neigh.dump) { in batadv_hardif_neigh_dump()
754 bat_priv->algo_ops->neigh.dump(msg, cb, bat_priv, hardif); in batadv_hardif_neigh_dump()
852 batadv_nc_purge_orig(orig_node->bat_priv, orig_node, NULL); in batadv_orig_node_release()
861 void batadv_originator_free(struct batadv_priv *bat_priv) in batadv_originator_free() argument
863 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_originator_free()
873 cancel_delayed_work_sync(&bat_priv->orig_work); in batadv_originator_free()
875 bat_priv->orig_hash = NULL; in batadv_originator_free()
903 struct batadv_orig_node *batadv_orig_node_new(struct batadv_priv *bat_priv, in batadv_orig_node_new() argument
911 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_orig_node_new()
932 orig_node->bat_priv = bat_priv; in batadv_orig_node_new()
979 batadv_purge_neigh_ifinfo(struct batadv_priv *bat_priv, in batadv_purge_neigh_ifinfo() argument
1003 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_neigh_ifinfo()
1022 batadv_purge_orig_ifinfo(struct batadv_priv *bat_priv, in batadv_purge_orig_ifinfo() argument
1047 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_orig_ifinfo()
1074 batadv_purge_orig_neighbors(struct batadv_priv *bat_priv, in batadv_purge_orig_neighbors() argument
1098 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_orig_neighbors()
1103 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_orig_neighbors()
1116 batadv_purge_neigh_ifinfo(bat_priv, neigh_node); in batadv_purge_orig_neighbors()
1133 batadv_find_best_neighbor(struct batadv_priv *bat_priv, in batadv_find_best_neighbor() argument
1138 struct batadv_algo_ops *bao = bat_priv->algo_ops; in batadv_find_best_neighbor()
1168 static bool batadv_purge_orig_node(struct batadv_priv *bat_priv, in batadv_purge_orig_node() argument
1177 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_orig_node()
1183 changed_ifinfo = batadv_purge_orig_ifinfo(bat_priv, orig_node); in batadv_purge_orig_node()
1184 changed_neigh = batadv_purge_orig_neighbors(bat_priv, orig_node); in batadv_purge_orig_node()
1190 best_neigh_node = batadv_find_best_neighbor(bat_priv, orig_node, in batadv_purge_orig_node()
1192 batadv_update_route(bat_priv, orig_node, BATADV_IF_DEFAULT, in batadv_purge_orig_node()
1202 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_purge_orig_node()
1208 best_neigh_node = batadv_find_best_neighbor(bat_priv, in batadv_purge_orig_node()
1211 batadv_update_route(bat_priv, orig_node, hard_iface, in batadv_purge_orig_node()
1226 void batadv_purge_orig_ref(struct batadv_priv *bat_priv) in batadv_purge_orig_ref() argument
1228 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_purge_orig_ref()
1246 if (batadv_purge_orig_node(bat_priv, orig_node)) { in batadv_purge_orig_ref()
1247 batadv_gw_node_delete(bat_priv, orig_node); in batadv_purge_orig_ref()
1249 batadv_tt_global_del_orig(orig_node->bat_priv, in batadv_purge_orig_ref()
1262 batadv_gw_election(bat_priv); in batadv_purge_orig_ref()
1268 struct batadv_priv *bat_priv; in batadv_purge_orig() local
1271 bat_priv = container_of(delayed_work, struct batadv_priv, orig_work); in batadv_purge_orig()
1272 batadv_purge_orig_ref(bat_priv); in batadv_purge_orig()
1274 &bat_priv->orig_work, in batadv_purge_orig()
1292 struct batadv_priv *bat_priv; in batadv_orig_dump() local
1307 bat_priv = netdev_priv(soft_iface); in batadv_orig_dump()
1309 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_orig_dump()
1333 if (!bat_priv->algo_ops->orig.dump) { in batadv_orig_dump()
1338 bat_priv->algo_ops->orig.dump(msg, cb, bat_priv, hardif); in batadv_orig_dump()