Home
last modified time | relevance | path

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

/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/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
33 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, 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()
106 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length) { in ringbuffer_pop()
/system/bt/btif/src/
Dbtif_debug_btsnoop.cc45 static ringbuffer_t* buffer = NULL;
133 static bool btsnoop_compress(ringbuffer_t* rb_dst, ringbuffer_t* rb_src) { in btsnoop_compress()
180 ringbuffer_t* ringbuffer = ringbuffer_init(BTSNOOP_MEM_BUFFER_SIZE); in btif_debug_btsnoop_dump()
/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/nfc/src/adaptation/
Ddebug_nfcsnoop.cc44 static ringbuffer_t* buffer = nullptr;
76 static bool nfcsnoop_compress(ringbuffer_t* rb_dst, ringbuffer_t* rb_src) { in nfcsnoop_compress()
141 ringbuffer_t* ringbuffer = ringbuffer_init(NFCSNOOP_MEM_BUFFER_SIZE); in debug_nfcsnoop_dump()