Home
last modified time | relevance | path

Searched refs:read_buf_idx (Results 1 – 7 of 7) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h52 uint32_t read_buf_idx; /* use buffer A or B */ member
227 unsigned buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_curr_read_frames()
243 unsigned i = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_read_buffer_base()
286 unsigned buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames()
343 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_frames_in_curr_buffer()
449 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read()
472 header->read_buf_idx = buf_idx; in cras_shm_buffer_read()
481 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read_current()
490 header->read_buf_idx = buf_idx; in cras_shm_buffer_read_current()
/external/adhd/cras/src/tests/
Dcras_client_unittest.cc135 shm->header->read_buf_idx = 0; in TEST_F()
146 EXPECT_EQ(1, shm->header->read_buf_idx); in TEST_F()
152 shm->header->read_buf_idx = 0; in TEST_F()
157 EXPECT_EQ(0, shm->header->read_buf_idx); in TEST_F()
161 shm->header->read_buf_idx = 0; in TEST_F()
166 EXPECT_EQ(0, shm->header->read_buf_idx); in TEST_F()
Dshm_unittest.cc60 EXPECT_EQ(1, shm_.header->read_buf_idx); in TEST_F()
106 EXPECT_EQ(1, shm_.header->read_buf_idx); in TEST_F()
126 EXPECT_EQ(0, shm_.header->read_buf_idx); in TEST_F()
135 shm_.header->read_buf_idx = buf_idx; in TEST_F()
152 EXPECT_EQ(0, shm_.header->read_buf_idx); in TEST_F()
248 shm_.header->read_buf_idx = 0; in TEST_F()
Dcras_abi_unittest.cc106 stream.shm->header->read_buf_idx = 0; in TEST_F()
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs61 read_buf_idx: VolatileRef<'a, u32>, field
122 read_buf_idx: vref_from_addr!(addr, read_buf_idx), in new()
254 self.read_buf_idx.load() & CRAS_SHM_BUFFERS_MASK in get_read_buf_idx()
265 self.read_buf_idx in switch_read_buf_idx()
1054 header.read_buf_idx.store(1); in cras_audio_header_get_write_offset_and_len()
1065 header.read_buf_idx.store(0); in cras_audio_header_get_write_offset_and_len()
1084 header.read_buf_idx.store(1); in cras_audio_header_get_write_offset_and_len()
1122 header.read_buf_idx.store(1); in cras_audio_header_set_buffer_offset()
/external/adhd/cras/src/server/
Ddev_stream.c550 frames_ready, rstream->shm->header->read_buf_idx); in dev_stream_capture_update_rstream()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4720 pub read_buf_idx: u32, field
4756 &(*(::std::ptr::null::<cras_audio_shm_header>())).read_buf_idx as *const _ as usize in bindgen_test_layout_cras_audio_shm_header()
4763 stringify!(read_buf_idx) in bindgen_test_layout_cras_audio_shm_header()