Home
last modified time | relevance | path

Searched refs:get_ring_pos (Results 1 – 2 of 2) sorted by relevance

/hardware/google/gfxstream/guest/android-emu/aemu/base/
Dring_buffer.c65 static uint32_t get_ring_pos(uint32_t index) { in get_ring_pos() function
72 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 …]
/hardware/google/aemu/base/
Dring_buffer.cpp51 static uint32_t get_ring_pos(uint32_t index) { in get_ring_pos() function
58 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write()
64 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read()
80 RING_BUFFER_SIZE - get_ring_pos(r->write_pos); in ring_buffer_write()
85 &r->buf[get_ring_pos(r->write_pos)], in ring_buffer_write()
89 &r->buf[get_ring_pos(r->write_pos + available_at_end)], in ring_buffer_write()
94 &r->buf[get_ring_pos(r->write_pos)], in ring_buffer_write()
119 RING_BUFFER_SIZE - get_ring_pos(r->read_pos); in ring_buffer_read()
125 &r->buf[get_ring_pos(r->read_pos)], in ring_buffer_read()
129 &r->buf[get_ring_pos(r->read_pos + available_at_end)], in ring_buffer_read()
[all …]