Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/sys/
Dspsc_lockfree.h59 struct spsc { struct
103 struct spsc _spsc; \
124 #define spsc_size(spsc) ((spsc)->_spsc.mask + 1) argument
133 #define z_spsc_mask(spsc, i) ((i) & (spsc)->_spsc.mask) argument
139 #define z_spsc_in(spsc) (unsigned long)atomic_get(&(spsc)->_spsc.in) argument
145 #define z_spsc_out(spsc) (unsigned long)atomic_get(&(spsc)->_spsc.out) argument
155 #define spsc_reset(spsc) \ argument
157 (spsc)->_spsc.consume = 0; \
158 (spsc)->_spsc.acquire = 0; \
159 atomic_set(&(spsc)->_spsc.in, 0); \
[all …]
/Zephyr-latest/tests/lib/lockfree/src/
Dtest_spsc.c18 ZTEST(spsc, test_produce_consume_size1) in ZTEST() argument
75 ZTEST(spsc, test_produce_consume_wrap_around) in ZTEST() argument
109 ZTEST(spsc, test_int_wrap_around) in ZTEST() argument
139 SPSC_DEFINE(spsc, uint32_t, 4);
211 ZTEST(spsc, test_spsc_threaded) in ZTEST() argument
217 &spsc, NULL, NULL, in ZTEST()
223 &spsc, NULL, NULL, in ZTEST()
233 ZTEST(spsc, test_spsc_throughput) in ZTEST() argument
247 x = spsc_acquire(&spsc); in ZTEST()
249 spsc_produce(&spsc); in ZTEST()
[all …]
Dtest_mpsc.c94 struct spsc _spsc;
/Zephyr-latest/lib/os/
DKconfig42 Enable usage of spsc packet buffer. Packet buffer is capable of