Lines Matching refs:p_ringbuf
49 RHINO_INLINE kstat_t ringbuf_queue_push(k_ringbuf_t *p_ringbuf, void *data, size_t len) in ringbuf_queue_push() argument
51 if (p_ringbuf->tail == p_ringbuf->end) { in ringbuf_queue_push()
52 p_ringbuf->tail = p_ringbuf->buf; in ringbuf_queue_push()
55 memcpy(p_ringbuf->tail, data, p_ringbuf->blk_size); in ringbuf_queue_push()
56 p_ringbuf->tail += p_ringbuf->blk_size; in ringbuf_queue_push()
70 RHINO_INLINE kstat_t ringbuf_queue_pop(k_ringbuf_t *p_ringbuf, void *pdata, size_t *plen) in ringbuf_queue_pop() argument
72 if (p_ringbuf->head == p_ringbuf->end) { in ringbuf_queue_pop()
73 p_ringbuf->head = p_ringbuf->buf; in ringbuf_queue_pop()
76 memcpy(pdata, p_ringbuf->head, p_ringbuf->blk_size); in ringbuf_queue_pop()
77 p_ringbuf->head += p_ringbuf->blk_size; in ringbuf_queue_pop()
80 *plen = p_ringbuf->blk_size; in ringbuf_queue_pop()