Home
last modified time | relevance | path

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

/hardware/nxp/secure_element/pn8x/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/nxp/secure_element/snxxx/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/sm8150/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);
/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);
/hardware/qcom/sm7250/display/libhistogram/
Dringbuffer.cpp28 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) in Ringbuffer() argument
29 : rb_max_size(ringbuffer_size), timekeeper(std::move(tk)), cumulative_frame_count(0) { in Ringbuffer()
34 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create() argument
35 if ((ringbuffer_size == 0) || !tk) in create()
38 new histogram::Ringbuffer(ringbuffer_size, std::move(tk))); in create()
83 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize() argument
85 if (ringbuffer_size == 0) in resize()
87 rb_max_size = ringbuffer_size; in resize()
Dringbuffer.h49 static std::unique_ptr<Ringbuffer> create(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);
51 bool resize(size_t ringbuffer_size);
62 Ringbuffer(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);