Searched refs:CRAS_SHM_BUFFERS_MASK (Results 1 – 3 of 3) sorted by relevance
18 #define CRAS_SHM_BUFFERS_MASK (CRAS_NUM_SHM_BUFFERS - 1) macro176 idx = idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buff_for_idx()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()249 unsigned i = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_write_buffer_base()259 unsigned buf_idx = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_writeable_frames()284 unsigned buf_idx = shm->header->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames()295 buf_idx = (buf_idx + 1) & 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()357 size_t buf_idx = shm->header->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_is_buffer_available()[all …]
14 cras_audio_shm_header, cras_server_state, CRAS_NUM_SHM_BUFFERS, CRAS_SHM_BUFFERS_MASK,239 self.write_buf_idx.load() & CRAS_SHM_BUFFERS_MASK in get_write_buf_idx()243 self.read_buf_idx.load() & CRAS_SHM_BUFFERS_MASK in get_read_buf_idx()
36 pub const CRAS_SHM_BUFFERS_MASK: u32 = 1; constant