Lines Matching refs:orig

1384 		       struct batadv_orig_node **orig, int *is_routable)  in batadv_mcast_forw_mode()  argument
1413 *orig = batadv_mcast_forw_tt_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
1415 *orig = batadv_mcast_forw_ip_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
1417 *orig = batadv_mcast_forw_unsnoop_node_get(bat_priv); in batadv_mcast_forw_mode()
1419 *orig = batadv_mcast_forw_rtr_node_get(bat_priv, in batadv_mcast_forw_mode()
1422 if (*orig) in batadv_mcast_forw_mode()
1458 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) { in batadv_mcast_forw_send_orig()
1782 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument
1785 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update()
1788 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_unsnoop_update()
1792 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update()
1803 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update()
1827 struct batadv_orig_node *orig, in batadv_mcast_want_ipv4_update() argument
1830 struct hlist_node *node = &orig->mcast_want_all_ipv4_node; in batadv_mcast_want_ipv4_update()
1833 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv4_update()
1837 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) { in batadv_mcast_want_ipv4_update()
1848 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4) { in batadv_mcast_want_ipv4_update()
1872 struct batadv_orig_node *orig, in batadv_mcast_want_ipv6_update() argument
1875 struct hlist_node *node = &orig->mcast_want_all_ipv6_node; in batadv_mcast_want_ipv6_update()
1878 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv6_update()
1882 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6)) { in batadv_mcast_want_ipv6_update()
1893 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6) { in batadv_mcast_want_ipv6_update()
1917 struct batadv_orig_node *orig, in batadv_mcast_want_rtr4_update() argument
1920 struct hlist_node *node = &orig->mcast_want_all_rtr4_node; in batadv_mcast_want_rtr4_update()
1923 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_rtr4_update()
1927 orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR4) { in batadv_mcast_want_rtr4_update()
1938 !(orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR4)) { in batadv_mcast_want_rtr4_update()
1962 struct batadv_orig_node *orig, in batadv_mcast_want_rtr6_update() argument
1965 struct hlist_node *node = &orig->mcast_want_all_rtr6_node; in batadv_mcast_want_rtr6_update()
1968 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_rtr6_update()
1972 orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR6) { in batadv_mcast_want_rtr6_update()
1983 !(orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR6)) { in batadv_mcast_want_rtr6_update()
2035 struct batadv_orig_node *orig, in batadv_mcast_tvlv_ogm_handler() argument
2046 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler()
2049 !test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) { in batadv_mcast_tvlv_ogm_handler()
2050 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler()
2052 test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) { in batadv_mcast_tvlv_ogm_handler()
2053 clear_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler()
2056 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized); in batadv_mcast_tvlv_ogm_handler()
2058 batadv_mcast_want_unsnoop_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler()
2059 batadv_mcast_want_ipv4_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler()
2060 batadv_mcast_want_ipv6_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler()
2061 batadv_mcast_want_rtr4_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler()
2062 batadv_mcast_want_rtr6_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler()
2064 orig->mcast_flags = mcast_flags; in batadv_mcast_tvlv_ogm_handler()
2065 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler()
2165 seq_printf(seq, "%pM -\n", orig_node->orig); in batadv_mcast_flags_seq_print_text()
2171 seq_printf(seq, "%pM [%c%c%c%s%s]\n", orig_node->orig, in batadv_mcast_flags_seq_print_text()
2251 orig_node->orig)) { in batadv_mcast_flags_dump_entry()
2446 void batadv_mcast_purge_orig(struct batadv_orig_node *orig) in batadv_mcast_purge_orig() argument
2448 struct batadv_priv *bat_priv = orig->bat_priv; in batadv_mcast_purge_orig()
2450 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()
2452 batadv_mcast_want_unsnoop_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
2453 batadv_mcast_want_ipv4_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
2454 batadv_mcast_want_ipv6_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
2455 batadv_mcast_want_rtr4_update(bat_priv, orig, in batadv_mcast_purge_orig()
2457 batadv_mcast_want_rtr6_update(bat_priv, orig, in batadv_mcast_purge_orig()
2460 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()