Home
last modified time | relevance | path

Searched refs:dev_ptr (Results 1 – 21 of 21) sorted by relevance

/external/adhd/cras/src/server/
Dcras_apm_list.h67 void *dev_ptr,
78 struct cras_apm *cras_apm_list_get_active_apm(void *stream_ptr, void *dev_ptr);
84 void cras_apm_list_start_apm(struct cras_apm_list *list, void *dev_ptr);
90 void cras_apm_list_stop_apm(struct cras_apm_list *list, void *dev_ptr);
110 void cras_apm_list_remove_apm(struct cras_apm_list *list, void *dev_ptr);
158 void cras_apm_list_set_aec_dump(struct cras_apm_list *list, void *dev_ptr,
181 cras_apm_list_add_apm(struct cras_apm_list *list, void *dev_ptr, in cras_apm_list_add_apm() argument
187 void *dev_ptr) in cras_apm_list_get_active_apm() argument
200 void *dev_ptr) in cras_apm_list_remove_apm() argument
222 void *dev_ptr) in cras_apm_list_start_apm() argument
[all …]
Dcras_apm_list.c71 void *dev_ptr; member
191 static struct active_apm *get_active_apm(void *stream_ptr, void *dev_ptr) in get_active_apm() argument
196 if ((active->apm->dev_ptr == dev_ptr) && in get_active_apm()
203 struct cras_apm *cras_apm_list_get_active_apm(void *stream_ptr, void *dev_ptr) in cras_apm_list_get_active_apm() argument
205 struct active_apm *active = get_active_apm(stream_ptr, dev_ptr); in cras_apm_list_get_active_apm()
217 void cras_apm_list_remove_apm(struct cras_apm_list *list, void *dev_ptr) in cras_apm_list_remove_apm() argument
222 if (apm->dev_ptr == dev_ptr) { in cras_apm_list_remove_apm()
268 void *dev_ptr, in cras_apm_list_add_apm() argument
275 if (apm->dev_ptr == dev_ptr) in cras_apm_list_add_apm()
318 apm->dev_ptr = dev_ptr; in cras_apm_list_add_apm()
[all …]
Dinput_data.c55 struct input_data *input_data_create(void *dev_ptr) in input_data_create() argument
59 data->dev_ptr = dev_ptr; in input_data_create()
154 apm = cras_apm_list_get_active_apm(stream, data->dev_ptr); in input_data_get_for_stream()
185 cras_apm_list_get_active_apm(stream, data->dev_ptr); in input_data_put_for_stream()
205 apm = cras_apm_list_get_active_apm(stream, data->dev_ptr); in input_data_get_software_gain_scaler()
Dcras_rstream.c296 stream->main_dev.dev_ptr = NULL; in cras_rstream_create()
352 void *dev_ptr) in cras_rstream_post_processing_format() argument
356 apm = cras_apm_list_get_active_apm((void *)stream, dev_ptr); in cras_rstream_post_processing_format()
429 void *dev_ptr) in cras_rstream_dev_attach() argument
431 if (buffer_share_add_id(rstream->buf_state, dev_id, dev_ptr) == 0) in cras_rstream_dev_attach()
439 rstream->main_dev.dev_ptr = dev_ptr; in cras_rstream_dev_attach()
454 rstream->main_dev.dev_ptr = NULL; in cras_rstream_dev_detach()
459 rstream->main_dev.dev_ptr = o->data; in cras_rstream_dev_detach()
Dinput_data.h24 void *dev_ptr; member
34 struct input_data *input_data_create(void *dev_ptr);
Dcras_rstream.h30 void *dev_ptr; member
244 void *dev_ptr);
260 void *dev_ptr);
Ddev_stream.c66 void *dev_ptr, struct timespec *cb_ts, in dev_stream_create() argument
96 cras_apm_list_start_apm(stream->apm_list, dev_ptr); in dev_stream_create()
97 ofmt = cras_rstream_post_processing_format(stream, dev_ptr) ?: in dev_stream_create()
138 cras_rstream_dev_attach(stream, dev_id, dev_ptr); in dev_stream_create()
145 void *dev_ptr = in dev_stream_destroy() local
148 cras_apm_list_stop_apm(dev_stream->stream->apm_list, dev_ptr); in dev_stream_destroy()
Ddev_stream.h68 void *dev_ptr, struct timespec *cb_ts,
Ddev_io.c60 return (struct cras_iodev *)stream->stream->main_dev.dev_ptr; in get_main_dev()
/external/adhd/cras/src/tests/
Dapm_list_unittest.cc24 static void* dev_ptr = reinterpret_cast<void*>(0x345); variable
120 apm = cras_apm_list_add_apm(list, dev_ptr, &fmt, 1); in TEST()
133 cras_apm_list_remove_apm(list, dev_ptr); in TEST()
158 EXPECT_NE((void*)NULL, cras_apm_list_add_apm(list, dev_ptr, &fmt, 1)); in TEST()
161 EXPECT_EQ((void*)NULL, cras_apm_list_get_active_apm(stream_ptr, dev_ptr)); in TEST()
163 cras_apm_list_start_apm(list, dev_ptr); in TEST()
164 EXPECT_NE((void*)NULL, cras_apm_list_get_active_apm(stream_ptr, dev_ptr)); in TEST()
172 cras_apm_list_stop_apm(list, dev_ptr); in TEST()
174 EXPECT_EQ((void*)NULL, cras_apm_list_get_active_apm(stream_ptr, dev_ptr)); in TEST()
178 cras_apm_list_remove_apm(list, dev_ptr); in TEST()
[all …]
Dinput_data_unittest.cc29 void* dev_ptr = reinterpret_cast<void*>(0x123); in TEST() local
42 data = input_data_create(dev_ptr); in TEST()
83 void* dev_ptr = reinterpret_cast<void*>(0x123); in TEST() local
92 data = input_data_create(dev_ptr); in TEST()
110 data = input_data_create(dev_ptr); in TEST()
118 struct cras_apm* cras_apm_list_get_active_apm(void* stream_ptr, void* dev_ptr) { in cras_apm_list_get_active_apm() argument
132 void cras_apm_list_remove_apm(struct cras_apm_list* list, void* dev_ptr) {} in cras_apm_list_remove_apm() argument
Drstream_stub.cc57 void* dev_ptr) {} in cras_rstream_dev_attach() argument
Drstream_unittest.cc421 struct cras_apm* cras_apm_list_get_active_apm(void* stream_ptr, void* dev_ptr) { in cras_apm_list_get_active_apm() argument
430 struct cras_apm* cras_apm_list_get(struct cras_apm_list* list, void* dev_ptr) { in cras_apm_list_get() argument
Ddev_io_stubs.cc157 stream->rstream->main_dev.dev_ptr = dev.get(); in add_stream_to_dev()
Ddev_stream_unittest.cc1152 void* dev_ptr) {} in cras_rstream_dev_attach() argument
1188 void* dev_ptr) { in cras_rstream_post_processing_format() argument
1194 void cras_apm_list_start_apm(struct cras_apm_list* list, void* dev_ptr){}; in cras_apm_list_start_apm() argument
1195 void cras_apm_list_stop_apm(struct cras_apm_list* list, void* dev_ptr){}; in cras_apm_list_stop_apm() argument
Daudio_thread_unittest.cc1155 void* dev_ptr) {} in cras_rstream_dev_attach() argument
1228 void* dev_ptr, in dev_stream_create() argument
1445 void* dev_ptr, in cras_apm_list_set_aec_dump() argument
Dtiming_unittest.cc1221 void* dev_ptr) { in cras_rstream_post_processing_format() argument
1236 void cras_apm_list_start_apm(struct cras_apm_list* list, void* dev_ptr){}; in cras_apm_list_start_apm() argument
1237 void cras_apm_list_stop_apm(struct cras_apm_list* list, void* dev_ptr){}; in cras_apm_list_stop_apm() argument
Ddev_io_unittest.cc453 void* dev_ptr, in dev_stream_create() argument
Diodev_list_unittest.cc2340 void* dev_ptr, in cras_apm_list_add_apm() argument
2345 void cras_apm_list_remove_apm(struct cras_apm_list* list, void* dev_ptr) {} in cras_apm_list_remove_apm() argument
Diodev_unittest.cc2750 struct input_data* input_data_create(void* dev_ptr) { in input_data_create() argument
/external/strace/
Ddm.c194 dm_print_dev(struct tcb *tcp, void *dev_ptr, size_t dev_size, void *dummy) in dm_print_dev() argument
196 uint64_t *dev = (uint64_t *) dev_ptr; in dm_print_dev()