Lines Matching refs:primary_if
464 struct batadv_hard_iface *primary_if; in batadv_primary_if_update_addr() local
466 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_primary_if_update_addr()
467 if (!primary_if) in batadv_primary_if_update_addr()
470 batadv_dat_init_own_addr(bat_priv, primary_if); in batadv_primary_if_update_addr()
471 batadv_bla_update_orig_address(bat_priv, primary_if, oldif); in batadv_primary_if_update_addr()
473 batadv_hardif_put(primary_if); in batadv_primary_if_update_addr()
486 curr_hard_iface = rcu_replace_pointer(bat_priv->primary_if, in batadv_primary_if_select()
645 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_activate_interface() local
658 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_activate_interface()
659 if (!primary_if) in batadv_hardif_activate_interface()
671 batadv_hardif_put(primary_if); in batadv_hardif_activate_interface()
808 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_disable_interface() local
820 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_disable_interface()
821 if (hard_iface == primary_if) { in batadv_hardif_disable_interface()
849 batadv_hardif_put(primary_if); in batadv_hardif_disable_interface()
943 struct batadv_hard_iface *primary_if = NULL; in batadv_hard_if_event() local
985 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hard_if_event()
986 if (!primary_if) in batadv_hard_if_event()
989 if (hard_iface == primary_if) in batadv_hard_if_event()
1004 batadv_hardif_put(primary_if); in batadv_hard_if_event()