• Home
  • Raw
  • Download

Lines Matching refs:bat_priv

199 int batadv_is_my_mac(struct batadv_priv *bat_priv, const uint8_t *addr);
213 int batadv_algo_select(struct batadv_priv *bat_priv, char *name);
238 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)
242 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ argument
244 if (atomic_read(&bat_priv->log_level) & type && \
246 batadv_debug_log(bat_priv, fmt, ## arg);\
252 struct batadv_priv *bat_priv __always_unused, in _batadv_dbg()
259 #define batadv_dbg(type, bat_priv, arg...) \ argument
260 _batadv_dbg(type, bat_priv, 0, ## arg)
261 #define batadv_dbg_ratelimited(type, bat_priv, arg...) \ argument
262 _batadv_dbg(type, bat_priv, 1, ## arg)
324 static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, in batadv_add_counter() argument
327 this_cpu_add(bat_priv->bat_counters[idx], count); in batadv_add_counter()
333 static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv, in batadv_sum_counter() argument
340 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter()
353 void batadv_tvlv_container_register(struct batadv_priv *bat_priv,
356 uint16_t batadv_tvlv_container_ogm_append(struct batadv_priv *bat_priv,
360 void batadv_tvlv_ogm_receive(struct batadv_priv *bat_priv,
363 void batadv_tvlv_container_unregister(struct batadv_priv *bat_priv,
366 void batadv_tvlv_handler_register(struct batadv_priv *bat_priv,
367 void (*optr)(struct batadv_priv *bat_priv,
372 int (*uptr)(struct batadv_priv *bat_priv,
377 void batadv_tvlv_handler_unregister(struct batadv_priv *bat_priv,
379 int batadv_tvlv_containers_process(struct batadv_priv *bat_priv,
384 void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, uint8_t *src,
388 bool batadv_vlan_ap_isola_get(struct batadv_priv *bat_priv, unsigned short vid);