Lines Matching refs:sbuf
14 static inline bool sbuf_is_empty(struct shared_buf *sbuf) in sbuf_is_empty() argument
16 return (sbuf->head == sbuf->tail); in sbuf_is_empty()
19 static inline void sbuf_clear_flags(struct shared_buf *sbuf, uint64_t flags) in sbuf_clear_flags() argument
21 sbuf->flags &= ~flags; in sbuf_clear_flags()
24 static inline void sbuf_set_flags(struct shared_buf *sbuf, uint64_t flags) in sbuf_set_flags() argument
26 sbuf->flags = flags; in sbuf_set_flags()
29 static inline void sbuf_add_flags(struct shared_buf *sbuf, uint64_t flags) in sbuf_add_flags() argument
31 sbuf->flags |= flags; in sbuf_add_flags()
34 uint32_t sbuf_get(struct shared_buf *sbuf, uint8_t *data);
35 uint32_t sbuf_put(struct shared_buf *sbuf, uint8_t *data, uint32_t max_len);
36 int sbuf_clear_buffered(struct shared_buf *sbuf);
37 void sbuf_init(struct shared_buf *sbuf, uint32_t total_size, uint32_t ele_size);