Lines Matching refs:orig
520 struct batadv_orig_node **orig) in batadv_mcast_forw_mode() argument
545 *orig = batadv_mcast_forw_tt_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
547 *orig = batadv_mcast_forw_ip_node_get(bat_priv, ethhdr); in batadv_mcast_forw_mode()
549 *orig = batadv_mcast_forw_unsnoop_node_get(bat_priv); in batadv_mcast_forw_mode()
551 if (*orig) in batadv_mcast_forw_mode()
574 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument
577 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update()
582 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update()
593 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update()
617 struct batadv_orig_node *orig, in batadv_mcast_want_ipv4_update() argument
620 struct hlist_node *node = &orig->mcast_want_all_ipv4_node; in batadv_mcast_want_ipv4_update()
625 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) { in batadv_mcast_want_ipv4_update()
636 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4) { in batadv_mcast_want_ipv4_update()
660 struct batadv_orig_node *orig, in batadv_mcast_want_ipv6_update() argument
663 struct hlist_node *node = &orig->mcast_want_all_ipv6_node; in batadv_mcast_want_ipv6_update()
668 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6)) { in batadv_mcast_want_ipv6_update()
679 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6) { in batadv_mcast_want_ipv6_update()
700 struct batadv_orig_node *orig, in batadv_mcast_tvlv_ogm_handler_v1() argument
713 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler_v1()
715 &orig->capa_initialized); in batadv_mcast_tvlv_ogm_handler_v1()
722 !test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities)) { in batadv_mcast_tvlv_ogm_handler_v1()
725 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler_v1()
731 (test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities) || in batadv_mcast_tvlv_ogm_handler_v1()
734 clear_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities); in batadv_mcast_tvlv_ogm_handler_v1()
737 set_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized); in batadv_mcast_tvlv_ogm_handler_v1()
739 batadv_mcast_want_unsnoop_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
740 batadv_mcast_want_ipv4_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
741 batadv_mcast_want_ipv6_update(bat_priv, orig, mcast_flags); in batadv_mcast_tvlv_ogm_handler_v1()
743 orig->mcast_flags = mcast_flags; in batadv_mcast_tvlv_ogm_handler_v1()
744 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_tvlv_ogm_handler_v1()
774 void batadv_mcast_purge_orig(struct batadv_orig_node *orig) in batadv_mcast_purge_orig() argument
776 struct batadv_priv *bat_priv = orig->bat_priv; in batadv_mcast_purge_orig()
778 spin_lock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()
780 if (!test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capabilities) && in batadv_mcast_purge_orig()
781 test_bit(BATADV_ORIG_CAPA_HAS_MCAST, &orig->capa_initialized)) in batadv_mcast_purge_orig()
784 batadv_mcast_want_unsnoop_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
785 batadv_mcast_want_ipv4_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
786 batadv_mcast_want_ipv6_update(bat_priv, orig, BATADV_NO_FLAGS); in batadv_mcast_purge_orig()
788 spin_unlock_bh(&orig->mcast_handler_lock); in batadv_mcast_purge_orig()