Home
last modified time | relevance | path

Searched refs:eager_reader_t (Results 1 – 5 of 5) sorted by relevance

/system/bt/osi/include/
Deager_reader.h28 typedef struct eager_reader_t eager_reader_t; typedef
31 typedef void (*eager_reader_cb)(eager_reader_t *reader, void *context);
38 eager_reader_t *eager_reader_new(
48 void eager_reader_free(eager_reader_t *reader);
53 void eager_reader_register(eager_reader_t *reader, reactor_t *reactor, eager_reader_cb read_cb, voi…
57 void eager_reader_unregister(eager_reader_t *reader);
63 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size);
67 thread_t* eager_reader_get_read_thread(const eager_reader_t *reader);
/system/bt/osi/src/
Deager_reader.c44 struct eager_reader_t { struct
61 static bool has_byte(const eager_reader_t *reader); argument
65 eager_reader_t *eager_reader_new( in eager_reader_new()
78 eager_reader_t *ret = osi_calloc(sizeof(eager_reader_t)); in eager_reader_new()
118 void eager_reader_free(eager_reader_t *reader) { in eager_reader_free()
141 void eager_reader_register(eager_reader_t *reader, reactor_t *reactor, eager_reader_cb read_cb, voi… in eager_reader_register()
154 void eager_reader_unregister(eager_reader_t *reader) { in eager_reader_unregister()
164 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size) { in eager_reader_read()
209 thread_t* eager_reader_get_read_thread(const eager_reader_t *reader) { in eager_reader_get_read_thread()
214 static bool has_byte(const eager_reader_t *reader) { in has_byte()
[all …]
/system/bt/osi/test/
Deager_reader_test.cpp87 static void expect_data(eager_reader_t *reader, void *context) { in expect_data()
100 static void expect_data_multibyte(eager_reader_t *reader, void *context) { in expect_data_multibyte()
118eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
124eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
137eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
/system/bt/hci/src/
Dhci_hal_mct.c44 static eager_reader_t *event_stream;
45 static eager_reader_t *acl_stream;
48 static void event_event_stream_has_bytes(eager_reader_t *reader, void *context);
49 static void event_acl_stream_has_bytes(eager_reader_t *reader, void *context);
183 static void event_event_stream_has_bytes(UNUSED_ATTR eager_reader_t *reader, UNUSED_ATTR void *cont… in event_event_stream_has_bytes()
187 static void event_acl_stream_has_bytes(UNUSED_ATTR eager_reader_t *reader, UNUSED_ATTR void *contex… in event_acl_stream_has_bytes()
Dhci_hal_h4.c49 static eager_reader_t *uart_stream;
55 static void event_uart_has_bytes(eager_reader_t *reader, void *context);
222 static void event_uart_has_bytes(eager_reader_t *reader, UNUSED_ATTR void *context) { in event_uart_has_bytes()