Lines Matching +full:maximum +full:- +full:read
4 * SPDX-License-Identifier: Apache-2.0
35 /** @brief Size of the field which stores maximum utilization. */
38 /** @brief Offset of the field which stores maximum utilization. */
56 /** @brief Maximum packet length. */
74 MAX(0, Z_SPSC_PBUF_DCACHE_LINE - (int)sizeof(struct spsc_pbuf_common))
97 * with read/write semantics on top of a memory region shared
125 return pb->common.len - sizeof(uint32_t); in spsc_pbuf_capacity()
159 * -EINVAL, if len == 0.
160 * -ENOMEM, if len is bigger than the buffer can fit.
189 * @retval non-negative Amount of space that got allocated. Can be equal or smaller than %p len.
190 * @retval -EINVAL if @p len is forbidden.
206 * @brief Read specified amount of data from the packet buffer.
208 * Single read allows to read the message send by the single write.
213 * @param pb A buffer from which data will be read.
214 * @param buf Data pointer to which read data will be written.
216 * @param len Number of bytes to be read from the buffer.
217 * @retval int Bytes read, negative error code on fail.
218 * Bytes to be read, if buf == NULL.
219 * -ENOMEM, if message can not fit in provided buf.
220 * -EAGAIN, if not whole message is ready yet.
254 * @brief Get maximum utilization of the packet buffer.
261 * @retval -ENOTSUP Feature not enabled.
262 * @retval non-negative Maximum utilization.