Searched refs:ringbuffer_t (Results 1 – 8 of 8) sorted by relevance
/system/nfc/utils/include/ |
D | ringbuffer.h | 23 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/ |
D | ringbuffer.h | 23 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/ |
D | ringbuffer.cc | 25 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/ |
D | ringbuffer.cc | 24 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/ |
D | btif_debug_btsnoop.cc | 45 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/ |
D | ringbuffer_test.cc | 6 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/ |
D | ringbuffer_test.cc | 7 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/ |
D | debug_nfcsnoop.cc | 44 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()
|