Searched refs:hop_penalty (Results 1 - 6 of 6) sorted by relevance

/linux-master/net/batman-adv/
H A Dbat_v_ogm.c480 int if_hop_penalty = atomic_read(&if_incoming->hop_penalty);
481 int hop_penalty = atomic_read(&bat_priv->hop_penalty); local
502 return throughput * (hop_penalty_max - hop_penalty) / hop_penalty_max;
H A Dtypes.h208 * @hop_penalty: penalty which will be applied to the tq-field
211 atomic_t hop_penalty; member in struct:batadv_hard_iface
1692 * @hop_penalty: penalty which will be applied to an OGM's tq-field on
1695 atomic_t hop_penalty; member in struct:batadv_priv
H A Dnetlink.c331 atomic_read(&bat_priv->hop_penalty)))
567 atomic_set(&bat_priv->hop_penalty, nla_get_u8(attr));
831 atomic_read(&hard_iface->hop_penalty)))
933 atomic_set(&hard_iface->hop_penalty, nla_get_u8(attr));
H A Dbat_iv_ogm.c296 int hop_penalty = atomic_read(&bat_priv->hop_penalty); local
299 new_tq = tq * (BATADV_TQ_MAX_VALUE - hop_penalty);
1155 tq_iface_hop_penalty -= atomic_read(&if_incoming->hop_penalty);
H A Dhard-interface.c902 atomic_set(&hard_iface->hop_penalty, 0);
H A Dsoft-interface.c774 atomic_set(&bat_priv->hop_penalty, 30);

Completed in 183 milliseconds