Lines Matching refs:orig_entry

390 	struct batadv_tt_orig_list_entry *orig_entry;  in batadv_tt_orig_list_entry_release()  local
392 orig_entry = container_of(ref, struct batadv_tt_orig_list_entry, in batadv_tt_orig_list_entry_release()
395 batadv_orig_node_put(orig_entry->orig_node); in batadv_tt_orig_list_entry_release()
396 kfree_rcu(orig_entry, rcu); in batadv_tt_orig_list_entry_release()
405 batadv_tt_orig_list_entry_put(struct batadv_tt_orig_list_entry *orig_entry) in batadv_tt_orig_list_entry_put() argument
407 if (!orig_entry) in batadv_tt_orig_list_entry_put()
410 kref_put(&orig_entry->refcount, batadv_tt_orig_list_entry_release); in batadv_tt_orig_list_entry_put()
606 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_local_add() local
728 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_local_add()
731 orig_entry->orig_node); in batadv_tt_local_add()
1417 struct batadv_tt_orig_list_entry *tmp_orig_entry, *orig_entry = NULL; in batadv_tt_global_orig_entry_find() local
1428 orig_entry = tmp_orig_entry; in batadv_tt_global_orig_entry_find()
1433 return orig_entry; in batadv_tt_global_orig_entry_find()
1453 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_entry_has_orig() local
1456 orig_entry = batadv_tt_global_orig_entry_find(entry, orig_node); in batadv_tt_global_entry_has_orig()
1457 if (orig_entry) { in batadv_tt_global_entry_has_orig()
1461 *flags = orig_entry->flags; in batadv_tt_global_entry_has_orig()
1463 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_entry_has_orig()
1479 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_sync_flags() local
1485 hlist_for_each_entry_rcu(orig_entry, head, list) in batadv_tt_global_sync_flags()
1486 flags |= orig_entry->flags; in batadv_tt_global_sync_flags()
1505 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_orig_entry_add() local
1509 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node); in batadv_tt_global_orig_entry_add()
1510 if (orig_entry) { in batadv_tt_global_orig_entry_add()
1514 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1515 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1519 orig_entry = kmem_cache_zalloc(batadv_tt_orig_cache, GFP_ATOMIC); in batadv_tt_global_orig_entry_add()
1520 if (!orig_entry) in batadv_tt_global_orig_entry_add()
1523 INIT_HLIST_NODE(&orig_entry->list); in batadv_tt_global_orig_entry_add()
1526 orig_entry->orig_node = orig_node; in batadv_tt_global_orig_entry_add()
1527 orig_entry->ttvn = ttvn; in batadv_tt_global_orig_entry_add()
1528 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1529 kref_init(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1531 kref_get(&orig_entry->refcount); in batadv_tt_global_orig_entry_add()
1532 hlist_add_head_rcu(&orig_entry->list, in batadv_tt_global_orig_entry_add()
1539 batadv_tt_orig_list_entry_put(orig_entry); in batadv_tt_global_orig_entry_add()
1732 struct batadv_tt_orig_list_entry *orig_entry, *best_entry = NULL; in batadv_transtable_best_orig() local
1735 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_transtable_best_orig()
1736 router = batadv_orig_router_get(orig_entry->orig_node, in batadv_transtable_best_orig()
1751 best_entry = orig_entry; in batadv_transtable_best_orig()
1839 struct batadv_tt_orig_list_entry *orig_entry, *best_entry; in batadv_tt_global_dump_entry() local
1849 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_dump_entry()
1853 best = (orig_entry == best_entry); in batadv_tt_global_dump_entry()
1856 orig_entry, best)) { in batadv_tt_global_dump_entry()
1984 struct batadv_tt_orig_list_entry *orig_entry) in _batadv_tt_global_del_orig_entry() argument
1988 batadv_tt_global_size_dec(orig_entry->orig_node, in _batadv_tt_global_del_orig_entry()
1994 hlist_del_rcu(&orig_entry->list); in _batadv_tt_global_del_orig_entry()
1995 batadv_tt_orig_list_entry_put(orig_entry); in _batadv_tt_global_del_orig_entry()
2004 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_list() local
2008 hlist_for_each_entry_safe(orig_entry, safe, head, list) in batadv_tt_global_del_orig_list()
2009 _batadv_tt_global_del_orig_entry(tt_global_entry, orig_entry); in batadv_tt_global_del_orig_list()
2031 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_orig_node() local
2036 hlist_for_each_entry_safe(orig_entry, safe, head, list) { in batadv_tt_global_del_orig_node()
2037 if (orig_entry->orig_node == orig_node) { in batadv_tt_global_del_orig_node()
2045 orig_entry); in batadv_tt_global_del_orig_node()
2063 struct batadv_tt_orig_list_entry *orig_entry; in batadv_tt_global_del_roaming() local
2071 hlist_for_each_entry_rcu(orig_entry, head, list) { in batadv_tt_global_del_roaming()
2072 if (orig_entry->orig_node != orig_node) { in batadv_tt_global_del_roaming()