Lines Matching refs:gw_node

704 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)  in batadv_v_gw_throughput_get()  argument
711 orig_node = gw_node->orig_node; in batadv_v_gw_throughput_get()
726 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get()
747 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local
751 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node()
752 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_v_gw_get_best_gw_node()
755 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node()
764 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()
769 batadv_gw_node_put(gw_node); in batadv_v_gw_get_best_gw_node()
836 const struct batadv_gw_node *gw_node) in batadv_v_gw_write_buffer_text() argument
843 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_v_gw_write_buffer_text()
854 (curr_gw == gw_node ? "=>" : " "), in batadv_v_gw_write_buffer_text()
855 gw_node->orig_node->orig, in batadv_v_gw_write_buffer_text()
859 gw_node->bandwidth_down / 10, in batadv_v_gw_write_buffer_text()
860 gw_node->bandwidth_down % 10, in batadv_v_gw_write_buffer_text()
861 gw_node->bandwidth_up / 10, in batadv_v_gw_write_buffer_text()
862 gw_node->bandwidth_up % 10); in batadv_v_gw_write_buffer_text()
883 struct batadv_gw_node *gw_node; in batadv_v_gw_print() local
890 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_print()
892 if (batadv_v_gw_write_buffer_text(bat_priv, seq, gw_node) < 0) in batadv_v_gw_print()
917 struct batadv_gw_node *gw_node) in batadv_v_gw_dump_entry() argument
925 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_v_gw_dump_entry()
947 if (curr_gw == gw_node) { in batadv_v_gw_dump_entry()
955 gw_node->orig_node->orig)) { in batadv_v_gw_dump_entry()
978 gw_node->bandwidth_down)) { in batadv_v_gw_dump_entry()
983 if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) { in batadv_v_gw_dump_entry()
1011 struct batadv_gw_node *gw_node; in batadv_v_gw_dump() local
1018 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_dump()
1023 gw_node)) { in batadv_v_gw_dump()