• Home
  • Raw
  • Download

Lines Matching refs:router

102 	rcu_assign_pointer(orig_node->router, neigh_node);  in _batadv_update_route()
114 struct batadv_neigh_node *router = NULL; in batadv_update_route() local
119 router = batadv_orig_node_get_router(orig_node); in batadv_update_route()
121 if (router != neigh_node) in batadv_update_route()
125 if (router) in batadv_update_route()
126 batadv_neigh_node_free_ref(router); in batadv_update_route()
149 struct batadv_neigh_node *tmp_neigh_node, *router = NULL; in batadv_bonding_candidate_add() local
159 router = batadv_orig_node_get_router(orig_node); in batadv_bonding_candidate_add()
160 if (!router) in batadv_bonding_candidate_add()
164 if (neigh_node->tq_avg < router->tq_avg - BATADV_BONDING_TQ_THRESHOLD) in batadv_bonding_candidate_add()
211 if (router) in batadv_bonding_candidate_add()
212 batadv_neigh_node_free_ref(router); in batadv_bonding_candidate_add()
462 struct batadv_neigh_node *router = NULL, *first_candidate = NULL; in batadv_find_bond_router() local
477 router = tmp_neigh_node; in batadv_find_bond_router()
482 if (!router && first_candidate && in batadv_find_bond_router()
484 router = first_candidate; in batadv_find_bond_router()
486 if (!router) in batadv_find_bond_router()
498 &router->bonding_list); in batadv_find_bond_router()
503 return router; in batadv_find_bond_router()
517 struct batadv_neigh_node *router = NULL, *first_candidate = NULL; in batadv_find_ifalter_router() local
529 if (router && tmp_neigh_node->tq_avg <= router->tq_avg) in batadv_find_ifalter_router()
536 if (router) in batadv_find_ifalter_router()
537 batadv_neigh_node_free_ref(router); in batadv_find_ifalter_router()
540 router = tmp_neigh_node; in batadv_find_ifalter_router()
544 if (!router && first_candidate && in batadv_find_ifalter_router()
546 router = first_candidate; in batadv_find_ifalter_router()
549 return router; in batadv_find_ifalter_router()
720 struct batadv_neigh_node *router; in batadv_find_router() local
728 router = batadv_orig_node_get_router(orig_node); in batadv_find_router()
729 if (!router) in batadv_find_router()
739 router_orig = router->orig_node; in batadv_find_router()
778 batadv_neigh_node_free_ref(router); in batadv_find_router()
781 router = batadv_find_bond_router(primary_orig_node, recv_if); in batadv_find_router()
783 router = batadv_find_ifalter_router(primary_orig_node, recv_if); in batadv_find_router()
786 if (router && router->if_incoming->if_status != BATADV_IF_ACTIVE) in batadv_find_router()
790 return router; in batadv_find_router()
794 if (router) in batadv_find_router()
795 batadv_neigh_node_free_ref(router); in batadv_find_router()