Lines Matching defs:bat_priv
112 struct batadv_priv *bat_priv = file->private_data;
113 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
166 struct batadv_priv *bat_priv = file->private_data;
167 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
188 * @bat_priv: the bat priv with all the soft interface information
192 int batadv_debug_log_setup(struct batadv_priv *bat_priv)
194 bat_priv->debug_log = kzalloc(sizeof(*bat_priv->debug_log), GFP_ATOMIC);
195 if (!bat_priv->debug_log)
198 spin_lock_init(&bat_priv->debug_log->lock);
199 init_waitqueue_head(&bat_priv->debug_log->queue_wait);
201 debugfs_create_file("log", 0400, bat_priv->debug_dir, bat_priv,
208 * @bat_priv: the bat priv with all the soft interface information
210 void batadv_debug_log_cleanup(struct batadv_priv *bat_priv)
212 kfree(bat_priv->debug_log);
213 bat_priv->debug_log = NULL;
220 * @bat_priv: the bat priv with all the soft interface information
225 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)
236 batadv_fdebug_log(bat_priv->debug_log, "[%10u] %pV",
240 trace_batadv_dbg(bat_priv, &vaf);