Searched refs:write_view (Results 1 – 1 of 1) sorted by relevance
76 uint32_t write_view; in ring_buffer_can_read() local77 __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() local254 __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() local263 __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()