Home
last modified time | relevance | path

Searched refs:write_buf_idx (Results 1 – 9 of 9) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h53 uint32_t write_buf_idx; member
251 unsigned i = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_write_buffer_base()
261 unsigned buf_idx = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_writeable_frames()
359 size_t buf_idx = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_is_buffer_available()
380 size_t write_buf_idx = in cras_shm_check_write_overrun() local
381 shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_check_write_overrun()
383 if (!shm->header->write_in_progress[write_buf_idx]) { in cras_shm_check_write_overrun()
386 if (shm->header->write_offset[write_buf_idx]) { in cras_shm_check_write_overrun()
391 memset(cras_shm_buff_for_idx(shm, write_buf_idx), 0, used_size); in cras_shm_check_write_overrun()
393 shm->header->write_in_progress[write_buf_idx] = 1; in cras_shm_check_write_overrun()
[all …]
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs62 write_buf_idx: VolatileRef<'a, u32>, field
123 write_buf_idx: vref_from_addr!(addr, write_buf_idx), in new()
250 self.write_buf_idx.load() & CRAS_SHM_BUFFERS_MASK in get_write_buf_idx()
259 self.write_buf_idx in switch_write_buf_idx()
997 assert_eq!(header.write_buf_idx.load(), 1); in cras_audio_header_commit_written_frame_test()
1049 header.write_buf_idx.store(0); in cras_audio_header_get_write_offset_and_len()
1064 header.write_buf_idx.store(1); in cras_audio_header_get_write_offset_and_len()
1077 header.write_buf_idx.store(0); in cras_audio_header_get_write_offset_and_len()
1082 header.write_buf_idx.store(0); in cras_audio_header_get_write_offset_and_len()
1117 header.write_buf_idx.store(0); in cras_audio_header_set_buffer_offset()
/external/adhd/cras/src/tests/
Dshm_unittest.cc158 shm_.header->write_buf_idx = 0; in TEST_F()
168 shm_.header->write_buf_idx = 0; in TEST_F()
179 shm_.header->write_buf_idx = 0; in TEST_F()
191 shm_.header->write_buf_idx = 0; in TEST_F()
199 shm_.header->write_buf_idx = 1; in TEST_F()
247 shm_.header->write_buf_idx = 0; in TEST_F()
272 shm_.header->write_buf_idx = 0; in TEST_F()
285 shm_.header->write_buf_idx = 0; in TEST_F()
Dcras_abi_unittest.cc104 stream.shm->header->write_buf_idx = 0; in TEST_F()
Dcras_client_unittest.cc134 shm->header->write_buf_idx = 0; in TEST_F()
Daudio_thread_unittest.cc512 shm_header->write_buf_idx = 0; in TEST_F()
671 shm_header->write_buf_idx = 0; in TEST_F()
Daudio_thread_unittest_obsolete.cc970 shm_->area->write_buf_idx = 1; in TEST_F()
972 shm2_->area->write_buf_idx = 1; in TEST_F()
/external/adhd/cras/src/server/
Ddev_stream.c308 ATLOG(atlog, AUDIO_THREAD_CONV_COPY, shm->header->write_buf_idx, in capture_copy_converted_to_stream()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4721 pub write_buf_idx: u32, field
4768 &(*(::std::ptr::null::<cras_audio_shm_header>())).write_buf_idx as *const _ as usize in bindgen_test_layout_cras_audio_shm_header()
4775 stringify!(write_buf_idx) in bindgen_test_layout_cras_audio_shm_header()