Searched refs:gw_node (Results 1 – 2 of 2) sorted by relevance
522 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw) in batadv_v_gw_throughput_get() argument529 orig_node = gw_node->orig_node; in batadv_v_gw_throughput_get()544 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get()563 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local567 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node()568 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_v_gw_get_best_gw_node()571 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node()579 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()584 batadv_gw_node_put(gw_node); in batadv_v_gw_get_best_gw_node()658 struct batadv_gw_node *gw_node) in batadv_v_gw_dump_entry() argument[all …]
47 static inline void batadv_gw_node_put(struct batadv_gw_node *gw_node) in batadv_gw_node_put() argument49 if (!gw_node) in batadv_gw_node_put()52 kref_put(&gw_node->refcount, batadv_gw_node_release); in batadv_gw_node_put()