Searched refs:write_view (Results 1 – 2 of 2) sorted by relevance
/hardware/google/gfxstream/guest/android-emu/aemu/base/ |
D | ring_buffer.c | 76 uint32_t write_view; in ring_buffer_can_read() local 77 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_can_read() 78 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read() 253 uint32_t write_view; in ring_buffer_view_can_read() local 254 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_view_can_read() 256 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read() 262 uint32_t write_view; in ring_buffer_available_read() local 263 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_available_read() 266 v, write_view - r->read_pos); in ring_buffer_available_read() 268 return get_ring_pos(write_view - r->read_pos); in ring_buffer_available_read()
|
/hardware/google/aemu/base/ |
D | ring_buffer.cpp | 62 uint32_t write_view; in ring_buffer_can_read() local 63 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_can_read() 64 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read() 239 uint32_t write_view; in ring_buffer_view_can_read() local 240 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_view_can_read() 242 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read() 248 uint32_t write_view; in ring_buffer_available_read() local 249 __atomic_load(&r->write_pos, &write_view, __ATOMIC_SEQ_CST); in ring_buffer_available_read() 252 v, write_view - r->read_pos); in ring_buffer_available_read() 254 return get_ring_pos(write_view - r->read_pos); in ring_buffer_available_read()
|