Home
last modified time | relevance | path

Searched refs:ringbuffer_size (Results 1 – 4 of 4) sorted by relevance

/hardware/nxp/secure_element/libese-spi/p73/utils/
Dringbuffer.cpp54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() function
77 if (length > ringbuffer_size(rb)) length = ringbuffer_size(rb); in ringbuffer_delete()
91 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek()
94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek()
95 ? ringbuffer_size(rb) - offset in ringbuffer_peek()
Dringbuffer.h43 size_t ringbuffer_size(const ringbuffer_t* rb);
/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer.cpp25 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk… in Ringbuffer() argument
26 rb_max_size(ringbuffer_size), in Ringbuffer()
33 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create() argument
34 if ((ringbuffer_size == 0) || !tk) in create()
36 …return std::unique_ptr<histogram::Ringbuffer>(new histogram::Ringbuffer(ringbuffer_size, std::move… in create()
72 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize() argument
74 if (ringbuffer_size == 0) in resize()
76 rb_max_size = ringbuffer_size; in resize()
Dringbuffer.h50 … static std::unique_ptr<Ringbuffer> create(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
52 bool resize(size_t ringbuffer_size);
63 Ringbuffer(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);