Home
last modified time | relevance | path

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

/external/adhd/cras/src/common/
Dcras_shm.h52 uint32_t write_buf_idx; member
139 unsigned i = shm->area->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_write_buffer_base()
150 unsigned i = shm->area->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_writeable_frames()
255 size_t buf_idx = shm->area->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_is_buffer_available()
276 size_t write_buf_idx = shm->area->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_check_write_overrun() local
278 if (!shm->area->write_in_progress[write_buf_idx]) { in cras_shm_check_write_overrun()
281 if (shm->area->write_offset[write_buf_idx]) { in cras_shm_check_write_overrun()
286 memset(cras_shm_buff_for_idx(shm, write_buf_idx), 0, used_size); in cras_shm_check_write_overrun()
288 shm->area->write_in_progress[write_buf_idx] = 1; in cras_shm_check_write_overrun()
289 shm->area->write_offset[write_buf_idx] = 0; in cras_shm_check_write_overrun()
[all …]
/external/adhd/cras/src/tests/
Dshm_unittest.cc144 shm_.area->write_buf_idx = 0; in TEST_F()
154 shm_.area->write_buf_idx = 0; in TEST_F()
165 shm_.area->write_buf_idx = 0; in TEST_F()
177 shm_.area->write_buf_idx = 0; in TEST_F()
186 shm_.area->write_buf_idx = 1; in TEST_F()
234 shm_.area->write_buf_idx = 0; in TEST_F()
259 shm_.area->write_buf_idx = 0; in TEST_F()
272 shm_.area->write_buf_idx = 0; in TEST_F()
Dcras_client_unittest.cc134 shm->area->write_buf_idx = 0; in TEST_F()
Daudio_thread_unittest_obsolete.cc988 shm_->area->write_buf_idx = 1; in TEST_F()
990 shm2_->area->write_buf_idx = 1; in TEST_F()
/external/adhd/cras/src/server/
Ddev_stream.c328 shm->area->write_buf_idx, in capture_copy_converted_to_stream()