Searched refs:buffer_share (Results 1 – 16 of 16) sorted by relevance
/external/adhd/cras/src/server/ |
D | buffer_share.h | 18 struct buffer_share { struct 28 struct buffer_share *buffer_share_create(unsigned int buf_sz); argument 31 void buffer_share_destroy(struct buffer_share *mix); 34 int buffer_share_add_id(struct buffer_share *mix, unsigned int id, void *data); 37 int buffer_share_rm_id(struct buffer_share *mix, unsigned int id); 40 int buffer_share_offset_update(struct buffer_share *mix, unsigned int id, 47 unsigned int buffer_share_get_new_write_point(struct buffer_share *mix); 53 unsigned int buffer_share_id_offset(const struct buffer_share *mix, 59 void *buffer_share_get_data(const struct buffer_share *mix, unsigned int id);
|
D | buffer_share.c | 12 static inline struct id_offset *find_unused(const struct buffer_share *mix) in find_unused() 24 static inline struct id_offset *find_id(const struct buffer_share *mix, in find_id() 37 static void alloc_more_ids(struct buffer_share *mix) in alloc_more_ids() 51 struct buffer_share *buffer_share_create(unsigned int buf_sz) in buffer_share_create() 53 struct buffer_share *mix; in buffer_share_create() 55 mix = (struct buffer_share *)calloc(1, sizeof(*mix)); in buffer_share_create() 64 void buffer_share_destroy(struct buffer_share *mix) in buffer_share_destroy() 72 int buffer_share_add_id(struct buffer_share *mix, unsigned int id, void *data) in buffer_share_add_id() 93 int buffer_share_rm_id(struct buffer_share *mix, unsigned int id) in buffer_share_rm_id() 106 int buffer_share_offset_update(struct buffer_share *mix, unsigned int id, in buffer_share_offset_update() [all …]
|
D | input_data.h | 60 struct buffer_share *offsets, 75 struct buffer_share *offsets,
|
D | input_data.c | 146 struct buffer_share *offsets, in input_data_get_for_stream() 182 struct buffer_share *offsets, unsigned int frames) in input_data_put_for_stream()
|
D | audio_thread.h | 16 struct buffer_share;
|
D | cras_iodev.h | 24 struct buffer_share; 305 struct buffer_share *buf_state;
|
D | cras_rstream.h | 88 struct buffer_share *buf_state;
|
/external/adhd/cras/src/tests/ |
D | buffer_share_unittest.cc | 23 buffer_share* dm = buffer_share_create(1024); in TEST_F() 24 EXPECT_NE(static_cast<buffer_share*>(NULL), dm); in TEST_F() 29 buffer_share* dm = buffer_share_create(1024); in TEST_F() 46 buffer_share* dm = buffer_share_create(1024); in TEST_F() 61 buffer_share* dm = buffer_share_create(1024); in TEST_F() 83 buffer_share* dm = buffer_share_create(1024); in TEST_F()
|
D | rstream_unittest.cc | 366 struct buffer_share* buffer_share_create(unsigned int buf_sz) { in buffer_share_create() 370 void buffer_share_destroy(struct buffer_share* mix) {} in buffer_share_destroy() 372 int buffer_share_offset_update(struct buffer_share* mix, in buffer_share_offset_update() 378 unsigned int buffer_share_get_new_write_point(struct buffer_share* mix) { in buffer_share_get_new_write_point() 382 int buffer_share_add_id(struct buffer_share* mix, unsigned int id, void* data) { in buffer_share_add_id() 386 int buffer_share_rm_id(struct buffer_share* mix, unsigned int id) { in buffer_share_rm_id() 390 unsigned int buffer_share_id_offset(const struct buffer_share* mix, in buffer_share_id_offset()
|
D | input_data_unittest.cc | 32 struct buffer_share* offsets; in TEST()
|
D | dev_io_unittest.cc | 359 struct buffer_share* offsets, in input_data_get_for_stream() 367 struct buffer_share* offsets, in input_data_put_for_stream()
|
D | iodev_unittest.cc | 2448 struct buffer_share* buffer_share_create(unsigned int buf_sz) { in buffer_share_create() 2452 void buffer_share_destroy(struct buffer_share* mix) {} in buffer_share_destroy() 2454 int buffer_share_offset_update(struct buffer_share* mix, in buffer_share_offset_update() 2460 unsigned int buffer_share_get_new_write_point(struct buffer_share* mix) { in buffer_share_get_new_write_point() 2464 int buffer_share_add_id(struct buffer_share* mix, unsigned int id, void* data) { in buffer_share_add_id() 2469 int buffer_share_rm_id(struct buffer_share* mix, unsigned int id) { in buffer_share_rm_id() 2473 unsigned int buffer_share_id_offset(const struct buffer_share* mix, in buffer_share_id_offset()
|
D | timing_unittest.cc | 1200 struct buffer_share* offsets, in input_data_get_for_stream() 1208 struct buffer_share* offsets, in input_data_put_for_stream() 1233 void* buffer_share_get_data(const struct buffer_share* mix, unsigned int id) { in buffer_share_get_data()
|
D | audio_thread_unittest.cc | 1398 struct buffer_share* offsets, in input_data_get_for_stream() 1406 struct buffer_share* offsets, in input_data_put_for_stream()
|
D | dev_stream_unittest.cc | 1191 void* buffer_share_get_data(const struct buffer_share* mix, unsigned int id) { in buffer_share_get_data()
|
/external/adhd/cras/src/ |
D | Makefile.am | 891 server/buffer_share.c
|