Home
last modified time | relevance | path

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

1234

/subsys/modem/backends/
A Dmodem_backend_uart_isr.c30 receive_rb = &backend->isr.receive_rdb[backend->isr.receive_rdb_used]; in modem_backend_uart_isr_irq_handler_receive_ready()
72 uart_irq_tx_disable(backend->uart); in modem_backend_uart_isr_irq_handler_transmit_ready()
115 uart_irq_rx_enable(backend->uart); in modem_backend_uart_isr_open()
116 uart_irq_tx_enable(backend->uart); in modem_backend_uart_isr_open()
158 uart_irq_rx_enable(backend->uart); in advertise_receive_buf_stats()
165 return backend->isr.transmit_buf_put_limit < get_transmit_buf_length(backend); in modem_backend_uart_isr_transmit_buf_above_limit()
179 uart_irq_tx_enable(backend->uart); in modem_backend_uart_isr_transmit()
215 uart_irq_rx_enable(backend->uart); in modem_backend_uart_isr_receive()
283 backend); in modem_backend_uart_isr_init()
285 modem_pipe_init(&backend->pipe, backend, &modem_backend_uart_isr_api); in modem_backend_uart_isr_init()
[all …]
A Dmodem_backend_uart_async.c77 uart_rx_buf_rsp(backend->uart, backend->async.receive_bufs[0], in modem_backend_uart_async_event_handler()
78 backend->async.receive_buf_size); in modem_backend_uart_async_event_handler()
85 uart_rx_buf_rsp(backend->uart, backend->async.receive_bufs[1], in modem_backend_uart_async_event_handler()
86 backend->async.receive_buf_size); in modem_backend_uart_async_event_handler()
167 ret = uart_rx_enable(backend->uart, backend->async.receive_bufs[0], in modem_backend_uart_async_open()
223 ret = uart_tx(backend->uart, backend->async.common.transmit_buf, bytes_to_transmit, in modem_backend_uart_async_transmit()
268 uart_tx_abort(backend->uart); in modem_backend_uart_async_close()
269 uart_rx_disable(backend->uart); in modem_backend_uart_async_close()
283 backend) == 0; in modem_backend_uart_async_is_supported()
335 modem_pipe_init(&backend->pipe, backend, &modem_backend_uart_async_api); in modem_backend_uart_async_init()
[all …]
A Dmodem_backend_uart_async_hwfc.c242 return (backend->async.rx_buf_size - sizeof(struct rx_buf_t)) * backend->async.rx_buf_count; in get_receive_buf_size()
280 ret = uart_tx(backend->uart, backend->async.common.transmit_buf, bytes_to_transmit, in modem_backend_uart_async_hwfc_transmit()
319 if (k_msgq_get(&backend->async.rx_queue, &backend->async.rx_event, in modem_backend_uart_async_hwfc_receive()
332 rx_buf_unref(&backend->async, backend->async.rx_event.buf); in modem_backend_uart_async_hwfc_receive()
351 uart_tx_abort(backend->uart); in modem_backend_uart_async_hwfc_close()
372 backend) == 0; in modem_backend_uart_async_is_supported()
420 backend->async.rx_buf_size = buf_size / backend->async.rx_buf_count; in modem_backend_uart_async_init()
425 backend->async.rx_buf_size, backend->async.rx_buf_count); in modem_backend_uart_async_init()
429 k_msgq_init(&backend->async.rx_queue, (char *)&backend->async.rx_queue_buf, in modem_backend_uart_async_init()
437 modem_pipe_init(&backend->pipe, backend, &modem_backend_uart_async_api); in modem_backend_uart_async_init()
[all …]
A Dmodem_backend_tty.c31 pd.fd = backend->tty_fd; in modem_backend_tty_routine()
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()
101 close(backend->tty_fd); in modem_backend_tty_close()
116 __ASSERT_NO_MSG(backend != NULL); in modem_backend_tty_init()
120 memset(backend, 0x00, sizeof(*backend)); in modem_backend_tty_init()
122 backend->stack = config->stack; in modem_backend_tty_init()
124 atomic_set(&backend->state, 0); in modem_backend_tty_init()
125 modem_pipe_init(&backend->pipe, backend, &modem_backend_tty_api); in modem_backend_tty_init()
[all …]
A 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()
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()
47 if (modem_backend_uart_async_is_supported(backend)) { in modem_backend_uart_init()
51 return &backend->pipe; in modem_backend_uart_init()
56 modem_backend_uart_isr_init(backend, config); in modem_backend_uart_init()
[all …]
/subsys/ipc/ipc_service/
A Dipc_service.c28 if (!backend) { in ipc_service_open_instance()
52 if (!backend) { in ipc_service_close_instance()
78 if (!backend || !backend->register_endpoint) { in ipc_service_register_endpoint()
107 if (!backend || !backend->deregister_endpoint) { in ipc_service_deregister_endpoint()
139 if (!backend || !backend->send) { in ipc_service_send()
163 if (!backend) { in ipc_service_get_tx_buffer_size()
192 if (!backend) { in ipc_service_get_tx_buffer()
197 if (!backend->send_nocopy || !backend->get_tx_buffer) { in ipc_service_get_tx_buffer()
221 if (!backend) { in ipc_service_drop_tx_buffer()
250 if (!backend) { in ipc_service_send_nocopy()
[all …]
/subsys/logging/
A Dlog_cmds.c18 const struct log_backend *backend,
52 return backend; in backend_find()
92 if (backend != NULL) { in shell_backend_cmd_execute()
93 func(sh, backend, argc, argv); in shell_backend_cmd_execute()
111 if (backend && !log_backend_is_active(backend)) { in log_status()
180 if (backend && !backend->cb->active) { in filters_set()
345 log_backend_init(backend); in log_go()
352 log_backend_enable(backend, backend->cb->ctx, CONFIG_LOG_MAX_LEVEL); in log_go()
355 log_backend_activate(backend, backend->cb->ctx); in log_go()
391 backend->name, in cmd_log_backends_list()
[all …]
A 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
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
44 default 2 if LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY
[all …]
A Dlog_core.c212 failed_backend = backend; in log_format_set_all_active_backends()
299 id += backend - log_backend_get(0); in log_core_init()
300 log_backend_id_set(backend, id); in log_core_init()
313 if (backend->autostart && (log_backend_is_ready(backend) == 0)) { in activate_foreach_backend()
315 log_backend_enable(backend, in activate_foreach_backend()
316 backend->cb->ctx, in activate_foreach_backend()
346 if (backend->autostart) { in z_log_init()
347 log_backend_init(backend); in z_log_init()
353 log_backend_enable(backend, in z_log_init()
354 backend->cb->ctx, in z_log_init()
[all …]
A Dlog_mgmt.c480 int id = (backend == NULL) ? -1 : log_backend_id_get(backend); in z_impl_log_filter_set()
522 log_filter_set(backend, d, s, level); in link_filter_set()
535 log_filter_set(backend, 0, s, level); in backend_filter_set()
552 return backend; in log_backend_get_by_name()
563 backend->cb->level = level; in log_backend_enable()
564 backend_filter_set(backend, level); in log_backend_enable()
565 log_backend_activate(backend, ctx); in log_backend_enable()
572 if (log_backend_is_active(backend)) { in log_backend_disable()
576 log_backend_deactivate(backend); in log_backend_disable()
582 int id = (backend == NULL) ? -1 : log_backend_id_get(backend); in log_filter_get()
[all …]
/subsys/tracing/include/
A 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()
/subsys/shell/
A 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()
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()
52 log_backend_disable(backend->backend); in z_shell_log_backend_disable()
59 (const struct shell *)backend->backend->cb->ctx; in z_shell_log_backend_process()
83 static void panic(const struct log_backend *const backend) in panic() argument
[all …]
/subsys/logging/backends/
A 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()
A 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()
A 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.
A Dlog_backend_ble.c144 static void process(const struct log_backend *const backend, union log_msg_generic *msg) in process() argument
146 ARG_UNUSED(backend); in process()
158 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
160 ARG_UNUSED(backend); in format_set()
165 static void init_ble(struct log_backend const *const backend) in init_ble() argument
167 ARG_UNUSED(backend); in init_ble()
171 static void panic(struct log_backend const *const backend) in panic() argument
173 ARG_UNUSED(backend); in panic()
185 static int backend_ready(const struct log_backend *const backend) in backend_ready() argument
187 ARG_UNUSED(backend); in backend_ready()
A 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()
A 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
A Dlog_backend_ws.c146 static void process(const struct log_backend *const backend, in process() argument
167 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
175 const struct log_backend *backend = log_backend_ws_get(); in log_backend_ws_start() local
177 if (!log_backend_is_active(backend)) { in log_backend_ws_start()
178 log_backend_activate(backend, backend->cb->ctx); in log_backend_ws_start()
204 static void init_ws(struct log_backend const *const backend) in init_ws() argument
206 ARG_UNUSED(backend); in init_ws()
211 static void panic(struct log_backend const *const backend) in panic() argument
A DKconfig.fs5 bool "File system backend"
9 When enabled, backend is using the configured file system to output logs.
16 backend = FS
17 backend-str = fs
21 bool "Automatically start fs backend"
24 When enabled automatically start the file system backend on
31 When enabled backend overwrites oldest log files.
39 backend appends to it.
40 When disabled backend creates a new log file on every startup.
A Dlog_backend_xtensa_sim.c40 static void process(const struct log_backend *const backend, in process() argument
50 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument
56 static void panic(struct log_backend const *const backend) in panic() argument
61 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument
63 ARG_UNUSED(backend); in dropped()
A Dlog_backend_mqtt.c58 static void mqtt_backend_process(const struct log_backend *const backend, in mqtt_backend_process() argument
69 log_output_ctx_set(&log_output_mqtt, backend->cb->ctx); in mqtt_backend_process()
74 static int mqtt_backend_format_set(const struct log_backend *const backend, uint32_t log_type) in mqtt_backend_format_set() argument
76 ARG_UNUSED(backend); in mqtt_backend_format_set()
81 static void mqtt_backend_panic(const struct log_backend *const backend) in mqtt_backend_panic() argument
83 ARG_UNUSED(backend); in mqtt_backend_panic()
A DKconfig.native_posix5 bool "Native backend"
10 Enable backend in native_posix
14 backend = NATIVE_POSIX
15 backend-str = native_posix
/subsys/ipc/ipc_service/backends/
A 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 Choosing this backend results in single endpoint implementation based
30 bool "ICMSG backend with multi-endpoint support in initiator role"
36 Choosing this backend results in multi endpoint implementation based
41 bool "ICMSG backend with multi-endpoint support in follower role"
47 Choosing this backend results in multi endpoint implementation based
/subsys/debug/gdbstub/
A 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

Completed in 36 milliseconds

1234