Searched refs:read_buf_idx (Results 1 – 6 of 6) sorted by relevance
/external/adhd/cras/src/common/ |
D | cras_shm.h | 52 uint32_t read_buf_idx; /* use buffer A or B */ member 225 unsigned buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_curr_read_frames() 241 unsigned i = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_read_buffer_base() 284 unsigned buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames() 341 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_frames_in_curr_buffer() 447 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read() 470 header->read_buf_idx = buf_idx; in cras_shm_buffer_read() 479 size_t buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read_current() 488 header->read_buf_idx = buf_idx; in cras_shm_buffer_read_current()
|
/external/adhd/cras/src/tests/ |
D | cras_client_unittest.cc | 135 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()
|
D | shm_unittest.cc | 60 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()
|
/external/adhd/cras/client/libcras/src/ |
D | cras_shm.rs | 55 read_buf_idx: VolatileRef<'a, u32>, field 116 read_buf_idx: vref_from_addr!(addr, read_buf_idx), in new() 243 self.read_buf_idx.load() & CRAS_SHM_BUFFERS_MASK in get_read_buf_idx() 254 self.read_buf_idx in switch_read_buf_idx() 815 header.read_buf_idx.store(1); in cras_audio_header_get_write_offset_and_len() 826 header.read_buf_idx.store(0); in cras_audio_header_get_write_offset_and_len() 845 header.read_buf_idx.store(1); in cras_audio_header_get_write_offset_and_len() 883 header.read_buf_idx.store(1); in cras_audio_header_set_buffer_offset()
|
/external/adhd/cras/src/server/ |
D | dev_stream.c | 534 frames_ready, rstream->shm->header->read_buf_idx); in dev_stream_capture_update_rstream()
|
/external/adhd/cras/client/cras-sys/src/ |
D | gen.rs | 4450 pub read_buf_idx: u32, field 4486 &(*(::std::ptr::null::<cras_audio_shm_header>())).read_buf_idx as *const _ as usize in bindgen_test_layout_cras_audio_shm_header() 4493 stringify!(read_buf_idx) in bindgen_test_layout_cras_audio_shm_header()
|