Lines Matching refs:orig
552 struct batadv_orig_node **orig) in batadv_mcast_forw_mode() argument
577 *orig = batadv_mcast_forw_tt_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
579 *orig = batadv_mcast_forw_ip_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
581 *orig = batadv_mcast_forw_unsnoop_node_get(bat_priv); in batadv_mcast_forw_mode()
583 if (*orig) in batadv_mcast_forw_mode()
606 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument
609 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update()
612 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_unsnoop_update()
616 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update()
627 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update()
651 struct batadv_orig_node *orig, in batadv_mcast_want_ipv4_update() argument
654 struct hlist_node *node = &orig->mcast_want_all_ipv4_node; in batadv_mcast_want_ipv4_update()
657 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv4_update()
661 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) { in batadv_mcast_want_ipv4_update()
672 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4) { in batadv_mcast_want_ipv4_update()
696 struct batadv_orig_node *orig, in batadv_mcast_want_ipv6_update() argument
699 struct hlist_node *node = &orig->mcast_want_all_ipv6_node; in batadv_mcast_want_ipv6_update()
702 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv6_update()
706 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6)) { in batadv_mcast_want_ipv6_update()
717 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6) { in batadv_mcast_want_ipv6_update()
738 struct batadv_orig_node *orig, in batadv_mcast_tvlv_ogm_handler_v1() argument
751 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler_v1()
753 &orig->capa_initialized); in batadv_mcast_tvlv_ogm_handler_v1()
760 !test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) { in batadv_mcast_tvlv_ogm_handler_v1()
763 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler_v1()
769 (test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities) || in batadv_mcast_tvlv_ogm_handler_v1()
772 clear_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler_v1()
775 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized); in batadv_mcast_tvlv_ogm_handler_v1()
777 batadv_mcast_want_unsnoop_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
778 batadv_mcast_want_ipv4_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
779 batadv_mcast_want_ipv6_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
781 orig->mcast_flags = mcast_flags; in batadv_mcast_tvlv_ogm_handler_v1()
782 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler_v1()
812 void batadv_mcast_purge_orig(struct batadv_orig_node *orig) in batadv_mcast_purge_orig() argument
814 struct batadv_priv *bat_priv = orig->bat_priv; in batadv_mcast_purge_orig()
816 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()
818 if (!test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities) && in batadv_mcast_purge_orig()
819 test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized)) in batadv_mcast_purge_orig()
822 batadv_mcast_want_unsnoop_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
823 batadv_mcast_want_ipv4_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
824 batadv_mcast_want_ipv6_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
826 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()