Lines Matching refs:ib
31 struct spsc_pbuf *ib; in test_spsc_pbuf_flags() local
40 ib = spsc_pbuf_init(memory_area, sizeof(memory_area), flags); in test_spsc_pbuf_flags()
41 zassert_equal_ptr(ib, memory_area, NULL); in test_spsc_pbuf_flags()
42 zassert_equal(spsc_pbuf_capacity(ib), capacity); in test_spsc_pbuf_flags()
45 rlen = spsc_pbuf_write(ib, rbuf, 0); in test_spsc_pbuf_flags()
47 rlen = spsc_pbuf_write(ib, rbuf, SPSC_PBUF_MAX_LEN); in test_spsc_pbuf_flags()
51 rlen = spsc_pbuf_write(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
55 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
59 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
62 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
65 ib = spsc_pbuf_init(memory_area, sizeof(memory_area), flags); in test_spsc_pbuf_flags()
66 zassert_equal_ptr(ib, memory_area, NULL); in test_spsc_pbuf_flags()
71 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
75 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
79 rlen = spsc_pbuf_read(ib, NULL, 0); in test_spsc_pbuf_flags()
83 rlen = spsc_pbuf_read(ib, rbuf, 0); in test_spsc_pbuf_flags()
88 wlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
93 rlen = spsc_pbuf_read(ib, NULL, 0); in test_spsc_pbuf_flags()
97 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
101 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()