Searched refs:samples_info (Results 1 – 10 of 10) 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() 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()
|
D | cras_shm.h | 131 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/ |
D | cras_rstream.c | 81 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()
|
D | cras_rstream.h | 276 *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 | 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 | 1388 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/ |
D | gen.rs | 4669 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()
|