Lines Matching refs:gw_node
697 * @gw_node: the GW to retrieve the metric for
704 static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)
711 orig_node = gw_node->orig_node;
726 *bw = min_t(u32, *bw, gw_node->bandwidth_down);
747 struct batadv_gw_node *gw_node, *curr_gw = NULL;
751 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) {
752 if (!kref_get_unless_zero(&gw_node->refcount))
755 if (batadv_v_gw_throughput_get(gw_node, &bw) < 0)
764 curr_gw = gw_node;
769 batadv_gw_node_put(gw_node);
836 const struct batadv_gw_node *gw_node)
843 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT);
854 (curr_gw == gw_node ? "=>" : " "),
855 gw_node->orig_node->orig,
859 gw_node->bandwidth_down / 10,
860 gw_node->bandwidth_down % 10,
861 gw_node->bandwidth_up / 10,
862 gw_node->bandwidth_up % 10);
883 struct batadv_gw_node *gw_node;
890 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) {
892 if (batadv_v_gw_write_buffer_text(bat_priv, seq, gw_node) < 0)
910 * @gw_node: Gateway to be dumped
917 struct batadv_gw_node *gw_node)
925 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT);
947 if (curr_gw == gw_node) {
955 gw_node->orig_node->orig)) {
978 gw_node->bandwidth_down)) {
983 if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) {
1011 struct batadv_gw_node *gw_node;
1018 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) {
1023 gw_node)) {