Home
last modified time | relevance | path

Searched refs:cras_audio_shm (Results 1 – 21 of 21) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h127 struct cras_audio_shm { struct
154 struct cras_audio_shm **shm_out);
160 void cras_audio_shm_destroy(struct cras_audio_shm *shm);
164 cras_shm_get_checked_buffer_offset(const struct cras_audio_shm *shm, in cras_shm_get_checked_buffer_offset()
174 static inline uint8_t *cras_shm_buff_for_idx(const struct cras_audio_shm *shm, in cras_shm_buff_for_idx()
185 cras_shm_get_checked_read_offset(const struct cras_audio_shm *shm, in cras_shm_get_checked_read_offset()
204 cras_shm_get_checked_write_offset(const struct cras_audio_shm *shm, in cras_shm_get_checked_write_offset()
225 cras_shm_get_curr_read_frames(const struct cras_audio_shm *shm) in cras_shm_get_curr_read_frames()
241 cras_shm_get_read_buffer_base(const struct cras_audio_shm *shm) in cras_shm_get_read_buffer_base()
249 cras_shm_get_write_buffer_base(const struct cras_audio_shm *shm) in cras_shm_get_write_buffer_base()
[all …]
Dcras_shm.c92 struct cras_audio_shm **shm_out) in cras_audio_shm_create()
94 struct cras_audio_shm *shm; in cras_audio_shm_create()
159 void cras_audio_shm_destroy(struct cras_audio_shm *shm) in cras_audio_shm_destroy()
/external/adhd/cras/src/tests/
Dcras_abi_unittest.cc40 struct cras_audio_shm* InitShm(int frames) { in InitShm()
41 struct cras_audio_shm* shm = in InitShm()
42 static_cast<struct cras_audio_shm*>(calloc(1, sizeof(*shm))); in InitShm()
53 void DestroyShm(struct cras_audio_shm* shm) { in DestroyShm()
Ddev_io_stubs.h32 void destroy_shm(struct cras_audio_shm* shm);
33 using ShmPtr = std::unique_ptr<cras_audio_shm, decltype(destroy_shm)*>;
62 cras_audio_shm* shm);
Ddev_io_stubs.cc27 ShmPtr shm(reinterpret_cast<struct cras_audio_shm*>( in create_shm()
28 calloc(1, sizeof(struct cras_audio_shm))), in create_shm()
43 void destroy_shm(struct cras_audio_shm* shm) { in destroy_shm()
53 cras_audio_shm* shm) { in create_rstream()
Drstream_unittest.cc130 struct cras_audio_shm* shm_ret; in TEST_F()
131 struct cras_audio_shm shm_mapped; in TEST_F()
167 struct cras_audio_shm* shm_ret; in TEST_F()
168 struct cras_audio_shm shm_mapped; in TEST_F()
Dcras_client_unittest.cc47 struct cras_audio_shm* InitShm() { in InitShm()
48 struct cras_audio_shm* shm = in InitShm()
49 static_cast<struct cras_audio_shm*>(calloc(1, sizeof(*shm))); in InitShm()
122 struct cras_audio_shm* shm; in TEST_F()
Daudio_thread_unittest_obsolete.cc131 struct cras_audio_shm* shm; in SetupRstream()
212 struct cras_audio_shm* shm_;
213 struct cras_audio_shm* shm2_;
548 struct cras_audio_shm* shm; in SetupRstream()
641 struct cras_audio_shm* shm_;
642 struct cras_audio_shm* shm2_;
1175 cras_audio_shm* shm; in add_rm_two_streams()
1287 cras_audio_shm* shm; in TEST_F()
1332 cras_audio_shm* shm; in TEST_F()
1365 cras_audio_shm* shm; in TEST_F()
[all …]
Dcapture_rclient_unittest.cc26 static struct cras_audio_shm mock_shm;
Ddev_stream_unittest.cc194 void SetupShm(struct cras_audio_shm** shm_out) { in SetupShm()
196 struct cras_audio_shm* shm; in SetupShm()
199 shm = static_cast<struct cras_audio_shm*>( in SetupShm()
200 calloc(1, sizeof(struct cras_audio_shm))); in SetupShm()
Dplayback_rclient_unittest.cc27 static struct cras_audio_shm mock_shm;
Dshm_unittest.cc36 struct cras_audio_shm shm_;
Dcontrol_rclient_unittest.cc50 static struct cras_audio_shm mock_shm;
Daudio_thread_unittest.cc121 rstream->shm = static_cast<cras_audio_shm*>(calloc(1, sizeof(*rstream->shm))); in SetupRstream()
/external/adhd/cras/src/server/
Dcras_rstream.h79 struct cras_audio_shm *shm;
215 static inline struct cras_audio_shm *
281 const struct cras_audio_shm *shm = cras_rstream_shm(rstream); in cras_rstream_level()
287 const struct cras_audio_shm *shm = cras_rstream_shm(rstream); in cras_rstream_input_level_met()
Dcras_mix.h11 struct cras_audio_shm;
Ddev_stream.c285 struct cras_audio_shm *shm; in capture_copy_converted_to_stream()
348 struct cras_audio_shm *shm; in dev_stream_capture()
433 struct cras_audio_shm *shm; in dev_stream_capture_avail()
608 struct cras_audio_shm *shm; in dev_stream_set_delay()
Ddev_io.c208 struct cras_audio_shm *shm = cras_rstream_shm(rstream); in fetch_streams()
325 struct cras_audio_shm *shm; in get_stream_limit()
Daudio_thread.c403 struct cras_audio_shm *shm; in thread_drain_stream_ms_remaining()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4935 pub struct cras_audio_shm { struct
4945 ::std::mem::size_of::<cras_audio_shm>(), in bindgen_test_layout_cras_audio_shm() argument
4947 concat!("Size of: ", stringify!(cras_audio_shm)) in bindgen_test_layout_cras_audio_shm()
4950 ::std::mem::align_of::<cras_audio_shm>(), in bindgen_test_layout_cras_audio_shm()
4952 concat!("Alignment of ", stringify!(cras_audio_shm)) in bindgen_test_layout_cras_audio_shm()
4955 unsafe { &(*(::std::ptr::null::<cras_audio_shm>())).config as *const _ as usize }, in bindgen_test_layout_cras_audio_shm()
4959 stringify!(cras_audio_shm), in bindgen_test_layout_cras_audio_shm()
4965 unsafe { &(*(::std::ptr::null::<cras_audio_shm>())).header_info as *const _ as usize }, in bindgen_test_layout_cras_audio_shm()
4969 stringify!(cras_audio_shm), in bindgen_test_layout_cras_audio_shm()
4975 unsafe { &(*(::std::ptr::null::<cras_audio_shm>())).header as *const _ as usize }, in bindgen_test_layout_cras_audio_shm()
[all …]
/external/adhd/cras/src/libcras/
Dcras_client.c166 struct cras_audio_shm *shm;
1256 struct cras_audio_shm *shm = stream->shm; in handle_playback_request()