Lines Matching refs:rear
105 ringbuf->rear = 0; in VIDEO_RINGBUF_Init()
118 uint32_t rear = ringbuf->rear; in VIDEO_RINGBUF_Get() local
121 if (rear != front) in VIDEO_RINGBUF_Get()
148 uint32_t rear_next = ringbuf->rear + 1U; in VIDEO_RINGBUF_Put()
154 ringbuf->buf[ringbuf->rear] = item; in VIDEO_RINGBUF_Put()
155 ringbuf->rear = rear_next; in VIDEO_RINGBUF_Put()
171 uint32_t rear = ringbuf->rear; in VIDEO_RINGBUF_GetLength() local
174 ret = (rear + ringbuf->size) - front; in VIDEO_RINGBUF_GetLength()
187 uint32_t rear = ringbuf->rear; in VIDEO_RINGBUF_IsEmpty() local
190 if (rear == front) in VIDEO_RINGBUF_IsEmpty()
202 uint32_t rear = ringbuf->rear; in VIDEO_RINGBUF_IsFull() local
205 rear++; in VIDEO_RINGBUF_IsFull()
207 if (rear >= ringbuf->size) in VIDEO_RINGBUF_IsFull()
209 rear = 0; in VIDEO_RINGBUF_IsFull()
212 if (rear == front) in VIDEO_RINGBUF_IsFull()