Lines Matching refs:gw
464 if (!bat_priv->algo_ops->gw.get_best_gw_node ||
465 !bat_priv->algo_ops->gw.is_eligible)
468 switch (atomic_read(&bat_priv->gw.mode)) {
500 if (!bat_priv->algo_ops->gw.get_best_gw_node ||
501 !bat_priv->algo_ops->gw.is_eligible)
521 "Invalid parameter for 'gw mode' setting received: %s\n",
526 if (atomic_read(&bat_priv->gw.mode) == gw_mode_tmp)
529 switch (atomic_read(&bat_priv->gw.mode)) {
541 batadv_info(net_dev, "Changing gw mode from: %s to: %s\n",
548 * When gw client mode is being switched off the current GW must be
558 atomic_set(&bat_priv->gw.mode, (unsigned int)gw_mode_tmp);
576 if (!bat_priv->algo_ops->gw.get_best_gw_node ||
577 !bat_priv->algo_ops->gw.is_eligible)
580 if (bat_priv->algo_ops->gw.show_sel_class)
581 return bat_priv->algo_ops->gw.show_sel_class(bat_priv, buff);
583 return sprintf(buff, "%i\n", atomic_read(&bat_priv->gw.sel_class));
598 if (!bat_priv->algo_ops->gw.get_best_gw_node ||
599 !bat_priv->algo_ops->gw.is_eligible)
605 if (bat_priv->algo_ops->gw.store_sel_class)
606 return bat_priv->algo_ops->gw.store_sel_class(bat_priv, buff,
611 &bat_priv->gw.sel_class,
627 down = atomic_read(&bat_priv->gw.bandwidth_down);
628 up = atomic_read(&bat_priv->gw.bandwidth_up);