Lines Matching refs:freesize
31 if (p_ringbuf->freesize < p_ringbuf->blk_size) { in ringbuf_push()
41 p_ringbuf->freesize -= p_ringbuf->blk_size; in ringbuf_push()
50 if (p_ringbuf->freesize < (len_bytes + len)) { in ringbuf_push()
67 p_ringbuf->freesize -= split_len; in ringbuf_push()
74 p_ringbuf->freesize -= len_bytes; in ringbuf_push()
92 p_ringbuf->freesize -= split_len; in ringbuf_push()
97 p_ringbuf->freesize -= len; in ringbuf_push()
118 p_ringbuf->freesize += p_ringbuf->blk_size; in ringbuf_pop()
136 p_ringbuf->freesize += split_len; in ringbuf_pop()
144 p_ringbuf->freesize += (len_bytes - split_len); in ringbuf_pop()
160 p_ringbuf->freesize += split_len; in ringbuf_pop()
165 p_ringbuf->freesize += len; in ringbuf_pop()
173 if (p_ringbuf->type == RINGBUF_TYPE_DYN && p_ringbuf->freesize < (RING_BUF_LEN + 1)) { in ringbuf_is_full()
178 (p_ringbuf->freesize < p_ringbuf->blk_size)) { in ringbuf_is_full()
187 if (p_ringbuf->freesize == (size_t)(p_ringbuf->end - p_ringbuf->buf)) { in ringbuf_is_empty()
198 p_ringbuf->freesize = p_ringbuf->end - p_ringbuf->buf; in ringbuf_reset()