Lines Matching defs:shm
75 static inline uint8_t *cras_shm_buff_for_idx(const struct cras_audio_shm *shm, in cras_shm_buff_for_idx()
85 unsigned cras_shm_check_read_offset(const struct cras_audio_shm *shm, in cras_shm_check_read_offset()
98 unsigned cras_shm_check_write_offset(const struct cras_audio_shm *shm, in cras_shm_check_write_offset()
111 unsigned cras_shm_get_curr_read_frames(const struct cras_audio_shm *shm) in cras_shm_get_curr_read_frames()
129 uint8_t *cras_shm_get_read_buffer_base(const struct cras_audio_shm *shm) in cras_shm_get_read_buffer_base()
137 uint8_t *cras_shm_get_write_buffer_base(const struct cras_audio_shm *shm) in cras_shm_get_write_buffer_base()
146 uint8_t *cras_shm_get_writeable_frames(const struct cras_audio_shm *shm, in cras_shm_get_writeable_frames()
173 uint8_t *cras_shm_get_readable_frames(const struct cras_audio_shm *shm, in cras_shm_get_readable_frames()
206 static inline size_t cras_shm_get_bytes_queued(const struct cras_audio_shm *shm) in cras_shm_get_bytes_queued()
225 static inline int cras_shm_get_frames(const struct cras_audio_shm *shm) in cras_shm_get_frames()
237 size_t cras_shm_get_frames_in_curr_buffer(const struct cras_audio_shm *shm) in cras_shm_get_frames_in_curr_buffer()
253 static inline int cras_shm_is_buffer_available(const struct cras_audio_shm *shm) in cras_shm_is_buffer_available()
262 size_t cras_shm_get_num_writeable(const struct cras_audio_shm *shm) in cras_shm_get_num_writeable()
273 static inline int cras_shm_check_write_overrun(struct cras_audio_shm *shm) in cras_shm_check_write_overrun()
296 void cras_shm_buffer_written(struct cras_audio_shm *shm, size_t frames) in cras_shm_buffer_written()
309 unsigned int cras_shm_frames_written(const struct cras_audio_shm *shm) in cras_shm_frames_written()
317 static inline void cras_shm_buffer_write_complete(struct cras_audio_shm *shm) in cras_shm_buffer_write_complete()
330 void cras_shm_buffer_written_start(struct cras_audio_shm *shm, size_t frames) in cras_shm_buffer_written_start()
342 void cras_shm_buffer_read(struct cras_audio_shm *shm, size_t frames) in cras_shm_buffer_read()
374 void cras_shm_buffer_read_current(struct cras_audio_shm *shm, size_t frames) in cras_shm_buffer_read_current()
392 void cras_shm_set_volume_scaler(struct cras_audio_shm *shm, float volume_scaler) in cras_shm_set_volume_scaler()
399 static inline float cras_shm_get_volume_scaler(const struct cras_audio_shm *shm) in cras_shm_get_volume_scaler()
405 static inline void cras_shm_set_mute(struct cras_audio_shm *shm, size_t mute) in cras_shm_set_mute()
411 static inline size_t cras_shm_get_mute(const struct cras_audio_shm *shm) in cras_shm_get_mute()
417 static inline void cras_shm_set_frame_bytes(struct cras_audio_shm *shm, in cras_shm_set_frame_bytes()
426 static inline unsigned cras_shm_frame_bytes(const struct cras_audio_shm *shm) in cras_shm_frame_bytes()
433 void cras_shm_set_callback_pending(struct cras_audio_shm *shm, int pending) in cras_shm_set_callback_pending()
439 static inline int cras_shm_callback_pending(const struct cras_audio_shm *shm) in cras_shm_callback_pending()
448 void cras_shm_set_used_size(struct cras_audio_shm *shm, unsigned used_size) in cras_shm_set_used_size()
456 static inline unsigned cras_shm_used_size(const struct cras_audio_shm *shm) in cras_shm_used_size()
462 static inline unsigned cras_shm_used_frames(const struct cras_audio_shm *shm) in cras_shm_used_frames()
468 static inline unsigned cras_shm_total_size(const struct cras_audio_shm *shm) in cras_shm_total_size()
476 unsigned cras_shm_num_overruns(const struct cras_audio_shm *shm) in cras_shm_num_overruns()
484 static inline void cras_shm_copy_shared_config(struct cras_audio_shm *shm) in cras_shm_copy_shared_config()