Home
last modified time | relevance | path

Searched refs:fixed_queue_t (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_fixed_queue.h46 std::function<size_t(fixed_queue_t* queue)> body{
47 [this](fixed_queue_t* /* queue */) { return return_value; }};
48 size_t operator()(fixed_queue_t* queue) { return body(queue); }; in operator()
57 std::function<void*(fixed_queue_t* queue)> body{
58 [this](fixed_queue_t* /* queue */) { return return_value; }};
59 void* operator()(fixed_queue_t* queue) { return body(queue); }; in operator()
67 std::function<void(fixed_queue_t* queue, void* data)> body{
68 [](fixed_queue_t* /* queue */, void* /* data */) {}};
69 void operator()(fixed_queue_t* queue, void* data) { body(queue, data); }; in operator()
77 std::function<void(fixed_queue_t* queue, fixed_queue_free_cb free_cb)> body{
[all …]
Dmock_osi_fixed_queue.cc59 size_t fixed_queue_capacity(fixed_queue_t* queue) { in fixed_queue_capacity()
63 void* fixed_queue_dequeue(fixed_queue_t* queue) { in fixed_queue_dequeue()
67 void fixed_queue_enqueue(fixed_queue_t* queue, void* data) { in fixed_queue_enqueue()
71 void fixed_queue_flush(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_flush()
75 void fixed_queue_free(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_free()
79 int fixed_queue_get_dequeue_fd(const fixed_queue_t* queue) { in fixed_queue_get_dequeue_fd()
83 int fixed_queue_get_enqueue_fd(const fixed_queue_t* queue) { in fixed_queue_get_enqueue_fd()
87 list_t* fixed_queue_get_list(fixed_queue_t* queue) { in fixed_queue_get_list()
91 bool fixed_queue_is_empty(fixed_queue_t* queue) { in fixed_queue_is_empty()
95 size_t fixed_queue_length(fixed_queue_t* queue) { in fixed_queue_length()
[all …]
/packages/modules/Bluetooth/system/osi/include/
Dfixed_queue.h26 struct fixed_queue_t;
27 typedef struct fixed_queue_t fixed_queue_t; typedef
31 typedef void (*fixed_queue_cb)(fixed_queue_t* queue, void* context);
37 fixed_queue_t* fixed_queue_new(size_t capacity);
44 void fixed_queue_free(fixed_queue_t* queue, fixed_queue_free_cb free_cb);
49 void fixed_queue_flush(fixed_queue_t* queue, fixed_queue_free_cb free_cb);
53 bool fixed_queue_is_empty(fixed_queue_t* queue);
57 size_t fixed_queue_length(fixed_queue_t* queue);
61 size_t fixed_queue_capacity(fixed_queue_t* queue);
66 void fixed_queue_enqueue(fixed_queue_t* queue, void* data);
[all …]
Dalarm.h25 typedef struct fixed_queue_t fixed_queue_t; typedef
/packages/modules/Bluetooth/system/osi/src/
Dfixed_queue.cc34 typedef struct fixed_queue_t { struct
44 } fixed_queue_t; argument
48 fixed_queue_t* fixed_queue_new(size_t capacity) { in fixed_queue_new()
49 fixed_queue_t* ret = in fixed_queue_new()
50 static_cast<fixed_queue_t*>(osi_calloc(sizeof(fixed_queue_t))); in fixed_queue_new()
71 void fixed_queue_free(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_free()
88 void fixed_queue_flush(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_flush()
99 bool fixed_queue_is_empty(fixed_queue_t* queue) { in fixed_queue_is_empty()
106 size_t fixed_queue_length(fixed_queue_t* queue) { in fixed_queue_length()
113 size_t fixed_queue_capacity(fixed_queue_t* queue) { in fixed_queue_capacity()
[all …]
Dalarm.cc94 fixed_queue_t* queue; // The processing queue to add this alarm to
126 static fixed_queue_t* default_callback_queue;
133 fixed_queue_t* queue, bool for_msg_loop);
138 static void alarm_queue_ready(fixed_queue_t* queue, void* context);
146 static void alarm_register_processing_queue(fixed_queue_t* queue,
222 fixed_queue_t* queue, bool for_msg_loop) { in alarm_set_internal()
539 static void alarm_register_processing_queue(fixed_queue_t* queue, in alarm_register_processing_queue()
595 static void alarm_queue_ready(fixed_queue_t* queue, void* /* context */) { in alarm_queue_ready()
Dthread.cc50 fixed_queue_t* work_queue;
247 fixed_queue_t* queue = (fixed_queue_t*)context; in work_queue_read_cb()
/packages/modules/Bluetooth/system/test/fake/
Dfake_osi.cc61 struct fixed_queue_t { struct
65 fixed_queue_t(size_t capacity) { in fixed_queue_t() argument
259 return new fixed_queue_t(capacity); in FakeOsi()
262 [](fixed_queue_t* q, fixed_queue_free_cb cb) { in FakeOsi()
277 [](fixed_queue_t* q, fixed_queue_free_cb free_cb) { in FakeOsi()
284 test::mock::osi_fixed_queue::fixed_queue_enqueue.body = [](fixed_queue_t* q, in FakeOsi()
288 test::mock::osi_fixed_queue::fixed_queue_dequeue.body = [](fixed_queue_t* q) { in FakeOsi()
297 test::mock::osi_fixed_queue::fixed_queue_length.body = [](fixed_queue_t* q) { in FakeOsi()
302 [](fixed_queue_t* q) { in FakeOsi()
307 [](fixed_queue_t* q) { return q ? q->capacity_ : 0; }; in FakeOsi()
[all …]
/packages/modules/Bluetooth/system/test/stub/
Dosi.cc277 bool fixed_queue_is_empty(fixed_queue_t* queue) { in fixed_queue_is_empty()
281 bool fixed_queue_try_enqueue(fixed_queue_t* queue, void* data) { in fixed_queue_try_enqueue()
285 fixed_queue_t* fixed_queue_new(size_t capacity) { in fixed_queue_new()
289 int fixed_queue_get_dequeue_fd(const fixed_queue_t* queue) { in fixed_queue_get_dequeue_fd()
293 int fixed_queue_get_enqueue_fd(const fixed_queue_t* queue) { in fixed_queue_get_enqueue_fd()
297 list_t* fixed_queue_get_list(fixed_queue_t* queue) { in fixed_queue_get_list()
301 size_t fixed_queue_capacity(fixed_queue_t* queue) { in fixed_queue_capacity()
305 size_t fixed_queue_length(fixed_queue_t* queue) { in fixed_queue_length()
309 void fixed_queue_enqueue(fixed_queue_t* queue, void* data) { in fixed_queue_enqueue()
312 void fixed_queue_flush(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_flush()
[all …]
/packages/modules/Bluetooth/system/osi/test/
Dfixed_queue_test.cc38 static void fixed_queue_ready(fixed_queue_t* queue, void* /* context */) { in fixed_queue_ready()
53 fixed_queue_t* queue; in TEST_F()
81 fixed_queue_t* queue; in TEST_F()
123 fixed_queue_t* queue; in TEST_F()
145 fixed_queue_t* queue; in TEST_F()
167 fixed_queue_t* queue; in TEST_F()
195 fixed_queue_t* queue = fixed_queue_new(TEST_QUEUE_SIZE); in TEST_F()
232 fixed_queue_t* queue = fixed_queue_new(TEST_QUEUE_SIZE); in TEST_F()
262 fixed_queue_t* queue = fixed_queue_new(TEST_QUEUE_SIZE); in TEST_F()
293 fixed_queue_t* queue = fixed_queue_new(TEST_QUEUE_SIZE); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/osi/test/fuzzers/fixed_queue/
Dfuzz_fixed_queue.cc32 void fqCb(fixed_queue_t* queue, void* data) { in fqCb()
73 void callArbitraryFunction(fixed_queue_t* fixed_queue, in callArbitraryFunction()
218 fixed_queue_t* fixed_queue = fixed_queue_new(start_capacity); in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_hh.h95 fixed_queue_t* get_rpt_id_queue;
97 fixed_queue_t* set_rpt_id_queue;
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_int.h51 fixed_queue_t* queue; /* Queue of buffers waiting to be sent */
86 fixed_queue_t* cmd_q = nullptr; /* Queue for command messages on this mux */
/packages/modules/Bluetooth/system/common/benchmark/
Dthread_performance_benchmark.cc42 auto queue = static_cast<fixed_queue_t*>(context); in pthread_callback_batch()
54 void callback_sequential_queue(fixed_queue_t* queue, void* context) { in callback_sequential_queue()
61 void callback_batch(fixed_queue_t* queue, void* data) { in callback_batch()
86 fixed_queue_t* bt_msg_queue_ = nullptr;
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_int.h240 fixed_queue_t*
242 fixed_queue_t* srej_rcv_hold_q; /* Buffers rcvd but held pending SREJ rsp */
243 fixed_queue_t* retrans_q; /* Buffers being retransmitted */
320 fixed_queue_t* xmit_hold_q; /* Transmit data hold queue */
524 fixed_queue_t* le_sec_pending_q; /* LE coc channels waiting for security check
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_int.h227 fixed_queue_t* multi_rsp_q;
314 fixed_queue_t* pending_ind_q;
407 fixed_queue_t* sign_op_queue;
416 fixed_queue_t* srv_chg_clt_q; /* service change clients queue */
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sec_cb.h76 fixed_queue_t* sec_pending_q{nullptr}; /* pending sequrity requests in
Dbtm_int_types.h152 fixed_queue_t* sec_pending_q{nullptr}; /* pending sequrity requests in
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_int.h138 fixed_queue_t*
/packages/modules/Bluetooth/system/common/test/
Dthread_performance_test.cc42 void callback_batch(fixed_queue_t* queue, void* data) { in callback_batch()
65 fixed_queue_t* bt_msg_queue_ = nullptr;
/packages/modules/Bluetooth/system/bta/pan/
Dbta_pan_int.h132 fixed_queue_t*
/packages/modules/Bluetooth/system/stack/bnep/
Dbnep_int.h112 fixed_queue_t* xmit_q;
/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc64 fixed_queue_t* tx_queue; /* Queue of buffers waiting to be sent */
65 fixed_queue_t* rx_queue; /* Queue of buffers waiting to be read */
/packages/modules/Bluetooth/system/stack/avct/
Davct_int.h83 fixed_queue_t* tx_q; /* Transmit data buffer queue */
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_int.h612 fixed_queue_t* cmd_q; // Queue for outgoing command messages
613 fixed_queue_t* rsp_q; // Queue for outgoing response and reject messages

12