Lines Matching refs:len_bytes
25 size_t len_bytes = 0; in ringbuf_push() local
47 len_bytes = RING_BUF_LEN; in ringbuf_push()
50 if (p_ringbuf->freesize < (len_bytes + len)) { in ringbuf_push()
63 split_len < len_bytes && split_len > 0) { in ringbuf_push()
65 len_bytes -= split_len; in ringbuf_push()
72 if (len_bytes > 0) { in ringbuf_push()
73 memcpy(p_ringbuf->tail, &c_len[split_len], len_bytes); in ringbuf_push()
74 p_ringbuf->freesize -= len_bytes; in ringbuf_push()
75 p_ringbuf->tail += len_bytes; in ringbuf_push()
109 size_t len_bytes = 0; in ringbuf_pop() local
127 len_bytes = RING_BUF_LEN; in ringbuf_pop()
133 if (split_len < len_bytes && split_len > 0) { in ringbuf_pop()
141 if (len_bytes - split_len > 0) { in ringbuf_pop()
142 memcpy(&c_len[split_len], p_ringbuf->head, (len_bytes - split_len)); in ringbuf_pop()
143 p_ringbuf->head += (len_bytes - split_len); in ringbuf_pop()
144 p_ringbuf->freesize += (len_bytes - split_len); in ringbuf_pop()