Searched refs:_spsc (Results 1 – 3 of 3) sorted by relevance
84 ._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 …]
112 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()
94 struct spsc _spsc; member