/Zephyr-latest/drivers/modem/ |
D | modem_receiver.h | 11 * SPDX-License-Identifier: Apache-2.0 44 * @brief Gets receiver context by id. 46 * @param id: receiver context id. 48 * @retval Receiver context or NULL. 55 * @param ctx: receiver context. 56 * @param buf: buffer to copy the received data to. 57 * @param size: buffer size. 63 uint8_t *buf, size_t size, size_t *bytes_read); 66 * @brief Sends the data over specified receiver context. 68 * @param ctx: receiver context. [all …]
|
D | modem_receiver.c | 11 * SPDX-License-Identifier: Apache-2.0 31 * @brief Finds receiver context which manages provided device. 33 * @param dev: device used by the receiver context. 35 * @retval Receiver context or NULL. 42 if (contexts[i] && contexts[i]->uart_dev == dev) { in context_from_dev() 51 * @brief Persists receiver context if there is a free place. 56 * @param ctx: receiver context to persist. 71 return -ENOMEM; in mdm_receiver_get() 79 * @param ctx: receiver context. 88 __ASSERT(ctx->uart_dev, "invalid ctx device"); in mdm_receiver_flush() [all …]
|
D | modem_context.h | 2 * @brief Modem context header file. 4 * A modem context driver allowing application to handle all 11 * SPDX-License-Identifier: Apache-2.0 30 int (*read)(struct modem_iface *iface, uint8_t *buf, size_t size, 32 int (*write)(struct modem_iface *iface, const uint8_t *buf, size_t size); 79 * @param buf: Buffer to store IP in string form 80 * @param buf_size: buffer size 97 * @brief Gets modem context by id. 99 * @param id: modem context id. 101 * @retval modem context or NULL. [all …]
|
D | modem_iface_uart_interrupt.c | 2 * @brief interface for modem context 4 * UART-based modem interface implementation for modem context driver. 10 * SPDX-License-Identifier: Apache-2.0 35 while (uart_fifo_read(iface->dev, &c, 1) > 0) { in modem_iface_uart_flush() 43 * @note Fills interfaces ring buffer with received data. 44 * When ring buffer is full the data is discarded. 62 /* lookup the modem context */ in modem_iface_uart_isr() 64 if (!ctx || !ctx->iface.iface_data) { in modem_iface_uart_isr() 68 data = (struct modem_iface_uart_data *)(ctx->iface.iface_data); in modem_iface_uart_isr() 70 while (uart_irq_update(ctx->iface.dev) && in modem_iface_uart_isr() [all …]
|
/Zephyr-latest/include/zephyr/storage/ |
D | stream_flash.h | 5 * SPDX-License-Identifier: Apache-2.0 38 * @details Functions of this type are invoked with a buffer containing 41 * instance by using a SHA function). The write buffer 'buf' provided in 42 * stream_flash_init is used as a read buffer for this purpose. 51 * @brief Structure for stream flash context 57 uint8_t *buf; /* Write buffer */ 58 size_t buf_len; /* Length of write buffer */ 70 size_t write_block_size; /* Offset/size device write alignment */ 75 * @brief Initialize context needed for stream writes to flash. 77 * @param ctx context to be initialized [all …]
|
/Zephyr-latest/subsys/ipc/ipc_service/lib/ |
D | Kconfig.icmsg | 2 # SPDX-License-Identifier: Apache-2.0 13 are sent from single context. 39 process incoming data through the system workqueue context, and 43 workqueue context. 45 context. 53 int "Size of RX work queue stack" 56 Size of stack used by work queue RX thread. This work queue is 62 default -1 63 range -256 -1 74 range -256 -1 if !IPC_SERVICE_BACKEND_ICMSG_WQ_ENABLE [all …]
|
/Zephyr-latest/doc/kernel/data_structures/ |
D | spsc_pbuf.rst | 3 Single Producer Single Consumer Packet Buffer 6 A :dfn:`Single Producer Single Consumer Packet Buffer (SPSC_PBUF)` is a circular 7 buffer, whose contents are stored in first-in-first-out order. Variable size 8 packets are stored in the buffer. Packet buffer works under assumption that there 9 is a single context that produces packets and a single context that consumes the 14 Packets are added to the buffer using :c:func:`spsc_pbuf_write` which copies a 15 data into the buffer. If the buffer is full error is returned. 17 Packets are copied out of the buffer using :c:func:`spsc_pbuf_read`.
|
/Zephyr-latest/subsys/canbus/isotp/ |
D | Kconfig | 1 # ISO-TP configuration options 4 # SPDX-License-Identifier: Apache-2.0 7 bool "ISO-TP Transport [EXPERIMENTAL]" 18 module-str = ISOTP 34 Timeout for the reception of the next FC frame. ISO 15765-2: 1000ms 42 ISO 15765-2: 1000ms 50 ISO 15765-2: 1000ms 73 Each data buffer will occupy ISOTP_RX_BUF_SIZE + smallish 77 int "Size of one buffer data block" 81 This value defines the size of a single block in the pool. The number of [all …]
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_internal.h | 4 * SPDX-License-Identifier: Apache-2.0 34 /**@brief Minimum mandatory size of fixed header. */ 37 /**@brief Maximum size of the fixed header. Remaining length size is 4 in this 72 /**@brief Maximum payload size of MQTT packet. */ 75 /**@brief Computes total size needed to pack a UTF8 string. */ 76 #define GET_UT8STR_BUFFER_SIZE(STR) (sizeof(uint16_t) + (STR)->size) 78 /**@brief Computes total size needed to pack a binary stream. */ 79 #define GET_BINSTR_BUFFER_SIZE(STR) ((STR)->len) 82 #define MQTT_SET_STATE(CLIENT, STATE) ((CLIENT)->internal.state |= (STATE)) 86 ((CLIENT)->internal.state = (STATE)) [all …]
|
/Zephyr-latest/subsys/net/lib/websocket/ |
D | websocket_internal.h | 10 * SPDX-License-Identifier: Apache-2.0 24 #define WS_MAGIC "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" 41 /* external buffer */ 43 /* size of external buffer */ 44 size_t size; member 45 /* data length in external buffer */ 59 * peer sent proper Sec-WebSocket-Accept key. 68 /** Internal lock for protecting this context from multiple access. 85 /** Buffer for receiving from TCP socket. 86 * This buffer used for HTTP handshakes and Websocket packet parser. [all …]
|
/Zephyr-latest/include/zephyr/canbus/ |
D | isotp.h | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Public API for ISO-TP (ISO 15765-2:2016) 11 * ISO-TP is a transport protocol for CAN (Controller Area Network) 18 * @brief CAN ISO-TP Protocol 19 * @defgroup can_isotp CAN ISO-TP Protocol 30 * BS Block Size 31 * CAN_DL CAN LL data size 44 * RX_DL CAN RX LL data size 45 * TX_DL CAN TX LL data size 50 * N_Result according to ISO 15765-2:2016 [all …]
|
/Zephyr-latest/include/zephyr/logging/ |
D | log_output.h | 4 * SPDX-License-Identifier: Apache-2.0 76 * @param buf The buffer data. 77 * @param size The buffer size. 78 * @param ctx User context. 86 typedef int (*log_output_func_t)(uint8_t *buf, size_t size, void *ctx); 100 size_t size; member 124 * @param _buf Pointer to the output buffer. 125 * @param _size Size of the output buffer. 133 .size = _size, \ 138 * Function is using provided context with the buffer and output function to [all …]
|
/Zephyr-latest/dts/bindings/crypto/ |
D | nuvoton,npcx-sha.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nuvoton,npcx-sha" 14 context-buffer-size: 18 Size of the pre-allocated buffer for the SHA ROM API to store the
|
/Zephyr-latest/dts/bindings/rng/ |
D | nuvoton,npcx-drbg.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nuvoton,npcx-drbg" 14 context-buffer-size: 18 Size of the pre-allocated buffer for the DRBG ROM API to store the
|
/Zephyr-latest/subsys/sensing/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 18 module-str = sensing 30 int "Block size of the RTIO context" 34 int "Number of memory blocks of the RTIO context" 48 int "stack size for sensing subsystem runtime thread" 52 This is the stack size for sensing subsystem runtime thread 61 Ring buffer data is stored by runtime thread, and then give semaphore 71 int "stack size for sensor dispatch thread" 75 This is the stack size for sensor dispatch thread 84 Ring buffer data should be fetched ASAP, so Dispatch
|
/Zephyr-latest/doc/connectivity/networking/ |
D | net_config_guide.rst | 13 Network Buffer Configuration Options 16 The network buffer configuration options control how much data we 28 length data buffer. The :kconfig:option:`CONFIG_NET_BUF_DATA_SIZE` 30 This is the default setting. The default size of the buffer is 128 bytes. 37 the size of the fixed buffer by setting :kconfig:option:`CONFIG_NET_BUF_DATA_SIZE`, and 38 the size of the data pool size by setting :kconfig:option:`CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE` 39 and :kconfig:option:`CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE` if variable size buffers are used. 41 When using the fixed size data buffers, the memory consumption of network buffers 42 can be tweaked by selecting the size of the data part according to what kind of network 43 data we are receiving. If one sets the data size to 256, but only receives packets [all …]
|
/Zephyr-latest/include/zephyr/drivers/spi/ |
D | rtio.h | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Driver context for implementing SPI with RTIO 32 * @brief Statically define a spi_rtio context 34 * @param _name Symbolic name of the context 35 * @param _sq_sz Submission queue entry pool size 36 * @param _cq_sz Completion queue entry pool size 47 * @param[in] r rtio context 49 * @param[in] tx_bufs transmit buffer set 50 * @param[in] rx_bufs receive buffer set 54 * @retval -ENOMEM out of memory [all …]
|
/Zephyr-latest/dts/bindings/ethernet/ |
D | xlnx,gem.yaml | 3 # SPDX-License-Identifier: Apache-2.0 10 include: ethernet-controller.yaml 19 clock-frequency: 27 which it will be adjusted at run-time. Therefore, the value of this 29 respective GEM's TX clock - by default, this is the IO PLL. 31 mdc-divider: 42 init-mdio-phy: 45 Activates the management of a PHY associated with the controller in- 46 stance. If this parameter is activated at the board level, the de- 47 fault values of the associated parameters mdio-phy-address, phy-poll- [all …]
|
/Zephyr-latest/subsys/logging/ |
D | Kconfig.processing | 2 # SPDX-License-Identifier: Apache-2.0 26 bool "Block in thread context on full" 29 When enabled logger will block (if in the thread context) when 30 internal logger buffer is full and new message cannot be allocated. 35 range -1 10000 38 If new buffer for a log message cannot be allocated in that time, log 39 message is dropped. Forever blocking (-1) is possible however may lead 80 int "Stack size for the internal log processing thread" 94 Set the internal stack size for log processing thread. 123 int "Number of bytes dedicated for the logger internal buffer" [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_context.h | 2 * @brief Network context definitions 11 * SPDX-License-Identifier: Apache-2.0 18 * @brief Application network context 19 * @defgroup net_context Application network context 37 /** Is this context used or not */ 42 /** State of the context (bits 1 & 2 in the flags) */ 74 /** Context is bound to a specific interface */ 85 * context is used here. Keep processing in the callback minimal to reduce the 88 * @param context The context to use. 89 * @param pkt Network buffer that is received. If the pkt is not NULL, [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_simulator_native.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * native simulator runner/host context, and not in Zephyr/embedded context. 32 * Initialize the flash buffer. 33 * And, if the content is to be kept on disk map it to the buffer to the file. 35 * Returns -1 on failure 38 int flash_mock_init_native(bool flash_in_ram, uint8_t **mock_flash, unsigned int size, in flash_mock_init_native() argument 46 *mock_flash = (uint8_t *)malloc(size); in flash_mock_init_native() 50 return -1; in flash_mock_init_native() 54 if (*flash_fd == -1) { in flash_mock_init_native() 58 return -1; in flash_mock_init_native() [all …]
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_simulator_native.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * native simulator runner/host context, and not in Zephyr/embedded context. 28 * Initialize the EEPROM buffer. 29 * And, if the content is to be kept on disk map it to the buffer to the file. 31 * Returns -1 on failure 34 int eeprom_mock_init_native(bool eeprom_in_ram, char **mock_eeprom, unsigned int size, in eeprom_mock_init_native() argument 42 *mock_eeprom = (char *)malloc(size); in eeprom_mock_init_native() 46 return -1; in eeprom_mock_init_native() 50 if (*eeprom_fd == -1) { in eeprom_mock_init_native() 53 return -1; in eeprom_mock_init_native() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/block_transfer/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 24 "The expected max message size is wrong."); 53 memset(&fixture->ctx, 0, sizeof(struct lwm2m_ctx)); in net_block_transfer_before() 54 memset(&fixture->msg, 0, sizeof(struct lwm2m_message)); in net_block_transfer_before() 55 fixture->msg.ctx = &fixture->ctx; in net_block_transfer_before() 62 lwm2m_reset_message(&fixture->msg, true); in net_block_transfer_after() 68 struct lwm2m_message *msg = &fixture->msg; in ZTEST_F() 74 zassert_not_equal(msg->msg_data, msg->cpkt.data, in ZTEST_F() 75 "Default data buffer should not be used for writing body"); in ZTEST_F() 76 zassert_equal(msg->cpkt.data, msg->body_encode_buffer.data, in ZTEST_F() [all …]
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_priv.h | 2 * Copyright (c) 2018-2023 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 23 /* Get len of record without alignment to write-block-size */ 51 off_t seek; /* offset of id-value pair within the file */ 62 * @param[out] out buffer for name 63 * @param[in] len_req size of <p>out</p> buffer 65 * @param[in] cb_arg settings line storage context expected by the 69 * -ERCODE on storage errors 75 * @param val_off offset of the value-string. 76 * @param off from val_off (so within the value-string) [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/ |
D | smp_shell.h | 4 * SPDX-License-Identifier: Apache-2.0 33 * Called to scan buffer from the beginning and consume all bytes that are 34 * part of SMP frame until frame or buffer ends. 37 * @param bytes Buffer with bytes to process 38 * @param size Number of bytes to process 43 size_t size); 48 * This function should be called from thread context.
|