Lines Matching +full:2 +full:- +full:word
4 * SPDX-License-Identifier: Apache-2.0
29 * it can be filled by the user (except for the first 2 bits) and when packet
48 /** @brief Flag indicating that buffer size is power of 2.
50 * When buffer size is power of 2 then optimizations are applied.
62 #define MPSC_PBUF_MAX_UTILIZATION BIT(2)
183 /** @brief Put single word packet into a buffer.
185 * Function is optimized for storing a packet which fit into a single word.
186 * Note that 2 bits of that word is used by the buffer.
190 * @param word Packet content consisting of MPSC_PBUF_HDR with valid bit set
194 const union mpsc_pbuf_generic word);
196 /** @brief Put a packet consisting of a word and a pointer.
198 * Function is optimized for storing packet consisting of a word and a pointer.
199 * Note that 2 bits of a first word is used by the buffer.
203 * @param word First word of a packet consisting of MPSC_PBUF_HDR with valid
209 const union mpsc_pbuf_generic word,
215 * Note that 2 bits of a first word is used by the buffer.
219 * @param data First word of data must contain MPSC_PBUF_HDR with valid bit set.
267 * retval -ENOTSUP if Collecting utilization data is not supported.