Lines Matching defs:bat_priv

46 	struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface);
49 primary_if = batadv_primary_if_get_selected(bat_priv);
100 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface);
103 primary_if = batadv_primary_if_get_selected(bat_priv);
171 * @bat_priv: The bat priv with all the soft interface information
181 struct batadv_priv *bat_priv,
208 * @bat_priv: The bat priv with all the soft interface information
213 struct batadv_priv *bat_priv,
227 bat_priv, single_hardif,
233 if (hard_iface->soft_iface != bat_priv->soft_iface)
241 bat_priv, hard_iface,
259 * @bat_priv: The bat priv with all the soft interface information
269 struct batadv_priv *bat_priv,
327 * @bat_priv: The bat priv with all the soft interface information
338 struct batadv_priv *bat_priv,
357 if (batadv_v_orig_dump_subentry(msg, portid, seq, bat_priv,
379 * @bat_priv: The bat priv with all the soft interface information
389 struct batadv_priv *bat_priv,
401 if (batadv_v_orig_dump_entry(msg, portid, seq, bat_priv,
419 * @bat_priv: The bat priv with all the soft interface information
424 struct batadv_priv *bat_priv,
427 struct batadv_hashtable *hash = bat_priv->orig_hash;
439 bat_priv, if_outgoing, head, &idx,
507 * @bat_priv: the bat priv with all the soft interface information
509 static void batadv_v_init_sel_class(struct batadv_priv *bat_priv)
512 atomic_set(&bat_priv->gw.sel_class, 50);
558 * @bat_priv: the bat priv with all the soft interface information
563 batadv_v_gw_get_best_gw_node(struct batadv_priv *bat_priv)
569 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) {
595 * @bat_priv: the bat priv with all the soft interface information
601 static bool batadv_v_gw_is_eligible(struct batadv_priv *bat_priv,
609 threshold = atomic_read(&bat_priv->gw.sel_class);
611 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig);
622 orig_gw = batadv_gw_node_get(bat_priv, orig_node);
635 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
652 * @bat_priv: The bat priv with all the soft interface information
659 struct batadv_priv *bat_priv,
676 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
751 * @bat_priv: The bat priv with all the soft interface information
754 struct batadv_priv *bat_priv)
761 spin_lock_bh(&bat_priv->gw.list_lock);
762 cb->seq = bat_priv->gw.generation << 1 | 1;
764 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) {
768 if (batadv_v_gw_dump_entry(msg, portid, cb, bat_priv,
777 spin_unlock_bh(&bat_priv->gw.list_lock);
831 * @bat_priv: the object representing the mesh interface to initialise
835 int batadv_v_mesh_init(struct batadv_priv *bat_priv)
839 ret = batadv_v_ogm_init(bat_priv);
848 * @bat_priv: the object representing the mesh interface to free
850 void batadv_v_mesh_free(struct batadv_priv *bat_priv)
852 batadv_v_ogm_free(bat_priv);