Lines Matching refs:cand_router
529 struct batadv_neigh_node *router, *cand_router = NULL; in batadv_find_router() local
568 cand_router = rcu_dereference(cand->router); in batadv_find_router()
569 if (!cand_router) in batadv_find_router()
572 if (!kref_get_unless_zero(&cand_router->refcount)) { in batadv_find_router()
573 cand_router = NULL; in batadv_find_router()
580 if (!bao->neigh.is_similar_or_better(cand_router, in batadv_find_router()
586 if (last_cand_router == cand_router) in batadv_find_router()
591 kref_get(&cand_router->refcount); in batadv_find_router()
594 first_candidate_router = cand_router; in batadv_find_router()
603 next_candidate_router = cand_router; in batadv_find_router()
611 if (cand_router) { in batadv_find_router()
612 batadv_neigh_node_put(cand_router); in batadv_find_router()
613 cand_router = NULL; in batadv_find_router()