Lines Matching refs:gw
130 * batadv_gw_tvlv_container_update() - update the gw tvlv container after
136 struct batadv_tvlv_gateway_data gw;
140 gw_mode = atomic_read(&bat_priv->gw.mode);
148 down = atomic_read(&bat_priv->gw.bandwidth_down);
149 up = atomic_read(&bat_priv->gw.bandwidth_up);
150 gw.bandwidth_down = htonl(down);
151 gw.bandwidth_up = htonl(up);
153 &gw, sizeof(gw));
177 down_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_down);
178 up_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_up);
202 atomic_set(&bat_priv->gw.bandwidth_down, down_new);
203 atomic_set(&bat_priv->gw.bandwidth_up, up_new);
246 atomic_read(&bat_priv->gw.mode) == BATADV_GW_MODE_CLIENT)
256 if (bat_priv->algo_ops->gw.init_sel_class)
257 bat_priv->algo_ops->gw.init_sel_class(bat_priv);
259 atomic_set(&bat_priv->gw.sel_class, 1);