Lines Matching refs:ring_buf

49 struct ring_buf {  struct
60 uint32_t ring_buf_area_claim(struct ring_buf *buf, struct ring_buf_index *ring, argument
62 int ring_buf_area_finish(struct ring_buf *buf, struct ring_buf_index *ring,
70 static inline void ring_buf_internal_reset(struct ring_buf *buf, ring_buf_idx_t value) in ring_buf_internal_reset()
102 struct ring_buf name = RING_BUF_INIT(_ring_buffer_data_##name, size8)
123 struct ring_buf name = { \
173 static inline void ring_buf_init(struct ring_buf *buf, in ring_buf_init()
197 static inline void ring_buf_item_init(struct ring_buf *buf, in ring_buf_item_init()
212 static inline bool ring_buf_is_empty(const struct ring_buf *buf) in ring_buf_is_empty()
222 static inline void ring_buf_reset(struct ring_buf *buf) in ring_buf_reset()
234 static inline uint32_t ring_buf_space_get(const struct ring_buf *buf) in ring_buf_space_get()
248 static inline uint32_t ring_buf_item_space_get(const struct ring_buf *buf) in ring_buf_item_space_get()
260 static inline uint32_t ring_buf_capacity_get(const struct ring_buf *buf) in ring_buf_capacity_get()
272 static inline uint32_t ring_buf_size_get(const struct ring_buf *buf) in ring_buf_size_get()
303 static inline uint32_t ring_buf_put_claim(struct ring_buf *buf, in ring_buf_put_claim()
333 static inline int ring_buf_put_finish(struct ring_buf *buf, uint32_t size) in ring_buf_put_finish()
358 uint32_t ring_buf_put(struct ring_buf *buf, const uint8_t *data, uint32_t size);
384 static inline uint32_t ring_buf_get_claim(struct ring_buf *buf, in ring_buf_get_claim()
414 static inline int ring_buf_get_finish(struct ring_buf *buf, uint32_t size) in ring_buf_get_finish()
439 uint32_t ring_buf_get(struct ring_buf *buf, uint8_t *data, uint32_t size);
467 uint32_t ring_buf_peek(struct ring_buf *buf, uint8_t *data, uint32_t size);
490 int ring_buf_item_put(struct ring_buf *buf, uint16_t type, uint8_t value,
517 int ring_buf_item_get(struct ring_buf *buf, uint16_t *type, uint8_t *value,