Lines Matching refs:backend
21 static void fifo_reset(const struct shell_log_backend *backend) in fifo_reset() argument
23 mpsc_pbuf_init(backend->mpsc_buffer, backend->mpsc_buffer_config); in fifo_reset()
26 void z_shell_log_backend_enable(const struct shell_log_backend *backend, in z_shell_log_backend_enable() argument
42 fifo_reset(backend); in z_shell_log_backend_enable()
43 log_backend_enable(backend->backend, ctx, init_log_level); in z_shell_log_backend_enable()
44 log_output_ctx_set(backend->log_output, ctx); in z_shell_log_backend_enable()
45 backend->control_block->dropped_cnt = 0; in z_shell_log_backend_enable()
46 backend->control_block->state = SHELL_LOG_BACKEND_ENABLED; in z_shell_log_backend_enable()
50 void z_shell_log_backend_disable(const struct shell_log_backend *backend) in z_shell_log_backend_disable() argument
52 log_backend_disable(backend->backend); in z_shell_log_backend_disable()
53 backend->control_block->state = SHELL_LOG_BACKEND_DISABLED; in z_shell_log_backend_disable()
56 bool z_shell_log_backend_process(const struct shell_log_backend *backend) in z_shell_log_backend_process() argument
59 (const struct shell *)backend->backend->cb->ctx; in z_shell_log_backend_process()
64 dropped = atomic_set(&backend->control_block->dropped_cnt, 0); in z_shell_log_backend_process()
73 log_output_dropped_process(backend->log_output, dropped); in z_shell_log_backend_process()
83 static void panic(const struct log_backend *const backend) in panic() argument
85 const struct shell *sh = (const struct shell *)backend->cb->ctx; in panic()
115 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument
117 const struct shell *sh = (const struct shell *)backend->cb->ctx; in dropped()
225 static void process(const struct log_backend *const backend, in process() argument
228 const struct shell *sh = (const struct shell *)backend->cb->ctx; in process()
247 dropped(backend, 1); in process()