/Zephyr-latest/subsys/tracing/include/ |
D | tracing_buffer.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * @brief Initialize tracing buffer. 23 * @brief Tracing buffer is empty or not. 25 * @return true if the ring buffer is empty, or false if not. 30 * @brief Get free space in the tracing buffer. 32 * @return Tracing buffer free space (in bytes). 37 * @brief Get tracing buffer capacity (max size). 39 * @return Tracing buffer capacity (in bytes). 44 * @brief Try to allocate buffer in the tracing buffer. 47 * within the tracing buffer. [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | ring_buffer.h | 4 * SPDX-License-Identifier: Apache-2.0 25 "Size too big" 30 * @defgroup ring_buffer_apis Ring Buffer APIs 33 * @brief Simple ring buffer implementation. 39 * @brief A structure to represent a ring buffer 43 uint8_t *buffer; member 50 uint32_t size; member 61 buf->put_head = buf->put_tail = buf->put_base = value; in ring_buf_internal_reset() 62 buf->get_head = buf->get_tail = buf->get_base = value; in ring_buf_internal_reset() 66 * @brief Define and initialize a ring buffer for byte data. [all …]
|
D | mpsc_pbuf.h | 4 * SPDX-License-Identifier: Apache-2.0 20 * @brief Multi producer, single consumer packet buffer API 21 * @defgroup mpsc_buf MPSC (Multi producer, single consumer) packet buffer API 27 * Multi producer, single consumer packet buffer allows to allocate variable 33 * If buffer is full and packet cannot be allocated then null is returned unless 40 * returns pointer to the packet within the buffer. Packet is freed when no 44 /**@defgroup MPSC_PBUF_FLAGS MPSC packet buffer flags 48 /** @brief Flag indicating that buffer size is power of 2. 50 * When buffer size is power of 2 then optimizations are applied. 54 /** @brief Flag indicating buffer full policy. [all …]
|
/Zephyr-latest/include/zephyr/modem/ |
D | stats.h | 4 * SPDX-License-Identifier: Apache-2.0 17 /** Modem statistics buffer structure */ 22 uint32_t size; member 30 * @brief Initialize modem statistics buffer 32 * @param buffer Modem statistics buffer instance 33 * @param name Name of buffer instance 34 * @param size Size of buffer 36 void modem_stats_buffer_init(struct modem_stats_buffer *buffer, 37 const char *name, uint32_t size); 40 * @brief Advertise modem statistics buffer size [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | buf.h | 2 * @brief Bluetooth data buffer API 8 * SPDX-License-Identifier: Apache-2.0 57 /** Helper to include reserved HCI data in buffer calculations */ 58 #define BT_BUF_SIZE(size) (BT_BUF_RESERVE + (size)) argument 60 /** Helper to calculate needed buffer size for HCI ACL packets */ 61 #define BT_BUF_ACL_SIZE(size) BT_BUF_SIZE(BT_HCI_ACL_HDR_SIZE + (size)) argument 63 /** Helper to calculate needed buffer size for HCI Event packets. */ 64 #define BT_BUF_EVT_SIZE(size) BT_BUF_SIZE(BT_HCI_EVT_HDR_SIZE + (size)) argument 66 /** Helper to calculate needed buffer size for HCI Command packets. */ 67 #define BT_BUF_CMD_SIZE(size) BT_BUF_SIZE(BT_HCI_CMD_HDR_SIZE + (size)) argument [all …]
|
/Zephyr-latest/subsys/modem/ |
D | modem_stats.c | 4 * SPDX-License-Identifier: Apache-2.0 26 static void stats_buffer_list_append(struct modem_stats_buffer *buffer) in stats_buffer_list_append() argument 29 sys_slist_append(&stats_buffer_list, &buffer->node); in stats_buffer_list_append() 44 static struct modem_stats_buffer *stats_buffer_list_next(struct modem_stats_buffer *buffer) in stats_buffer_list_next() argument 49 next = stats_buffer_from_node(sys_slist_peek_next(&buffer->node)); in stats_buffer_list_next() 74 static void stats_buffer_get_and_clear_max_used(struct modem_stats_buffer *buffer, in stats_buffer_get_and_clear_max_used() argument 78 *max_used = buffer->max_used; in stats_buffer_get_and_clear_max_used() 79 buffer->max_used = 0; in stats_buffer_get_and_clear_max_used() 83 static bool stats_buffer_length_is_valid(const struct modem_stats_buffer *buffer, uint32_t length) in stats_buffer_length_is_valid() argument 85 return length <= buffer->size; in stats_buffer_length_is_valid() [all …]
|
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 18 int "Modem chat log buffer size in bytes" 33 int "CMUX module work buffer size in bytes" 38 module-str = modem_cmux 61 int "Network buffer fragment size" 73 scaling buffer sizes, as these are application specific. 76 int "Maximum string size of modem stats buffer name" 81 bool "Modem U-BLOX module" 85 Enable Modem U-BLOX module. 90 int "Modem U-BLOX log buffer size" [all …]
|
/Zephyr-latest/include/zephyr/console/ |
D | tty.h | 4 * SPDX-License-Identifier: Apache-2.0 37 * "tty" device provides support for buffered, interrupt-driven, 38 * timeout-controlled access to an underlying UART device. For 39 * completeness, it also support non-interrupt-driven, busy-polling 48 * interrupt-driven operation) 65 tty->rx_timeout = timeout; in tty_set_rx_timeout() 71 * Set timeout for putchar() operation, for a case when output buffer is full. 79 tty->tx_timeout = timeout; in tty_set_tx_timeout() 83 * @brief Set receive buffer for tty device. 85 * Set receive buffer or switch to unbuffered operation for receive. [all …]
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 17 module-str = ec-host-commands 21 int "Stack size for the EC host command handler thread" 25 int "Buffer size in bytes for TX buffer shared by all EC host commands" 32 Buffer size in bytes for TX buffer defined by the host command handler. 33 Some backend layers can define their own buffer, so the size can be zero to 34 avoid duplicating buffers. If multiple backends are used, the size has to be 38 int "Buffer size in bytes for RX buffer shared by all EC host commands" 45 Buffer size in bytes for TX buffer defined by the host command handler. 46 Some backend layers can define their own buffer, so the size can be zero to [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | Kconfig.rtt | 2 # SPDX-License-Identifier: Apache-2.0 5 bool "Segger J-Link RTT backend" 13 is transferred to up-buffer at once depending on available space and 16 in up-buffer for a message and message is transferred to host. 25 bool "Drop messages that do not fit in up-buffer." 27 If there is not enough space in up-buffer for a message, drop it. 29 Increase up-buffer size helps to reduce dropping of messages. 34 Waits until there is enough space in the up-buffer for a message. 37 bool "Overwrite messages if up-buffer full" 39 If there is not enough space in up-buffer for a message overwrite [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb/ |
D | udc_buf.h | 4 * SPDX-License-Identifier: Apache-2.0 20 * Here we try to get DMA-safe buffers, but we lack a consistent source of 21 * information about data cache properties, such as line cache size, and a 30 * Default alignment and granularity to pointer size if the platform does not 38 * @brief Buffer macros and definitions used in USB device support 39 * @defgroup udc_buf Buffer macros and definitions used in USB device support 46 /** Buffer alignment required by the UDC driver */ 49 /** Buffer granularity required by the UDC driver */ 53 * @brief Define a UDC driver-compliant static buffer 58 * @param name Buffer name [all …]
|
/Zephyr-latest/include/zephyr/ipc/ |
D | pbuf.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * @brief Packed buffer API 19 * @defgroup pbuf Packed Buffer API 24 /** @brief Size of packet length field. */ 30 /* Minimal length of the data field in the buffer to store the smalest packet 33 * (+_PBUF_IDX_SIZE) to distinguish buffer full and buffer empty. 45 /** @brief Control block of packet buffer. 58 uint32_t dcache_alignment; /* CPU data cache line size in bytes. 59 * Used for validation - TODO: To be 67 * @brief Data block of the packed buffer. [all …]
|
/Zephyr-latest/dts/arm/xilinx/ |
D | zynqmp.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <arm/armv7-r.dtsi> 9 #include <zephyr/dt-bindings/interrupt-controller/arm-gic.h> 10 #include <zephyr/dt-bindings/ethernet/xlnx_gem.h> 16 compatible = "xlnx,pinctrl-zynqmp"; 19 compatible = "soc-nv-flash"; 24 compatible = "mmio-sram"; 29 compatible = "zephyr,memory-region", "xlnx,zynq-ocm"; 31 zephyr,memory-region = "OCM"; 40 interrupt-names = "irq_0"; [all …]
|
/Zephyr-latest/drivers/retained_mem/ |
D | retained_mem_handlers.c | 4 * SPDX-License-Identifier: Apache-2.0 18 uint8_t *buffer, size_t size) in z_vrfy_retained_mem_read() argument 21 K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, size)); in z_vrfy_retained_mem_read() 22 return z_impl_retained_mem_read(dev, offset, buffer, size); in z_vrfy_retained_mem_read() 27 const uint8_t *buffer, size_t size) in z_vrfy_retained_mem_write() argument 30 K_OOPS(K_SYSCALL_MEMORY_READ(buffer, size)); in z_vrfy_retained_mem_write() 31 return z_impl_retained_mem_write(dev, offset, buffer, size); in z_vrfy_retained_mem_write()
|
/Zephyr-latest/doc/kernel/data_structures/ |
D | ring_buffers.rst | 6 A :dfn:`ring buffer` is a circular buffer, whose contents are stored in 7 first-in-first-out order. 12 buffer of memory. 18 * **Data item mode**: Multiple 32-bit word data items with metadata 19 can be enqueued and dequeued from the ring buffer in 21 associated metadata values: a type identifier and a 16-bit 22 integer value, both of which are application-specific. 25 legal to mix these two modes on a single ring buffer instance. A ring 26 buffer initialized with a byte count must be used only with the 39 ring buffer is referenced by its memory address. [all …]
|
/Zephyr-latest/dts/bindings/shi/ |
D | shi-device.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 buffer-rx-size: 14 Size of the internal buffer used for receiving data on the bus. 16 buffer-tx-size: 20 Size of the internal buffer used for transmitting data over the bus.
|
/Zephyr-latest/subsys/bluetooth/common/ |
D | Kconfig | 5 # SPDX-License-Identifier: Apache-2.0 7 menu "Bluetooth buffer configuration" 10 int "Maximum supported ACL size for outgoing data" 15 Maximum supported ACL size of data packets sent from the Host to the 21 In a Host-only build the Host will read the maximum ACL size supported 25 The Host supports sending of larger L2CAP PDUs than the ACL size and 27 The Controller will return this value in the HCI LE Read Buffer 28 Size command response. If this size if greater than effective Link 29 Layer transmission size then the Controller will perform 31 If this value is less than the effective Link Layer transmission size [all …]
|
/Zephyr-latest/subsys/testsuite/coverage/ |
D | coverage.c | 4 * SPDX-License-Identifier: Apache-2.0 19 * Is called by gcc-generated constructor code for each object file compiled 20 * with -fprofile-arcs. 24 info->next = gcov_info_head; in __gcov_init() 39 * print_u8 - Print 8 bit of gcov data 47 * print_u32 - Print 32 bit of gcov data 60 * write_u64 - Store 64 bit data on a buffer and return the size 63 static inline void write_u64(void *buffer, size_t *off, uint64_t v) in write_u64() argument 65 if (buffer != NULL) { in write_u64() 66 memcpy((uint8_t *)buffer + *off, (uint8_t *)&v, sizeof(v)); in write_u64() [all …]
|
/Zephyr-latest/drivers/bbram/ |
D | bbram_microchip_mcp7940n.c | 4 * SPDX-License-Identifier: Apache-2.0 36 const struct microchip_mcp7940n_bbram_config *config = dev->config; in microchip_mcp7940n_bbram_init() 37 struct microchip_mcp7940n_bbram_data *data = dev->data; in microchip_mcp7940n_bbram_init() 39 uint8_t buffer; in microchip_mcp7940n_bbram_init() local 41 if (!device_is_ready(config->i2c.bus)) { in microchip_mcp7940n_bbram_init() 42 LOG_ERR("I2C device %s is not ready", config->i2c.bus->name); in microchip_mcp7940n_bbram_init() 43 return -ENODEV; in microchip_mcp7940n_bbram_init() 46 k_mutex_init(&data->lock); in microchip_mcp7940n_bbram_init() 48 rc = i2c_reg_read_byte_dt(&config->i2c, in microchip_mcp7940n_bbram_init() 50 &buffer); in microchip_mcp7940n_bbram_init() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | retained_mem.h | 4 * SPDX-License-Identifier: Apache-2.0 28 "Size of off_t must be equal or less than size of size_t"); 41 * @brief Callback API to get size of retained memory area. 51 typedef int (*retained_mem_read_api)(const struct device *dev, off_t offset, uint8_t *buffer, 52 size_t size); 60 const uint8_t *buffer, size_t size); 74 * non-initialised RAM region, or in specific registers, but is not reset when a different 76 * byte-level reading and writing without a need to erase data before writing. 81 retained_mem_size_api size; member 88 * @brief Returns the size of the retained memory area. [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/common/include/ |
D | intel_adsp_hda.h | 2 * SPDX-License-Identifier: Apache-2.0 23 * addresses, the stream count, and the size of the ip blocks. 32 /* Buffer size must match the mask of BS field in DGBS register */ 41 #define DGCS_SCS BIT(31) /* Sample container size */ 45 #define DGCS_FWCB BIT(23) /* Firmware Control Buffer */ 48 #define DGCS_BSC BIT(11) /* Buffer Segment Completion */ 49 #define DGCS_BOR BIT(10) /* Buffer Overrun */ 50 #define DGCS_BUR BIT(10) /* Buffer Underrun */ 51 #define DGCS_BF BIT(9) /* Buffer Full */ 52 #define DGCS_BNE BIT(8) /* Buffer Not Empty */ [all …]
|
/Zephyr-latest/subsys/fs/zms/ |
D | Kconfig | 3 #SPDX-License-Identifier: Apache-2.0 23 int "ZMS Storage lookup cache size" 38 bool "Customize the size of the buffer used internally for reads and writes" 40 ZMS uses an internal buffer to read/write and compare stored data. 41 Increasing the size of this buffer should be done carefully in order to not 43 Increasing this buffer means as well that ZMS could work with storage devices 44 that have larger write-block-size which decreases ZMS performance 47 int "ZMS internal buffer size" 51 Changes the internal buffer size of ZMS 63 module-str = zms
|
/Zephyr-latest/dts/bindings/serial/ |
D | segger,rtt-uart.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "segger,rtt-uart" 8 include: uart-controller.yaml 11 tx-buffer-size: 15 Size of the RTT up buffer for transmission 19 rx-buffer-size: 23 Size of the RTT down buffer for reception
|
/Zephyr-latest/subsys/tracing/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 64 bool "Tracing using user-defined functions" 66 Use user-defined functions for tracing task switching and irqs 88 very low-latency. 94 Enable asynchronous tracing. This will buffer all the tracing 95 packets to the ring buffer first, tracing thread will try to 96 output as much data as possible from the buffer when tracing 102 int "Stack size of tracing thread" 106 Stack size of tracing thread. 114 every first packet put to tracing buffer. [all …]
|
/Zephyr-latest/scripts/native_simulator/common/src/ |
D | nsi_host_trampolines.c | 4 * SPDX-License-Identifier: Apache-2.0 14 void *nsi_host_calloc(unsigned long nmemb, unsigned long size) in nsi_host_calloc() argument 16 return calloc(nmemb, size); in nsi_host_calloc() 29 char *nsi_host_getcwd(char *buf, unsigned long size) in nsi_host_getcwd() argument 31 return getcwd(buf, size); in nsi_host_getcwd() 39 void *nsi_host_malloc(unsigned long size) in nsi_host_malloc() argument 41 return malloc(size); in nsi_host_malloc() 54 long nsi_host_read(int fd, void *buffer, unsigned long size) in nsi_host_read() argument 56 return read(fd, buffer, size); in nsi_host_read() 59 void *nsi_host_realloc(void *ptr, unsigned long size) in nsi_host_realloc() argument [all …]
|