Lines Matching refs:rlen
32 int rlen; in test_spsc_pbuf_flags() local
45 rlen = spsc_pbuf_write(ib, rbuf, 0); in test_spsc_pbuf_flags()
46 zassert_equal(rlen, -EINVAL); in test_spsc_pbuf_flags()
47 rlen = spsc_pbuf_write(ib, rbuf, SPSC_PBUF_MAX_LEN); in test_spsc_pbuf_flags()
48 zassert_equal(rlen, -EINVAL); in test_spsc_pbuf_flags()
51 rlen = spsc_pbuf_write(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
52 zassert_equal(rlen, -ENOMEM); in test_spsc_pbuf_flags()
55 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
56 zassert_equal(rlen, 0); in test_spsc_pbuf_flags()
62 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
63 zassert_equal(rlen, sizeof(message)); in test_spsc_pbuf_flags()
79 rlen = spsc_pbuf_read(ib, NULL, 0); in test_spsc_pbuf_flags()
80 zassert_equal(rlen, sizeof(message)); in test_spsc_pbuf_flags()
83 rlen = spsc_pbuf_read(ib, rbuf, 0); in test_spsc_pbuf_flags()
84 zassert_equal(rlen, -ENOMEM); in test_spsc_pbuf_flags()
93 rlen = spsc_pbuf_read(ib, NULL, 0); in test_spsc_pbuf_flags()
94 zassert_equal(rlen, 0); in test_spsc_pbuf_flags()
101 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
102 zassert_equal(rlen, sizeof(message)); in test_spsc_pbuf_flags()