Searched refs:sel_class (Results 1 – 6 of 6) sorted by relevance
666 atomic_set(&bat_priv->gw.sel_class, 50); in batadv_v_init_sel_class()679 old_class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_store_sel_class()680 atomic_set(&bat_priv->gw.sel_class, class); in batadv_v_store_sel_class()690 u32 class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_show_sel_class()792 threshold = atomic_read(&bat_priv->gw.sel_class); in batadv_v_gw_is_eligible()
327 atomic_read(&bat_priv->gw.sel_class))) in batadv_netlink_mesh_fill()553 u32 sel_class; in batadv_netlink_set_mesh() local556 sel_class = nla_get_u32(attr); in batadv_netlink_set_mesh()561 if (sel_class >= 1 && sel_class <= sel_class_max) { in batadv_netlink_set_mesh()562 atomic_set(&bat_priv->gw.sel_class, sel_class); in batadv_netlink_set_mesh()
259 atomic_set(&bat_priv->gw.sel_class, 1); in batadv_gw_init()
2410 atomic_set(&bat_priv->gw.sel_class, 20); in batadv_iv_init_sel_class()2442 switch (atomic_read(&bat_priv->gw.sel_class)) { in batadv_iv_gw_get_best_gw_node()2505 if (atomic_read(&bat_priv->gw.sel_class) <= 2) in batadv_iv_gw_is_eligible()2540 if ((atomic_read(&bat_priv->gw.sel_class) > 3) && in batadv_iv_gw_is_eligible()2541 (orig_tq_avg - gw_tq_avg < atomic_read(&bat_priv->gw.sel_class))) in batadv_iv_gw_is_eligible()
583 return sprintf(buff, "%i\n", atomic_read(&bat_priv->gw.sel_class)); in batadv_show_gw_sel_class()611 &bat_priv->gw.sel_class, in batadv_store_gw_sel_class()
1134 atomic_t sel_class; member