Lines Matching refs:sbuf
51 uint32_t sbuf_put(struct shared_buf *sbuf, uint8_t *data, uint32_t max_len) in sbuf_put() argument
59 ele_size = sbuf->ele_size; in sbuf_put()
60 next_tail = sbuf_next_ptr(sbuf->tail, ele_size, sbuf->size); in sbuf_put()
62 if ((next_tail == sbuf->head) && ((sbuf->flags & OVERWRITE_EN) == 0U)) { in sbuf_put()
66 if (next_tail == sbuf->head) { in sbuf_put()
68 sbuf->overrun_cnt += sbuf->flags & OVERRUN_CNT_EN; in sbuf_put()
71 to = (void *)sbuf + SBUF_HEAD_SIZE + sbuf->tail; in sbuf_put()
78 sbuf->head = sbuf_next_ptr(sbuf->head, in sbuf_put()
79 ele_size, sbuf->size); in sbuf_put()
81 sbuf->tail = next_tail; in sbuf_put()
124 uint32_t sbuf_put_many(struct shared_buf *sbuf, uint32_t elem_size, uint8_t *data, uint32_t data_si… in sbuf_put_many() argument
130 ret = sbuf_put(sbuf, data + i * elem_size, elem_size); in sbuf_put_many()