Lines Matching refs:gw_node

714 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)  in batadv_v_gw_throughput_get()  argument
721 orig_node = gw_node->orig_node; in batadv_v_gw_throughput_get()
736 *bw = min_t(u32, *bw, gw_node->bandwidth_down); in batadv_v_gw_throughput_get()
757 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local
761 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node()
762 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_v_gw_get_best_gw_node()
765 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0) in batadv_v_gw_get_best_gw_node()
774 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()
779 batadv_gw_node_put(gw_node); in batadv_v_gw_get_best_gw_node()
846 const struct batadv_gw_node *gw_node) in batadv_v_gw_write_buffer_text() argument
853 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_v_gw_write_buffer_text()
864 (curr_gw == gw_node ? "=>" : " "), in batadv_v_gw_write_buffer_text()
865 gw_node->orig_node->orig, in batadv_v_gw_write_buffer_text()
869 gw_node->bandwidth_down / 10, in batadv_v_gw_write_buffer_text()
870 gw_node->bandwidth_down % 10, in batadv_v_gw_write_buffer_text()
871 gw_node->bandwidth_up / 10, in batadv_v_gw_write_buffer_text()
872 gw_node->bandwidth_up % 10); in batadv_v_gw_write_buffer_text()
893 struct batadv_gw_node *gw_node; in batadv_v_gw_print() local
900 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_print()
902 if (batadv_v_gw_write_buffer_text(bat_priv, seq, gw_node) < 0) in batadv_v_gw_print()
926 struct batadv_gw_node *gw_node) in batadv_v_gw_dump_entry() argument
934 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_v_gw_dump_entry()
953 if (curr_gw == gw_node) { in batadv_v_gw_dump_entry()
961 gw_node->orig_node->orig)) { in batadv_v_gw_dump_entry()
984 gw_node->bandwidth_down)) { in batadv_v_gw_dump_entry()
989 if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) { in batadv_v_gw_dump_entry()
1017 struct batadv_gw_node *gw_node; in batadv_v_gw_dump() local
1022 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_dump()
1027 bat_priv, gw_node)) { in batadv_v_gw_dump()