Home
last modified time | relevance | path

Searched refs:buffer_share (Results 1 – 16 of 16) sorted by relevance

/external/adhd/cras/src/server/
Dbuffer_share.h18 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);
Dbuffer_share.c12 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 …]
Dinput_data.h60 struct buffer_share *offsets,
75 struct buffer_share *offsets,
Dinput_data.c146 struct buffer_share *offsets, in input_data_get_for_stream()
182 struct buffer_share *offsets, unsigned int frames) in input_data_put_for_stream()
Daudio_thread.h16 struct buffer_share;
Dcras_iodev.h24 struct buffer_share;
305 struct buffer_share *buf_state;
Dcras_rstream.h88 struct buffer_share *buf_state;
/external/adhd/cras/src/tests/
Dbuffer_share_unittest.cc23 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()
Drstream_unittest.cc366 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()
Dinput_data_unittest.cc32 struct buffer_share* offsets; in TEST()
Ddev_io_unittest.cc359 struct buffer_share* offsets, in input_data_get_for_stream()
367 struct buffer_share* offsets, in input_data_put_for_stream()
Diodev_unittest.cc2448 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()
Dtiming_unittest.cc1200 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()
Daudio_thread_unittest.cc1398 struct buffer_share* offsets, in input_data_get_for_stream()
1406 struct buffer_share* offsets, in input_data_put_for_stream()
Ddev_stream_unittest.cc1191 void* buffer_share_get_data(const struct buffer_share* mix, unsigned int id) { in buffer_share_get_data()
/external/adhd/cras/src/
DMakefile.am891 server/buffer_share.c