Home
last modified time | relevance | path

Searched refs:backend (Results 1 – 25 of 219) sorted by relevance

123456789

/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_uart_isr.c14 static void modem_backend_uart_isr_flush(struct modem_backend_uart *backend) in modem_backend_uart_isr_flush() argument
18 while (uart_fifo_read(backend->uart, &c, 1) > 0) { in modem_backend_uart_isr_flush()
23 static void modem_backend_uart_isr_irq_handler_receive_ready(struct modem_backend_uart *backend) in modem_backend_uart_isr_irq_handler_receive_ready() argument
30 receive_rb = &backend->isr.receive_rdb[backend->isr.receive_rdb_used]; in modem_backend_uart_isr_irq_handler_receive_ready()
44 ret = uart_fifo_read(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_receive_ready()
57 k_work_schedule(&backend->receive_ready_work, in modem_backend_uart_isr_irq_handler_receive_ready()
61 k_work_reschedule(&backend->receive_ready_work, K_NO_WAIT); in modem_backend_uart_isr_irq_handler_receive_ready()
65 static void modem_backend_uart_isr_irq_handler_transmit_ready(struct modem_backend_uart *backend) in modem_backend_uart_isr_irq_handler_transmit_ready() argument
71 if (ring_buf_is_empty(&backend->isr.transmit_rb) == true) { in modem_backend_uart_isr_irq_handler_transmit_ready()
72 uart_irq_tx_disable(backend->uart); in modem_backend_uart_isr_irq_handler_transmit_ready()
[all …]
Dmodem_backend_uart_async.c23 static bool modem_backend_uart_async_is_uart_stopped(struct modem_backend_uart *backend) in modem_backend_uart_async_is_uart_stopped() argument
25 if (!atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped()
27 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped()
29 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped()
31 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped()
39 static bool modem_backend_uart_async_is_open(struct modem_backend_uart *backend) in modem_backend_uart_async_is_open() argument
41 return atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_open()
45 static uint32_t get_receive_buf_length(struct modem_backend_uart *backend) in get_receive_buf_length() argument
47 return ring_buf_size_get(&backend->async.receive_rb); in get_receive_buf_length()
53 struct modem_backend_uart *backend = (struct modem_backend_uart *) user_data; in modem_backend_uart_async_event_handler() local
[all …]
Dmodem_backend_tty.c25 struct modem_backend_tty *backend = (struct modem_backend_tty *)p1; in modem_backend_tty_routine() local
31 pd.fd = backend->tty_fd; in modem_backend_tty_routine()
35 while (atomic_test_bit(&backend->state, MODEM_BACKEND_TTY_STATE_RUN_BIT)) { in modem_backend_tty_routine()
45 modem_pipe_notify_receive_ready(&backend->pipe); in modem_backend_tty_routine()
54 struct modem_backend_tty *backend = (struct modem_backend_tty *)data; in modem_backend_tty_open() local
56 if (atomic_test_and_set_bit(&backend->state, MODEM_BACKEND_TTY_STATE_RUN_BIT)) { in modem_backend_tty_open()
60 backend->tty_fd = open(backend->tty_path, (O_RDWR | O_NONBLOCK), 0644); in modem_backend_tty_open()
61 if (backend->tty_fd < 0) { in modem_backend_tty_open()
65 k_thread_create(&backend->thread, backend->stack, backend->stack_size, in modem_backend_tty_open()
66 modem_backend_tty_routine, backend, NULL, NULL, in modem_backend_tty_open()
[all …]
Dmodem_backend_uart.c16 struct modem_backend_uart *backend = CONTAINER_OF( in modem_backend_uart_receive_ready_handler() local
19 modem_pipe_notify_receive_ready(&backend->pipe); in modem_backend_uart_receive_ready_handler()
24 struct modem_backend_uart *backend = in modem_backend_uart_transmit_idle_handler() local
27 modem_pipe_notify_transmit_idle(&backend->pipe); in modem_backend_uart_transmit_idle_handler()
30 struct modem_pipe *modem_backend_uart_init(struct modem_backend_uart *backend, in modem_backend_uart_init() argument
40 memset(backend, 0x00, sizeof(*backend)); in modem_backend_uart_init()
41 backend->uart = config->uart; in modem_backend_uart_init()
42 k_work_init_delayable(&backend->receive_ready_work, in modem_backend_uart_init()
44 k_work_init(&backend->transmit_idle_work, modem_backend_uart_transmit_idle_handler); in modem_backend_uart_init()
47 if (modem_backend_uart_async_is_supported(backend)) { in modem_backend_uart_init()
[all …]
/Zephyr-latest/include/zephyr/logging/
Dlog_backend.h64 void (*process)(const struct log_backend *const backend,
67 void (*dropped)(const struct log_backend *const backend, uint32_t cnt);
68 void (*panic)(const struct log_backend *const backend);
69 void (*init)(const struct log_backend *const backend);
70 int (*is_ready)(const struct log_backend *const backend);
71 int (*format_set)(const struct log_backend *const backend,
74 void (*notify)(const struct log_backend *const backend,
137 static inline void log_backend_init(const struct log_backend *const backend) in log_backend_init() argument
139 __ASSERT_NO_MSG(backend != NULL); in log_backend_init()
140 if (backend->api->init) { in log_backend_init()
[all …]
/Zephyr-latest/subsys/ipc/ipc_service/
Dipc_service.c19 const struct ipc_service_backend *backend; in ipc_service_open_instance() local
26 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_open_instance()
28 if (!backend) { in ipc_service_open_instance()
33 if (!backend->open_instance) { in ipc_service_open_instance()
38 return backend->open_instance(instance); in ipc_service_open_instance()
43 const struct ipc_service_backend *backend; in ipc_service_close_instance() local
50 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_close_instance()
52 if (!backend) { in ipc_service_close_instance()
57 if (!backend->close_instance) { in ipc_service_close_instance()
62 return backend->close_instance(instance); in ipc_service_close_instance()
[all …]
/Zephyr-latest/subsys/tracing/include/
Dtracing_backend.h32 void (*output)(const struct tracing_backend *backend,
62 const struct tracing_backend *backend) in tracing_backend_init() argument
64 if (backend && backend->api && backend->api->init) { in tracing_backend_init()
65 backend->api->init(); in tracing_backend_init()
77 const struct tracing_backend *backend, in tracing_backend_output() argument
80 if (backend && backend->api) { in tracing_backend_output()
81 backend->api->output(backend, data, length); in tracing_backend_output()
95 STRUCT_SECTION_FOREACH(tracing_backend, backend) { in tracing_backend_get()
96 if (strcmp(backend->name, name) == 0) { in tracing_backend_get()
97 return backend; in tracing_backend_get()
/Zephyr-latest/tests/subsys/logging/log_switch_format/src/
Dmain.c45 const struct log_backend *backend; in test_log_switch_format_success_case() local
57 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case()
59 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case()
66 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case()
68 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case()
75 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case()
77 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case()
86 const struct log_backend *backend; in test_log_switch_format_set() local
93 backend = log_backend_get_by_name(backend_name); in test_log_switch_format_set()
94 zassert_is_null(backend, "Backend unexpectedly found"); in test_log_switch_format_set()
[all …]
/Zephyr-latest/tests/subsys/modem/modem_pipe/src/
Dmain.c49 struct modem_backend_fake *backend = in modem_backend_fake_opened_handler() local
52 modem_pipe_notify_opened(&backend->pipe); in modem_backend_fake_opened_handler()
57 struct modem_backend_fake *backend = data; in modem_backend_fake_open() local
59 backend->open_called = true; in modem_backend_fake_open()
61 if (backend->synchronous) { in modem_backend_fake_open()
62 modem_pipe_notify_opened(&backend->pipe); in modem_backend_fake_open()
64 k_work_schedule(&backend->opened_dwork, TEST_MODEM_PIPE_NOTIFY_TIMEOUT); in modem_backend_fake_open()
73 struct modem_backend_fake *backend = in modem_backend_fake_transmit_idle_handler() local
76 modem_pipe_notify_transmit_idle(&backend->pipe); in modem_backend_fake_transmit_idle_handler()
81 struct modem_backend_fake *backend = data; in modem_backend_fake_transmit() local
[all …]
/Zephyr-latest/subsys/logging/
Dlog_cmds.c18 const struct log_backend *backend,
50 STRUCT_SECTION_FOREACH(log_backend, backend) { in backend_find()
51 if (strncmp(name, backend->name, slen) == 0) { in backend_find()
52 return backend; in backend_find()
90 const struct log_backend *backend = backend_find(name); in shell_backend_cmd_execute() local
92 if (backend != NULL) { in shell_backend_cmd_execute()
93 func(sh, backend, argc, argv); in shell_backend_cmd_execute()
104 const struct log_backend *backend, in log_status() argument
111 if (backend && !log_backend_is_active(backend)) { in log_status()
121 if (IS_ENABLED(CONFIG_LOG_FRONTEND) && !backend) { in log_status()
[all …]
DKconfig.template.log_format_config4 choice "LOG_BACKEND_$(backend)_OUTPUT"
6 default LOG_BACKEND_$(backend)_OUTPUT_TEXT
8 config LOG_BACKEND_$(backend)_OUTPUT_TEXT
14 config LOG_BACKEND_$(backend)_OUTPUT_SYST
18 When enabled backend is used to output syst format logs.
20 config LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY
28 config LOG_BACKEND_$(backend)_OUTPUT_CUSTOM
40 config LOG_BACKEND_$(backend)_OUTPUT_DEFAULT
42 default 0 if LOG_BACKEND_$(backend)_OUTPUT_TEXT
43 default 1 if LOG_BACKEND_$(backend)_OUTPUT_SYST
[all …]
/Zephyr-latest/subsys/shell/
Dshell_log_backend.c21 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()
[all …]
/Zephyr-latest/tests/subsys/logging/log_api/src/
Dmock_backend.c11 void mock_log_backend_reset(const struct log_backend *backend) in mock_log_backend_reset() argument
13 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_reset()
23 void mock_log_backend_check_enable(const struct log_backend *backend) in mock_log_backend_check_enable() argument
25 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_check_enable()
30 void mock_log_backend_check_disable(const struct log_backend *backend) in mock_log_backend_check_disable() argument
32 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_check_disable()
37 void mock_log_backend_dummy_record(const struct log_backend *backend, int cnt) in mock_log_backend_dummy_record() argument
39 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_dummy_record()
48 void mock_log_backend_drop_record(const struct log_backend *backend, int cnt) in mock_log_backend_drop_record() argument
50 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_drop_record()
[all …]
Dmock_backend.h44 void mock_log_backend_reset(const struct log_backend *backend);
45 void mock_log_backend_check_enable(const struct log_backend *backend);
46 void mock_log_backend_check_disable(const struct log_backend *backend);
48 void mock_log_backend_dummy_record(const struct log_backend *backend, int cnt);
50 void mock_log_backend_drop_record(const struct log_backend *backend, int cnt);
52 void mock_log_backend_generic_record(const struct log_backend *backend,
61 static inline void mock_log_backend_record(const struct log_backend *backend, in mock_log_backend_record() argument
68 mock_log_backend_generic_record(backend, source_id, domain_id, level, in mock_log_backend_record()
72 void mock_log_backend_validate(const struct log_backend *backend, bool panic);
/Zephyr-latest/tests/subsys/logging/log_syst/src/
Dmain.c134 const struct log_backend *backend; in before() local
137 backend = log_backend_get(i); in before()
138 if (backend == &log_backend_mock) { in before()
139 log_backend_enable(backend, NULL, 4); in before()
141 log_backend_disable(backend); in before()
148 const struct log_backend *backend; in after() local
151 backend = log_backend_get(i); in after()
152 if (backend == &log_backend_mock) { in after()
153 log_backend_disable(backend); in after()
155 log_backend_enable(backend, backend->cb->ctx, 4); in after()
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_semihost.c30 static void panic(struct log_backend const *const backend) in panic() argument
32 ARG_UNUSED(backend); in panic()
37 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument
39 ARG_UNUSED(backend); in dropped()
44 static void process(const struct log_backend *const backend, union log_msg_generic *msg) in process() argument
46 ARG_UNUSED(backend); in process()
55 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
57 ARG_UNUSED(backend); in format_set()
Dlog_backend_efi_console.c41 static void process(const struct log_backend *const backend, in process() argument
55 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
61 static void log_backend_efi_init(struct log_backend const *const backend) in log_backend_efi_init() argument
63 ARG_UNUSED(backend); in log_backend_efi_init()
67 static void panic(struct log_backend const *const backend) in panic() argument
73 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument
75 ARG_UNUSED(backend); in dropped()
DKconfig.semihost5 bool "Semihost as backend"
9 Enable backend in semihost (using host stdout)
20 bool "Autostart semihost backend"
23 Enable semihost backend to start automatically.
25 backend = SEMIHOST
26 backend-str = semihost
Dlog_backend_spinel.c32 static void process(const struct log_backend *const backend, in process() argument
43 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
49 static void log_backend_spinel_init(struct log_backend const *const backend) in log_backend_spinel_init() argument
54 static void panic(struct log_backend const *const backend) in panic() argument
56 ARG_UNUSED(backend); in panic()
60 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument
62 ARG_UNUSED(backend); in dropped()
DKconfig.native_posix5 bool "Native backend"
10 Enable backend in native_posix
14 backend = NATIVE_POSIX
15 backend-str = native_posix
DKconfig.uart5 bool "UART backend"
10 When enabled backend is using UART to output logs.
25 RAM before log_output_flush is automatically called on the UART backend. The buffer
32 bool "Automatically start UART backend"
35 When enabled automatically start the UART logging backend on
37 the backend manually using log_backend_enable().
39 backend = UART
40 backend-str = uart
57 Dictionary-based logging output in hexadecimal. Supported only for UART backend.
/Zephyr-latest/subsys/debug/gdbstub/
DKconfig16 prompt "GDB backend"
19 bool "Use serial backend"
22 Use serial as backend for GDB
25 bool "Use a custom backend"
27 Use a custom backend for GDB
32 int "GDB backend send/receive buffer size (in bytes)"
36 for GDB backend. This needs to be big enough to hold one
40 bool "GDB backend extra logging"
42 Enable extra debug logging for the GDB backend, including
/Zephyr-latest/subsys/ipc/ipc_service/backends/
DKconfig5 int "Initialization priority of modules registering IPC backend"
8 The backend must be registered before the endpoint register.
11 bool "OpenAMP RPMSG backend with static VRINGs"
20 bool "ICMSG backend with SPSC packet buffer"
26 Chosing this backend results in single endpoint implementation based
30 bool "ICMSG backend with multi-endpoint support in initiator role"
36 Chosing this backend results in multi endpoint implementation based
41 bool "ICMSG backend with multi-endpoint support in follower role"
47 Chosing this backend results in multi endpoint implementation based
/Zephyr-latest/tests/subsys/logging/log_switch_format/
DKconfig5 bool "MOCK backend"
8 When enabled MOCK backend is used for logging. It is
14 backend = MOCK
15 backend-str = mock
21 string "DEFAULT backend"
24 Default value for the name of the backend enabled.
/Zephyr-latest/samples/net/syslog_net/src/
Dmain.c37 const struct log_backend *backend = log_backend_net_get(); in main() local
39 if (!log_backend_is_active(backend)) { in main()
50 log_backend_init(backend); in main()
51 log_backend_enable(backend, backend->cb->ctx, CONFIG_LOG_MAX_LEVEL); in main()

123456789