Lines Matching refs:orig_entry

416 	struct batadv_tt_orig_list_entry *orig_entry;  in batadv_tt_orig_list_entry_free_rcu()  local
418 orig_entry = container_of(rcu, struct batadv_tt_orig_list_entry, rcu); in batadv_tt_orig_list_entry_free_rcu()
420 kmem_cache_free(batadv_tt_orig_cache, orig_entry); in batadv_tt_orig_list_entry_free_rcu()
430 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_orig_list_entry_release() local
432 orig_entry = container_of(ref, struct batadv_tt_orig_list_entry, in batadv_tt_orig_list_entry_release()
435 batadv_orig_node_put(orig_entry->orig_node); in batadv_tt_orig_list_entry_release()
436 call_rcu(&orig_entry->rcu, batadv_tt_orig_list_entry_free_rcu); in batadv_tt_orig_list_entry_release()
445 batadv_tt_orig_list_entry_put(struct batadv_tt_orig_list_entry *orig_entry) in batadv_tt_orig_list_entry_put() argument
447 if (!orig_entry) in batadv_tt_orig_list_entry_put()
450 kref_put(&orig_entry->refcount, batadv_tt_orig_list_entry_release); in batadv_tt_orig_list_entry_put()
646 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_local_add() local
768 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_local_add()
771 orig_entry->orig_node); in batadv_tt_local_add()
1444 struct batadv_tt_orig_list_entry *tmp_orig_entry, *orig_entry = NULL; in batadv_tt_global_orig_entry_find() local
1455 orig_entry = tmp_orig_entry; in batadv_tt_global_orig_entry_find()
1460 return orig_entry; in batadv_tt_global_orig_entry_find()
1480 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_entry_has_orig() local
1483 orig_entry = batadv_tt_global_orig_entry_find(entry, orig_node); in batadv_tt_global_entry_has_orig()
1484 if (orig_entry) { in batadv_tt_global_entry_has_orig()
1488 *flags = orig_entry->flags; in batadv_tt_global_entry_has_orig()
1490 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_entry_has_orig()
1506 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_sync_flags() local
1512 hlist_for_each_entry_rcu(orig_entry, head, list) in batadv_tt_global_sync_flags()
1513 flags |= orig_entry->flags; in batadv_tt_global_sync_flags()
1532 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_orig_entry_add() local
1536 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node); in batadv_tt_global_orig_entry_add()
1537 if (orig_entry) { in batadv_tt_global_orig_entry_add()
1541 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1542 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1546 orig_entry = kmem_cache_zalloc(batadv_tt_orig_cache, GFP_ATOMIC); in batadv_tt_global_orig_entry_add()
1547 if (!orig_entry) in batadv_tt_global_orig_entry_add()
1550 INIT_HLIST_NODE(&orig_entry->list); in batadv_tt_global_orig_entry_add()
1553 orig_entry->orig_node = orig_node; in batadv_tt_global_orig_entry_add()
1554 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1555 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1556 kref_init(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1558 kref_get(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1559 hlist_add_head_rcu(&orig_entry->list, in batadv_tt_global_orig_entry_add()
1566 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_orig_entry_add()
1759 struct batadv_tt_orig_list_entry *orig_entry, *best_entry = NULL; in batadv_transtable_best_orig() local
1762 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_transtable_best_orig()
1763 router = batadv_orig_router_get(orig_entry->orig_node, in batadv_transtable_best_orig()
1778 best_entry = orig_entry; in batadv_transtable_best_orig()
1866 struct batadv_tt_orig_list_entry *orig_entry, *best_entry; in batadv_tt_global_dump_entry() local
1876 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_dump_entry()
1880 best = (orig_entry == best_entry); in batadv_tt_global_dump_entry()
1883 orig_entry, best)) { in batadv_tt_global_dump_entry()
2011 struct batadv_tt_orig_list_entry *orig_entry) in _batadv_tt_global_del_orig_entry() argument
2015 batadv_tt_global_size_dec(orig_entry->orig_node, in _batadv_tt_global_del_orig_entry()
2021 hlist_del_rcu(&orig_entry->list); in _batadv_tt_global_del_orig_entry()
2022 batadv_tt_orig_list_entry_put(orig_entry); in _batadv_tt_global_del_orig_entry()
2031 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_list() local
2035 hlist_for_each_entry_safe(orig_entry, safe, head, 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()
2058 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_node() local
2063 hlist_for_each_entry_safe(orig_entry, safe, head, list) { in batadv_tt_global_del_orig_node()
2064 if (orig_entry->orig_node == orig_node) { in batadv_tt_global_del_orig_node()
2072 orig_entry); in batadv_tt_global_del_orig_node()
2090 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_roaming() local
2098 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_del_roaming()
2099 if (orig_entry->orig_node != orig_node) { in batadv_tt_global_del_roaming()