Home
last modified time | relevance | path

Searched refs:samples_info (Results 1 – 10 of 10) 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()
128 ret = cras_shm_info_move(samples_info, &shm->samples_info); in cras_audio_shm_create()
131 samples_info = &shm->samples_info; in cras_audio_shm_create()
141 shm->samples = mmap(NULL, samples_info->length, samples_prot, in cras_audio_shm_create()
142 MAP_SHARED, samples_info->fd, 0); in cras_audio_shm_create()
160 cras_shm_info_cleanup(samples_info); in cras_audio_shm_create()
170 munmap(shm->samples, shm->samples_info.length); in cras_audio_shm_destroy()
171 cras_shm_info_cleanup(&shm->samples_info); in cras_audio_shm_destroy()
Dcras_shm.h131 struct cras_shm_info samples_info; member
151 struct cras_shm_info *samples_info, int samples_prot,
168 return MIN(buffer_offset, shm->samples_info.length); in cras_shm_get_checked_buffer_offset()
195 if (buffer_offset + read_offset > shm->samples_info.length) in cras_shm_get_checked_read_offset()
216 if (buffer_offset + write_offset > shm->samples_info.length) in cras_shm_get_checked_write_offset()
217 return shm->samples_info.length - buffer_offset; in cras_shm_get_checked_write_offset()
587 return shm->samples_info.length; in cras_shm_samples_size()
/external/adhd/cras/src/server/
Dcras_rstream.c81 struct cras_shm_info header_info, samples_info; in setup_shm_area() local
104 &samples_info); in setup_shm_area()
112 &samples_info); in setup_shm_area()
125 rc = cras_audio_shm_create(&header_info, &samples_info, samples_prot, in setup_shm_area()
Dcras_rstream.h276 *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()
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.c1388 struct cras_shm_info header_info, samples_info; in stream_connected() local
1405 &samples_info); in stream_connected()
1417 rc = cras_audio_shm_create(&header_info, &samples_info, samples_prot, in stream_connected()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4669 pub samples_info: cras_shm_info, field
4715 unsafe { &(*(::std::ptr::null::<cras_audio_shm>())).samples_info as *const _ as usize }, in bindgen_test_layout_cras_audio_shm()
4721 stringify!(samples_info) in bindgen_test_layout_cras_audio_shm()