/Zephyr-Core-3.7.0/include/zephyr/logging/ |
D | log_backend.h | 21 * @brief Logger backend interface 22 * @defgroup log_backend Logger backend interface 32 * @brief Backend events 48 /** @brief Maximum number of backend events */ 53 * @brief Argument(s) for backend events. 61 * @brief Logger backend API. 64 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); [all …]
|
D | log_backend_ble.h | 12 * @brief Raw adv UUID data to add the ble backend for the use with apps 22 * @brief Hook for application to know when the ble backend 24 * @param backend_status True if the backend is enabled or false if disabled 32 * logger backend. 33 * @details The BLE logger backend is enabled or disabled auomatically by 35 * Logger backend service. 37 * @param hook The hook that will be called when the status of the backend changes
|
/Zephyr-Core-3.7.0/subsys/modem/backends/ |
D | modem_backend_uart_isr.c | 14 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 …]
|
D | modem_backend_uart_async.c | 23 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 …]
|
D | modem_backend_tty.c | 7 #include <zephyr/modem/backend/tty.h> 25 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() [all …]
|
D | modem_backend_uart.c | 10 #include <zephyr/modem/backend/uart.h> 16 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() [all …]
|
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/ |
D | ipc_service.c | 19 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() 29 LOG_ERR("Invalid backend configuration"); in ipc_service_open_instance() 33 if (!backend->open_instance) { in ipc_service_open_instance() 34 /* maybe not needed on backend */ 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() [all …]
|
/Zephyr-Core-3.7.0/subsys/tracing/include/ |
D | tracing_backend.h | 19 * @brief Tracing backend 20 * @defgroup Tracing_backend Tracing backend 28 * @brief Tracing backend API. 32 void (*output)(const struct tracing_backend *backend, 37 * @brief Tracing backend structure. 48 * @param _api Tracing backend API. 57 * @brief Initialize tracing backend. 59 * @param backend Pointer to tracing_backend instance. 62 const struct tracing_backend *backend) in tracing_backend_init() argument 64 if (backend && backend->api && backend->api->init) { in tracing_backend_init() [all …]
|
/Zephyr-Core-3.7.0/subsys/logging/ |
D | Kconfig.template.log_format_config | 4 choice "LOG_BACKEND_$(backend)_OUTPUT" 5 prompt "Backend Output Mode" 6 default LOG_BACKEND_$(backend)_OUTPUT_TEXT 8 config LOG_BACKEND_$(backend)_OUTPUT_TEXT 13 config LOG_BACKEND_$(backend)_OUTPUT_SYST 17 When enabled backend is used to output syst format logs. 19 config LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY 25 Backend is in dictionary-based logging output mode. 27 config LOG_BACKEND_$(backend)_OUTPUT_CUSTOM 39 config LOG_BACKEND_$(backend)_OUTPUT_DEFAULT [all …]
|
D | log_cmds.c | 18 const struct log_backend *backend, 39 * @brief Function for finding backend instance with given name. 41 * @param p_name Name of the backend instance. 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() 63 shell_error(sh, "Shell log backend not initialized."); in shell_state_precheck() 71 * @brief Function for executing command on given backend. 78 /* Based on the structure of backend commands, name of the backend can in shell_backend_cmd_execute() 79 * be found at -1 (log backend <name> command). in shell_backend_cmd_execute() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/logging/log_switch_format/src/ |
D | main.c | 45 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-Core-3.7.0/include/zephyr/mgmt/ec_host_cmd/ |
D | backend.h | 40 * @brief Context for host command backend and handler to pass rx data. 45 * CONFIG_EC_HOST_CMD_HANDLER_RX_BUFFER_SIZE > 0. Otherwise, the backend should provide 50 /** Number of bytes written to @a buf by backend. */ 57 * @brief Context for host command backend and handler to pass tx data 62 * CONFIG_EC_HOST_CMD_HANDLER_TX_BUFFER_SIZE > 0. Otherwise, the backend should provide 74 * @brief Initialize a host command backend 76 * This routine initializes a host command backend. It includes initialization 80 * @param[in] backend Pointer to the backend structure for the driver instance. 83 * assigned by the backend. 85 * assigned by the backend. These objects are used to send data by the [all …]
|
/Zephyr-Core-3.7.0/subsys/debug/gdbstub/ |
D | Kconfig | 16 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-Core-3.7.0/include/zephyr/shell/ |
D | shell_log_backend.h | 21 /** @brief Shell log backend states. */ 29 /** @brief Shell log backend control block (RW data). */ 35 /** @brief Shell log backend instance structure (RO data). */ 37 const struct log_backend *backend; member 45 /** @brief Shell log backend message structure. */ 55 * @brief Macro for creating instance of shell log backend. 65 * @brief Macro for retrieving pointer to the instance of shell log backend. 86 .backend = &_name##_backend, \ 100 /** @brief Enable shell log backend. 102 * @param backend Shell log backend instance. [all …]
|
D | shell_backend.h | 19 * @brief Get backend. 21 * @param[in] idx Pointer to the backend instance. 23 * @return Pointer to the backend instance. 27 const struct shell *backend; in shell_backend_get() local 29 STRUCT_SECTION_GET(shell, idx, &backend); in shell_backend_get() 31 return backend; in shell_backend_get() 49 * @brief Get backend by name. 51 * @param[in] backend_name Name of the backend as defined by the SHELL_DEFINE. 53 * @retval Pointer to the backend instance if found, NULL if backend is not found.
|
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/backends/ |
D | Kconfig | 5 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-Core-3.7.0/subsys/logging/backends/ |
D | Kconfig.uart | 5 bool "UART backend" 11 When enabled backend is using UART to output logs. 26 RAM before log_output_flush is automatically called on the UART backend. The buffer 33 bool "Automatically start UART backend" 36 When enabled automatically start the UART logging backend on 38 the backend manually using log_backend_enable(). 40 backend = UART 41 backend-str = uart 58 Dictionary-based logging output in hexadecimal. Supported only for UART backend.
|
D | Kconfig.spinel | 5 bool "OpenThread dedicated Spinel protocol backend" 10 When enabled, backend will use OpenThread dedicated SPINEL protocol for logging. 12 Backend should be enabled only to OpenThread purposes and when UART backend is disabled 23 backend = SPINEL 24 backend-str = spinel
|
D | Kconfig.fs | 5 bool "File system backend" 10 When enabled, backend is using the configured file system to output logs. 17 backend = FS 18 backend-str = fs 22 bool "Automatically start fs backend" 25 When enabled automatically start the file system backend on 32 When enabled backend overwrites oldest log files.
|
/Zephyr-Core-3.7.0/tests/subsys/modem/modem_pipe/src/ |
D | main.c | 24 /* Fake modem_pipe backend */ 49 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() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/logging/log_switch_format/ |
D | Kconfig | 5 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-Core-3.7.0/subsys/shell/ |
D | shell_log_backend.c | 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() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/logging/log_api/src/ |
D | mock_backend.c | 11 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 …]
|
D | mock_backend.h | 44 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-Core-3.7.0/doc/services/device_mgmt/ |
D | ec_host_cmd.rst | 18 * Backend 22 The backend is a layer between a peripheral driver and the general handler. It is responsible for 25 The general handler validates data from the backend e.g. check sizes, checksum, etc. If the command 33 host. SHI does not have API itself, thus the backend and peripheral driver layers are combined into 34 one backend layer. 42 is enabled and disabled per transaction). It forces implementing the SPI driver within a backend, 43 as it is done for SHI. That means a SPI backend has to be implemented per chip family. However, it 67 The STM32 SPI host command backend driver supports the :dtcompatible:`st,stm32h7-spi` and 80 For the SPI, it is required to set the backend chosen node ``zephyr,host-cmd-spi-backend``. 82 The supported backend and peripheral drivers: [all …]
|