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()
1445 struct batadv_tt_orig_list_entry *tmp_orig_entry, *orig_entry = NULL; in batadv_tt_global_orig_entry_find() local
1456 orig_entry = tmp_orig_entry; in batadv_tt_global_orig_entry_find()
1461 return orig_entry; in batadv_tt_global_orig_entry_find()
1481 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_entry_has_orig() local
1484 orig_entry = batadv_tt_global_orig_entry_find(entry, orig_node); in batadv_tt_global_entry_has_orig()
1485 if (orig_entry) { in batadv_tt_global_entry_has_orig()
1489 *flags = orig_entry->flags; in batadv_tt_global_entry_has_orig()
1491 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_entry_has_orig()
1507 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_sync_flags() local
1513 hlist_for_each_entry_rcu(orig_entry, head, list) in batadv_tt_global_sync_flags()
1514 flags |= orig_entry->flags; in batadv_tt_global_sync_flags()
1533 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_orig_entry_add() local
1537 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node); in batadv_tt_global_orig_entry_add()
1538 if (orig_entry) { in batadv_tt_global_orig_entry_add()
1542 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1543 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1547 orig_entry = kmem_cache_zalloc(batadv_tt_orig_cache, GFP_ATOMIC); in batadv_tt_global_orig_entry_add()
1548 if (!orig_entry) in batadv_tt_global_orig_entry_add()
1551 INIT_HLIST_NODE(&orig_entry->list); in batadv_tt_global_orig_entry_add()
1554 orig_entry->orig_node = orig_node; in batadv_tt_global_orig_entry_add()
1555 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1556 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1557 kref_init(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1559 kref_get(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1560 hlist_add_head_rcu(&orig_entry->list, in batadv_tt_global_orig_entry_add()
1567 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_orig_entry_add()
1760 struct batadv_tt_orig_list_entry *orig_entry, *best_entry = NULL; in batadv_transtable_best_orig() local
1763 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_transtable_best_orig()
1764 router = batadv_orig_router_get(orig_entry->orig_node, in batadv_transtable_best_orig()
1779 best_entry = orig_entry; in batadv_transtable_best_orig()
1867 struct batadv_tt_orig_list_entry *orig_entry, *best_entry; in batadv_tt_global_dump_entry() local
1877 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_dump_entry()
1881 best = (orig_entry == best_entry); in batadv_tt_global_dump_entry()
1884 orig_entry, best)) { in batadv_tt_global_dump_entry()
2012 struct batadv_tt_orig_list_entry *orig_entry) in _batadv_tt_global_del_orig_entry() argument
2016 batadv_tt_global_size_dec(orig_entry->orig_node, in _batadv_tt_global_del_orig_entry()
2022 hlist_del_rcu(&orig_entry->list); in _batadv_tt_global_del_orig_entry()
2023 batadv_tt_orig_list_entry_put(orig_entry); in _batadv_tt_global_del_orig_entry()
2032 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_list() local
2036 hlist_for_each_entry_safe(orig_entry, safe, head, list) in batadv_tt_global_del_orig_list()
2037 _batadv_tt_global_del_orig_entry(tt_global_entry, orig_entry); in batadv_tt_global_del_orig_list()
2059 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_node() local
2064 hlist_for_each_entry_safe(orig_entry, safe, head, list) { in batadv_tt_global_del_orig_node()
2065 if (orig_entry->orig_node == orig_node) { in batadv_tt_global_del_orig_node()
2073 orig_entry); in batadv_tt_global_del_orig_node()
2091 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_roaming() local
2099 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_del_roaming()
2100 if (orig_entry->orig_node != orig_node) { in batadv_tt_global_del_roaming()