/Zephyr-latest/include/zephyr/sys/ |
D | ring_buffer.h | 30 * @defgroup ring_buffer_apis Ring Buffer APIs 33 * @brief Simple ring buffer implementation. 39 * @brief A structure to represent a ring buffer 66 * @brief Define and initialize a ring buffer for byte data. 68 * This macro establishes a ring buffer of an arbitrary size. 71 * The ring buffer can be accessed outside the module where it is defined 76 * @param name Name of the ring buffer. 77 * @param size8 Size of ring buffer (in bytes). 89 * @brief Define and initialize an "item based" ring buffer. 91 * This macro establishes an "item based" ring buffer. Each data item is [all …]
|
/Zephyr-latest/drivers/dma/ |
D | dma_iproc_pax_v1.c | 31 static inline uint32_t reset_pkt_id(struct dma_iproc_pax_ring_data *ring) in reset_pkt_id() argument 33 return ring->pkt_id = 0x0; in reset_pkt_id() 39 static inline uint32_t alloc_pkt_id(struct dma_iproc_pax_ring_data *ring) in alloc_pkt_id() argument 41 ring->pkt_id = (ring->pkt_id + 1) % 32; in alloc_pkt_id() 42 return ring->pkt_id; in alloc_pkt_id() 45 static inline uint32_t curr_pkt_id(struct dma_iproc_pax_ring_data *ring) in curr_pkt_id() argument 47 return ring->pkt_id; in curr_pkt_id() 50 static inline uint32_t curr_toggle_val(struct dma_iproc_pax_ring_data *ring) in curr_toggle_val() argument 52 return ring->curr.toggle; in curr_toggle_val() 145 static void *next_desc_addr(struct dma_iproc_pax_ring_data *ring) in next_desc_addr() argument [all …]
|
D | dma_iproc_pax_v2.c | 34 static inline uint32_t reset_pkt_id(struct dma_iproc_pax_ring_data *ring) in reset_pkt_id() argument 36 return ring->pkt_id = 0x0; in reset_pkt_id() 39 static inline uint32_t alloc_pkt_id(struct dma_iproc_pax_ring_data *ring) in alloc_pkt_id() argument 41 ring->pkt_id = (ring->pkt_id + 1) % 32; in alloc_pkt_id() 42 return ring->pkt_id; in alloc_pkt_id() 45 static inline uint32_t curr_pkt_id(struct dma_iproc_pax_ring_data *ring) in curr_pkt_id() argument 47 return ring->pkt_id; in curr_pkt_id() 50 static inline uint32_t curr_toggle_val(struct dma_iproc_pax_ring_data *ring) in curr_toggle_val() argument 52 return ring->curr.toggle; in curr_toggle_val() 149 static inline void *get_curr_desc_addr(struct dma_iproc_pax_ring_data *ring) in get_curr_desc_addr() argument [all …]
|
D | Kconfig.iproc_pax | 46 signalled from ring interrupt handler. 51 prompt "PAX DMA Ring operation mode" 55 bool "PAX DMA Ring toggle mode" 57 PAX DMA hardware ring operation in toggle mode 60 bool "PAX DMA Ring door bell mode" 62 PAX DMA hardware ring operation in doorbell mode
|
D | dma_iproc_pax.h | 14 /* Per-Ring register offsets */ 45 /* RING Manager Common Registers */ 268 /* Register Per-ring RING_COMMON_CONTROL fields */ 325 /* one desc ring size( is 4K, 4K aligned */ 328 /* completion ring size(bytes) is 8K, 8K aligned */ 345 /* Total BDs in ring: 4K/8bytes = 512 BDs */ 349 /* Initial RM header is first BD in ring */ 354 /* NEXT TABLE desc offset is last BD in ring */ 367 ((_pd)->ring[_r].ring_base + (_write_ptr)) 438 /* ring-id 0-3 */ [all …]
|
/Zephyr-latest/doc/kernel/data_structures/ |
D | ring_buffers.rst | 3 Ring Buffers 6 A :dfn:`ring buffer` is a circular buffer, whose contents are stored in 19 can be enqueued and dequeued from the ring buffer in 25 legal to mix these two modes on a single ring buffer instance. A ring 38 Any number of ring buffers can be defined (limited only by available RAM). Each 39 ring buffer is referenced by its memory address. 41 A ring buffer has the following key properties: 44 bytes or 32-bit words that have been added to the ring buffer but not yet 48 the maximum amount of data (including possible metadata values) the ring 51 A ring buffer must be initialized before it can be used. This sets its [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | Kconfig.nxp_imx_netc | 44 int "TX ring number" 48 TX ring number used. The actual maximum value may varies from platforms. 51 int "TX ring length" 55 Length of the TX ring. The value must be a multiple of 8. 58 int "TX ring data buffer size" 66 int "RX ring number" 70 RX ring number used. The actual maximum value may varies from platforms. 73 int "RX ring length" 77 Length of the RX ring. The value must be a multiple of 8. 80 int "RX ring data buffer size"
|
D | Kconfig.nxp_s32_gmac | 17 int "TX ring length" 21 Length of the TX ring. ETH_NXP_S32_TX_RING_BUF_SIZE * ETH_NXP_S32_TX_RING_LEN 25 int "TX ring data buffer size" 34 int "RX ring length" 38 Length of the RX ring. ETH_NXP_S32_RX_RING_BUF_SIZE * ETH_NXP_S32_RX_RING_LEN 42 int "RX ring data buffer size"
|
D | Kconfig.nxp_s32_netc | 40 int "TX ring length" 44 Length of the TX ring. The value must be a multiple of 8. 47 int "TX ring data buffer size" 55 int "RX ring length" 59 Length of the RX ring. The value must be a multiple of 8. 62 int "RX ring data buffer size"
|
D | Kconfig.cyclonev | 14 int "Number of entries in the transmit descriptor ring" 27 int "Number of entries in the receive descriptor ring"
|
D | eth_ivshmem_queue.c | 84 /* Init TX ring descriptors */ in eth_ivshmem_queue_reset() 142 q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len] = desc_head; in eth_ivshmem_queue_tx_commit_buff() 144 VRING_FLUSH(q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len]); in eth_ivshmem_queue_tx_commit_buff() 200 q->rx.vring.used->ring[used_idx].id = avail_desc_idx; in eth_ivshmem_queue_rx_complete() 201 q->rx.vring.used->ring[used_idx].len = 1; in eth_ivshmem_queue_rx_complete() 202 VRING_FLUSH(q->rx.vring.used->ring[used_idx]); in eth_ivshmem_queue_rx_complete() 275 struct vring_used_elem *used = &q->tx.vring.used->ring[ in tx_clean_used() 318 VRING_INVALIDATE(q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]); in get_rx_avail_desc_idx() 319 *avail_desc_idx = q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]; in get_rx_avail_desc_idx()
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | pipes.rst | 17 The pipe can be configured with a ring buffer which holds data that has been 18 sent but not yet received; alternatively, the pipe may have no ring buffer. 25 * A **size** that indicates the size of the pipe's ring buffer. Note that a 26 size of zero defines a pipe with no ring buffer. 34 completed later. Accepted data is either copied to the pipe's ring buffer 41 data is either copied from the pipe's ring buffer or directly from the 45 either on the entire pipe or on only its ring buffer. Flushing the entire pipe 46 is equivalent to reading all the information in the ring buffer **and** waiting 48 the ring buffer is equivalent to reading **only** the data in the ring buffer 49 into a temporary buffer which is then discarded. Flushing the ring buffer does [all …]
|
D | message_queues.rst | 22 * A **ring buffer** of data items that have been sent but not yet received. 26 * A **maximum quantity** of data items that can be queued in the ring buffer. 29 This sets its ring buffer to empty. 33 if one exists; otherwise the item is copied to the message queue's ring buffer, 37 If a thread attempts to send a data item when the ring buffer is full, 39 Any number of sending threads may wait simultaneously when the ring buffer 47 If a thread attempts to receive a data item when the ring buffer is empty, 49 Any number of receiving threads may wait simultaneously when the ring buffer 63 Alignment of the message queue's ring buffer is not necessary.
|
/Zephyr-latest/arch/xtensa/include/ |
D | xtensa_mmu_priv.h | 47 /** Mask for ring in PTE */ 50 /** Number of bits to shift for ring in PTE */ 67 #define XTENSA_MMU_PTE(paddr, ring, sw, attr) \ argument 69 (((ring) << XTENSA_MMU_PTE_RING_SHIFT) & XTENSA_MMU_PTE_RING_MASK) | \ 89 /** Set the ring in a PTE */ 90 #define XTENSA_MMU_PTE_RING_SET(pte, ring) \ argument 92 ((ring) << XTENSA_MMU_PTE_RING_SHIFT)) 94 /** Get the ring from a PTE */ 98 /** Get the ASID from the RASID register corresponding to the ring in a PTE */ 132 /** Kernel specific ASID. Ring field in the PTE */ [all …]
|
/Zephyr-latest/dts/bindings/dma/ |
D | brcm,iproc-pax-dma-v1.yaml | 14 It includes data mover engine(dme), ring manager, ring manager common 31 description: Ring manager line interrupt number
|
D | brcm,iproc-pax-dma-v2.yaml | 14 It includes data mover engine(dme), ring manager, ring manager common 31 description: Ring manager line interrupt number
|
/Zephyr-latest/dts/bindings/clock/ |
D | raspberrypi,pico-rosc.yaml | 5 The representation of Raspberry Pi Pico ring oscillator. 16 Specify the number of ring oscillator stages to use. 26 Specifies the drive strength of the eight stages of the ring oscillator.
|
/Zephyr-latest/subsys/shell/ |
D | shell_history.c | 16 * Items are allocated and stored in the ring buffer. Items then a linked in 20 * store them in the ring buffer in a way that they are not split into two 21 * chunks (when ring buffer wraps). To ensure that item is in a single chunk, 25 * If item does not fit at the end of the ring buffer padding is added: * 31 * If item fits in the ring buffer available space then there is no padding: 169 /* if history is empty reset ring buffer. Even when in z_shell_history_put() 170 * ring buffer is empty, it is possible that available in z_shell_history_put() 172 * ring buffer capacity. By resetting ring buffer we in z_shell_history_put() 174 * of ring buffer capacity length. in z_shell_history_put()
|
/Zephyr-latest/lib/utils/ |
D | Kconfig | 13 bool "Ring buffers" 15 Enable usage of ring buffers. This is similar to kernel FIFOs but ring
|
/Zephyr-latest/drivers/hdlc_rcp_if/ |
D | Kconfig.uart | 17 int "Set HDLC RCP IF UART RX ring buffer size" 23 int "Set HDLC RCP IF UART TX ring buffer size"
|
/Zephyr-latest/subsys/sensing/ |
D | Kconfig | 61 Ring buffer data is stored by runtime thread, and then give semaphore 67 data, then ring buf will always be put into data until overflow. 84 Ring buffer data should be fetched ASAP, so Dispatch
|
/Zephyr-latest/include/zephyr/xen/public/io/ |
D | console.h | 34 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) argument 44 #include "ring.h"
|
/Zephyr-latest/drivers/modem/ |
D | modem_iface_uart.h | 26 /* ring buffer */ 56 * @param rx_rb_buf Buffer used for internal ring buffer 57 * @param rx_rb_buf_len Size of buffer used for internal ring buffer
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/renode/ |
D | litex-vexriscv-tflite.robot | 13 Wait For Ring 14 Wait For Line On Uart RING: 103 Wait For Ring 105 Wait For Ring
|
/Zephyr-latest/subsys/usb/device/class/ |
D | Kconfig.cdc | 22 int "USB CDC ACM ring buffer size" 25 USB CDC ACM ring buffer size
|