Lines Matching refs:tt_global_entry

70 batadv_tt_global_del_orig_list(struct batadv_tt_global_entry *tt_global_entry);
200 struct batadv_tt_global_entry *tt_global_entry = NULL; in batadv_tt_global_hash_find() local
205 tt_global_entry = container_of(tt_common_entry, in batadv_tt_global_hash_find()
208 return tt_global_entry; in batadv_tt_global_hash_find()
263 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_entry_free_rcu() local
265 tt_global_entry = container_of(rcu, struct batadv_tt_global_entry, in batadv_tt_global_entry_free_rcu()
268 kmem_cache_free(batadv_tg_cache, tt_global_entry); in batadv_tt_global_entry_free_rcu()
278 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_entry_release() local
280 tt_global_entry = container_of(ref, struct batadv_tt_global_entry, in batadv_tt_global_entry_release()
283 batadv_tt_global_del_orig_list(tt_global_entry); in batadv_tt_global_entry_release()
285 call_rcu(&tt_global_entry->common.rcu, batadv_tt_global_entry_free_rcu); in batadv_tt_global_entry_release()
300 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_hash_count() local
303 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_hash_count()
304 if (!tt_global_entry) in batadv_tt_global_hash_count()
307 count = atomic_read(&tt_global_entry->orig_list_count); in batadv_tt_global_hash_count()
308 batadv_tt_global_entry_put(tt_global_entry); in batadv_tt_global_hash_count()
1595 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_add() local
1606 tt_global_entry = batadv_tt_global_hash_find(bat_priv, tt_addr, vid); in batadv_tt_global_add()
1617 if (!tt_global_entry) { in batadv_tt_global_add()
1618 tt_global_entry = kmem_cache_zalloc(batadv_tg_cache, in batadv_tt_global_add()
1620 if (!tt_global_entry) in batadv_tt_global_add()
1623 common = &tt_global_entry->common; in batadv_tt_global_add()
1630 tt_global_entry->roam_at = 0; in batadv_tt_global_add()
1636 tt_global_entry->roam_at = jiffies; in batadv_tt_global_add()
1640 INIT_HLIST_HEAD(&tt_global_entry->orig_list); in batadv_tt_global_add()
1641 atomic_set(&tt_global_entry->orig_list_count, 0); in batadv_tt_global_add()
1642 spin_lock_init(&tt_global_entry->list_lock); in batadv_tt_global_add()
1652 batadv_tt_global_entry_put(tt_global_entry); in batadv_tt_global_add()
1656 common = &tt_global_entry->common; in batadv_tt_global_add()
1670 if (batadv_tt_global_entry_has_orig(tt_global_entry, in batadv_tt_global_add()
1673 batadv_tt_global_del_orig_list(tt_global_entry); in batadv_tt_global_add()
1684 batadv_tt_global_del_orig_list(tt_global_entry); in batadv_tt_global_add()
1703 batadv_tt_global_del_orig_list(tt_global_entry); in batadv_tt_global_add()
1705 tt_global_entry->roam_at = 0; in batadv_tt_global_add()
1710 batadv_tt_global_orig_entry_add(tt_global_entry, orig_node, ttvn, in batadv_tt_global_add()
1730 tt_global_entry->common.flags |= local_flags & BATADV_TT_CLIENT_WIFI; in batadv_tt_global_add()
1736 tt_global_entry->common.flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_global_add()
1739 batadv_tt_global_entry_put(tt_global_entry); in batadv_tt_global_add()
1754 struct batadv_tt_global_entry *tt_global_entry) in batadv_transtable_best_orig() argument
1761 head = &tt_global_entry->orig_list; in batadv_transtable_best_orig()
2010 _batadv_tt_global_del_orig_entry(struct batadv_tt_global_entry *tt_global_entry, in _batadv_tt_global_del_orig_entry() argument
2013 lockdep_assert_held(&tt_global_entry->list_lock); in _batadv_tt_global_del_orig_entry()
2016 tt_global_entry->common.vid); in _batadv_tt_global_del_orig_entry()
2017 atomic_dec(&tt_global_entry->orig_list_count); in _batadv_tt_global_del_orig_entry()
2027 batadv_tt_global_del_orig_list(struct batadv_tt_global_entry *tt_global_entry) in batadv_tt_global_del_orig_list() argument
2033 spin_lock_bh(&tt_global_entry->list_lock); in batadv_tt_global_del_orig_list()
2034 head = &tt_global_entry->orig_list; in batadv_tt_global_del_orig_list()
2036 _batadv_tt_global_del_orig_entry(tt_global_entry, orig_entry); in batadv_tt_global_del_orig_list()
2037 spin_unlock_bh(&tt_global_entry->list_lock); in batadv_tt_global_del_orig_list()
2052 struct batadv_tt_global_entry *tt_global_entry, in batadv_tt_global_del_orig_node() argument
2061 spin_lock_bh(&tt_global_entry->list_lock); in batadv_tt_global_del_orig_node()
2062 head = &tt_global_entry->orig_list; in batadv_tt_global_del_orig_node()
2065 vid = tt_global_entry->common.vid; in batadv_tt_global_del_orig_node()
2069 tt_global_entry->common.addr, in batadv_tt_global_del_orig_node()
2071 _batadv_tt_global_del_orig_entry(tt_global_entry, in batadv_tt_global_del_orig_node()
2075 spin_unlock_bh(&tt_global_entry->list_lock); in batadv_tt_global_del_orig_node()
2084 struct batadv_tt_global_entry *tt_global_entry, in batadv_tt_global_del_roaming() argument
2097 head = &tt_global_entry->orig_list; in batadv_tt_global_del_roaming()
2108 tt_global_entry->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_global_del_roaming()
2109 tt_global_entry->roam_at = jiffies; in batadv_tt_global_del_roaming()
2114 batadv_tt_global_del_orig_node(bat_priv, tt_global_entry, in batadv_tt_global_del_roaming()
2134 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_del() local
2137 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_del()
2138 if (!tt_global_entry) in batadv_tt_global_del()
2142 batadv_tt_global_del_orig_node(bat_priv, tt_global_entry, in batadv_tt_global_del()
2145 if (hlist_empty(&tt_global_entry->orig_list)) in batadv_tt_global_del()
2146 batadv_tt_global_free(bat_priv, tt_global_entry, in batadv_tt_global_del()
2166 tt_global_entry->common.addr, in batadv_tt_global_del()
2170 batadv_tt_global_del_orig_list(tt_global_entry); in batadv_tt_global_del()
2171 batadv_tt_global_free(bat_priv, tt_global_entry, message); in batadv_tt_global_del()
2174 batadv_tt_global_del_roaming(bat_priv, tt_global_entry, in batadv_tt_global_del()
2179 batadv_tt_global_entry_put(tt_global_entry); in batadv_tt_global_del()
2341 struct batadv_tt_global_entry *tt_global_entry) in _batadv_is_ap_isolated() argument
2344 tt_global_entry->common.flags & BATADV_TT_CLIENT_WIFI) in _batadv_is_ap_isolated()
2349 tt_global_entry->common.flags & BATADV_TT_CLIENT_ISOLA) in _batadv_is_ap_isolated()
2375 struct batadv_tt_global_entry *tt_global_entry = NULL; in batadv_transtable_search() local
2386 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_transtable_search()
2387 if (!tt_global_entry) in batadv_transtable_search()
2394 _batadv_is_ap_isolated(tt_local_entry, tt_global_entry)) in batadv_transtable_search()
2398 best_entry = batadv_transtable_best_orig(bat_priv, tt_global_entry); in batadv_transtable_search()
2407 batadv_tt_global_entry_put(tt_global_entry); in batadv_transtable_search()
2723 const struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_valid() local
2730 tt_global_entry = container_of(tt_common_entry, in batadv_tt_global_valid()
2734 return batadv_tt_global_entry_has_orig(tt_global_entry, orig_node, in batadv_tt_global_valid()
3735 struct batadv_tt_global_entry *tt_global_entry; in batadv_is_ap_isolated() local
3750 tt_global_entry = batadv_tt_global_hash_find(bat_priv, src, vid); in batadv_is_ap_isolated()
3751 if (!tt_global_entry) in batadv_is_ap_isolated()
3754 if (_batadv_is_ap_isolated(tt_local_entry, tt_global_entry)) in batadv_is_ap_isolated()
3757 batadv_tt_global_entry_put(tt_global_entry); in batadv_is_ap_isolated()
3863 struct batadv_tt_global_entry *tt_global_entry; in batadv_tt_global_client_is_roaming() local
3866 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_client_is_roaming()
3867 if (!tt_global_entry) in batadv_tt_global_client_is_roaming()
3870 ret = tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM; in batadv_tt_global_client_is_roaming()
3871 batadv_tt_global_entry_put(tt_global_entry); in batadv_tt_global_client_is_roaming()