Home
last modified time | relevance | path

Searched refs:debug_log (Results 1 – 2 of 2) sorted by relevance

/net/batman-adv/
Ddebugfs.c41 static char *batadv_log_char_addr(struct batadv_priv_debug_log *debug_log, in batadv_log_char_addr() argument
44 return &debug_log->log_buff[idx & BATADV_LOG_BUFF_MASK]; in batadv_log_char_addr()
47 static void batadv_emit_log_char(struct batadv_priv_debug_log *debug_log, in batadv_emit_log_char() argument
52 char_addr = batadv_log_char_addr(debug_log, debug_log->log_end); in batadv_emit_log_char()
54 debug_log->log_end++; in batadv_emit_log_char()
56 if (debug_log->log_end - debug_log->log_start > batadv_log_buff_len) in batadv_emit_log_char()
57 debug_log->log_start = debug_log->log_end - batadv_log_buff_len; in batadv_emit_log_char()
61 static int batadv_fdebug_log(struct batadv_priv_debug_log *debug_log, in batadv_fdebug_log() argument
68 if (!debug_log) in batadv_fdebug_log()
71 spin_lock_bh(&debug_log->lock); in batadv_fdebug_log()
[all …]
Dtypes.h811 struct batadv_priv_debug_log *debug_log; member