Searched refs:read_view (Results 1 – 2 of 2) sorted by relevance
/hardware/google/aemu/base/ |
D | ring_buffer.cpp | 56 uint32_t read_view; in ring_buffer_can_write() local 57 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_can_write() 58 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write() 229 uint32_t read_view; in ring_buffer_view_can_write() local 230 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_view_can_write() 232 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write() 261 uint32_t read_view; in ring_buffer_available_write() local 262 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_available_write() 265 v, read_view - r->write_pos - 1); in ring_buffer_available_write() 267 return get_ring_pos(read_view - r->write_pos - 1); in ring_buffer_available_write()
|
/hardware/google/gfxstream/guest/android-emu/aemu/base/ |
D | ring_buffer.c | 70 uint32_t read_view; in ring_buffer_can_write() local 71 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_can_write() 72 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write() 243 uint32_t read_view; in ring_buffer_view_can_write() local 244 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_view_can_write() 246 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write()
|