Lines Matching refs:rb
404 static void ring_buf_reset(struct ring_buf *rb) in ring_buf_reset() argument
406 rb->head = 0U; in ring_buf_reset()
407 rb->tail = 0U; in ring_buf_reset()
413 static uint32_t ring_buf_get(struct ring_buf *rb) in ring_buf_get() argument
417 __ASSERT(rb->tail != rb->head, in ring_buf_get()
420 val = rb->buf[rb->tail]; in ring_buf_get()
421 MODULO_INC(rb->tail, rb->len); in ring_buf_get()
429 static void ring_buf_put(struct ring_buf *rb, uint32_t val) in ring_buf_put() argument
431 rb->buf[rb->head] = val; in ring_buf_put()
432 MODULO_INC(rb->head, rb->len); in ring_buf_put()
434 __ASSERT(rb->tail != rb->head, in ring_buf_put()