Home
last modified time | relevance | path

Searched refs:samples_info (Results 1 – 11 of 11) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.c91 struct cras_shm_info *samples_info, int samples_prot, in cras_audio_shm_create() argument
97 if (!header_info || !samples_info || !shm_out) { in cras_audio_shm_create()
124 ret = cras_shm_info_move(samples_info, &shm->samples_info); in cras_audio_shm_create()
137 shm->samples = mmap(NULL, shm->samples_info.length, samples_prot, in cras_audio_shm_create()
138 MAP_SHARED, shm->samples_info.fd, 0); in cras_audio_shm_create()
154 cras_shm_info_cleanup(samples_info); in cras_audio_shm_create()
165 munmap(shm->samples, shm->samples_info.length); in cras_audio_shm_destroy()
166 cras_shm_info_cleanup(&shm->samples_info); in cras_audio_shm_destroy()
Dcras_shm.h131 struct cras_shm_info samples_info; member
153 struct cras_shm_info *samples_info, int samples_prot,
170 return MIN(buffer_offset, shm->samples_info.length); in cras_shm_get_checked_buffer_offset()
197 if (buffer_offset + read_offset > shm->samples_info.length) in cras_shm_get_checked_read_offset()
218 if (buffer_offset + write_offset > shm->samples_info.length) in cras_shm_get_checked_write_offset()
219 return shm->samples_info.length - buffer_offset; in cras_shm_get_checked_write_offset()
590 return shm->samples_info.length; in cras_shm_samples_size()
/external/adhd/cras/src/server/
Dcras_rstream.c38 struct cras_shm_info header_info, samples_info; in setup_shm_area() local
64 &samples_info); in setup_shm_area()
72 &samples_info); in setup_shm_area()
85 rc = cras_audio_shm_create(&header_info, &samples_info, samples_prot, in setup_shm_area()
Dcras_rstream.h202 *samples_fd = stream->shm->samples_info.fd; in cras_rstream_get_shm_fds()
/external/adhd/cras/src/tests/
Dshm_unittest.cc22 shm_.samples_info.length = 2048; in SetUp()
333 shm_.samples_info.length = samples_length; in TEST_F()
411 shm_.samples_info.length = samples_length; in TEST_F()
450 shm_.samples_info.length = samples_length; in TEST_F()
507 shm_.samples_info.length = samples_length; in TEST_F()
Dcras_abi_unittest.cc48 shm->samples_info.length = used_size * 2; in InitShm()
Ddev_io_stubs.cc39 shm->samples_info.length = samples_size; in create_shm()
Dcras_client_unittest.cc55 shm->samples_info.length = used_size * 2; in InitShm()
Ddev_stream_unittest.cc210 shm->samples_info.length = cras_shm_calculate_samples_size(used_size); in SetupShm()
/external/adhd/cras/src/libcras/
Dcras_client.c1500 struct cras_shm_info header_info, samples_info; in stream_connected() local
1515 &samples_info); in stream_connected()
1526 rc = cras_audio_shm_create(&header_info, &samples_info, samples_prot, in stream_connected()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4939 pub samples_info: cras_shm_info, field
4985 unsafe { &(*(::std::ptr::null::<cras_audio_shm>())).samples_info as *const _ as usize }, in bindgen_test_layout_cras_audio_shm()
4991 stringify!(samples_info) in bindgen_test_layout_cras_audio_shm()