Searched refs:samples_info (Results 1 – 11 of 11) sorted by relevance
/external/adhd/cras/src/common/ |
D | cras_shm.c | 91 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()
|
D | cras_shm.h | 131 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/ |
D | cras_rstream.c | 38 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()
|
D | cras_rstream.h | 202 *samples_fd = stream->shm->samples_info.fd; in cras_rstream_get_shm_fds()
|
/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 22 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()
|
D | cras_abi_unittest.cc | 48 shm->samples_info.length = used_size * 2; in InitShm()
|
D | dev_io_stubs.cc | 39 shm->samples_info.length = samples_size; in create_shm()
|
D | cras_client_unittest.cc | 55 shm->samples_info.length = used_size * 2; in InitShm()
|
D | dev_stream_unittest.cc | 210 shm->samples_info.length = cras_shm_calculate_samples_size(used_size); in SetupShm()
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 1500 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/ |
D | gen.rs | 4939 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()
|