Home
last modified time | relevance | path

Searched refs:ringbuffer_t (Results 1 – 11 of 11) sorted by relevance

/system/bt/osi/include/
Dringbuffer.h23 typedef struct ringbuffer_t ringbuffer_t; typedef
33 ringbuffer_t* ringbuffer_init(const size_t size);
37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
/system/nfc/utils/include/
Dringbuffer.h23 typedef struct ringbuffer_t ringbuffer_t; typedef
33 ringbuffer_t* ringbuffer_init(const size_t size);
37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
/system/bt/osi/src/
Dringbuffer.cc25 struct ringbuffer_t { struct
33 ringbuffer_t* ringbuffer_init(const size_t size) { in ringbuffer_init() argument
34 ringbuffer_t* p = in ringbuffer_init()
35 static_cast<ringbuffer_t*>(osi_calloc(sizeof(ringbuffer_t))); in ringbuffer_init()
44 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free()
49 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available()
54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size()
59 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert()
74 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length) { in ringbuffer_delete()
86 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek()
[all …]
/system/nfc/utils/
Dringbuffer.cc24 struct ringbuffer_t { struct
32 ringbuffer_t* ringbuffer_init(const size_t size) { in ringbuffer_init() argument
35 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, sizeof(ringbuffer_t))); in ringbuffer_init()
46 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free()
51 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available()
56 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size()
61 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert()
76 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length) { in ringbuffer_delete()
88 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek()
108 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length) { in ringbuffer_pop()
/system/bt/osi/test/fuzzers/ringbuffer/
Dfuzz_ringbuffer.cc23 ringbuffer_t* getArbitraryRingBuf(std::vector<ringbuffer_t*>* ringbuf_vector, in getArbitraryRingBuf()
34 void callArbitraryFunction(std::vector<ringbuffer_t*>* ringbuf_vector, in callArbitraryFunction()
39 ringbuffer_t* buf = nullptr; in callArbitraryFunction()
150 std::vector<ringbuffer_t*> ringbuf_vector; in LLVMFuzzerTestOneInput()
/system/nfc/utils/test/
Dringbuffer_test.cc6 ringbuffer_t* rb = ringbuffer_init(4096); in TEST()
14 ringbuffer_t* rb = ringbuffer_init(16); in TEST()
33 ringbuffer_t* rb = ringbuffer_init(5); in TEST()
60 ringbuffer_t* rb = ringbuffer_init(16); in TEST()
/system/bt/osi/test/
Dringbuffer_test.cc7 ringbuffer_t* rb = ringbuffer_init(4096); in TEST()
15 ringbuffer_t* rb = ringbuffer_init(16); in TEST()
34 ringbuffer_t* rb = ringbuffer_init(5); in TEST()
61 ringbuffer_t* rb = ringbuffer_init(16); in TEST()
/system/bt/btif/src/
Dbtif_debug_btsnoop.cc39 static ringbuffer_t* buffer = NULL;
143 static bool btsnoop_compress(ringbuffer_t* rb_dst, ringbuffer_t* rb_src) { in btsnoop_compress()
185 ringbuffer_t* ringbuffer = ringbuffer_init(BTSNOOP_MEM_BUFFER_SIZE); in btif_debug_btsnoop_dump()
/system/nfc/src/adaptation/
Ddebug_nfcsnoop.cc54 static ringbuffer_t* buffer = nullptr;
89 static bool nfcsnoop_compress(ringbuffer_t* rb_dst, ringbuffer_t* rb_src) { in nfcsnoop_compress()
164 ringbuffer_t* ringbuffer = ringbuffer_init(NFCSNOOP_MEM_BUFFER_SIZE); in debug_nfcsnoop_dump()
/system/bt/test/stub/
Dosi.cc564 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available()
568 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length) { in ringbuffer_delete()
572 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert()
576 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek()
581 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length) { in ringbuffer_pop()
585 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size()
589 void ringbuffer_free(ringbuffer_t* rb) { mock_function_count_map[__func__]++; } in ringbuffer_free()
/system/nfc/utils/test/ringbuffer_fuzzer/
Dringbuffer_fuzzer.cpp18 ringbuffer_t* buffer = ringbuffer_init(buffer_size); in LLVMFuzzerTestOneInput()