Searched refs:CRAS_SHM_BUFFERS_MASK (Results 1 – 1 of 1) sorted by relevance
17 #define CRAS_SHM_BUFFERS_MASK (CRAS_NUM_SHM_BUFFERS - 1) macro79 idx = idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buff_for_idx()113 unsigned i = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_curr_read_frames()131 unsigned i = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_read_buffer_base()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()177 unsigned buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames()192 buf_idx = (buf_idx + 1) & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames()239 size_t buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_frames_in_curr_buffer()255 size_t buf_idx = shm->area->write_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_is_buffer_available()[all …]