Home
last modified time | relevance | path

Searched refs:_spsc (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/include/zephyr/sys/
Dspsc_lockfree.h84 ._spsc = \
103 struct spsc _spsc; \
124 #define spsc_size(spsc) ((spsc)->_spsc.mask + 1)
133 #define z_spsc_mask(spsc, i) ((i) & (spsc)->_spsc.mask)
139 #define z_spsc_in(spsc) (unsigned long)atomic_get(&(spsc)->_spsc.in)
145 #define z_spsc_out(spsc) (unsigned long)atomic_get(&(spsc)->_spsc.out)
157 (spsc)->_spsc.consume = 0; \
158 (spsc)->_spsc.acquire = 0; \
159 atomic_set(&(spsc)->_spsc.in, 0); \
160 atomic_set(&(spsc)->_spsc.out, 0); \
[all …]
/Zephyr-latest/tests/lib/lockfree/src/
Dtest_spsc.c112 ezspsc._spsc.in = ATOMIC_INIT(UINTPTR_MAX - 2); in ZTEST()
113 ezspsc._spsc.out = ATOMIC_INIT(UINTPTR_MAX - 2); in ZTEST()
123 zassert_equal(atomic_get(&ezspsc._spsc.in), UINTPTR_MAX + 1, "Spsc in should wrap"); in ZTEST()
133 zassert_equal(atomic_get(&ezspsc._spsc.out), UINTPTR_MAX + 1, "Spsc out should wrap"); in ZTEST()
Dtest_mpsc.c94 struct spsc _spsc; member