Searched refs:get_ring_pos (Results 1 – 1 of 1) sorted by relevance
65 static uint32_t get_ring_pos(uint32_t index) { in get_ring_pos() function72 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write()78 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read()94 RING_BUFFER_SIZE - get_ring_pos(r->write_pos); in ring_buffer_write()99 &r->buf[get_ring_pos(r->write_pos)], in ring_buffer_write()103 &r->buf[get_ring_pos(r->write_pos + available_at_end)], in ring_buffer_write()108 &r->buf[get_ring_pos(r->write_pos)], in ring_buffer_write()133 RING_BUFFER_SIZE - get_ring_pos(r->read_pos); in ring_buffer_read()139 &r->buf[get_ring_pos(r->read_pos)], in ring_buffer_read()143 &r->buf[get_ring_pos(r->read_pos + available_at_end)], in ring_buffer_read()[all …]