Lines Matching refs:cand_router
547 struct batadv_neigh_node *router, *cand_router = NULL; in batadv_find_router() local
586 cand_router = rcu_dereference(cand->router); in batadv_find_router()
587 if (!cand_router) in batadv_find_router()
590 if (!kref_get_unless_zero(&cand_router->refcount)) { in batadv_find_router()
591 cand_router = NULL; in batadv_find_router()
598 if (!bao->neigh.is_similar_or_better(cand_router, in batadv_find_router()
604 if (last_cand_router == cand_router) in batadv_find_router()
609 kref_get(&cand_router->refcount); in batadv_find_router()
612 first_candidate_router = cand_router; in batadv_find_router()
621 next_candidate_router = cand_router; in batadv_find_router()
629 if (cand_router) { in batadv_find_router()
630 batadv_neigh_node_put(cand_router); in batadv_find_router()
631 cand_router = NULL; in batadv_find_router()