Lines Matching refs:pb2
130 static struct pbuf pb2 = { in ZTEST() local
137 zassert_equal(pbuf_tx_init(&pb2), 0); in ZTEST()
141 print_pbuf_info(&pb2); in ZTEST()
152 zassert_equal(pbuf_write(&pb2, NULL, 10), -EINVAL); in ZTEST()
153 zassert_equal(pbuf_write(&pb2, write_buf, 0), -EINVAL); in ZTEST()
157 zassert_equal(pbuf_write(&pb2, write_buf, 5), -ENOMEM); in ZTEST()
160 zassert_equal(pbuf_write(&pb2, write_buf, 4), 4); in ZTEST()
163 zassert_equal(pbuf_write(&pb2, write_buf, 1), -ENOMEM); in ZTEST()
166 zassert_equal(pbuf_read(&pb2, NULL, 1), 4); in ZTEST()
169 zassert_equal(pbuf_read(&pb2, read_buf, 1), -ENOMEM); in ZTEST()
172 zassert_equal(pbuf_read(&pb2, NULL, 0), 4); in ZTEST()
175 zassert_equal(pbuf_read(&pb2, read_buf, 4), 4); in ZTEST()
181 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()
182 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()
183 zassert_equal(pbuf_read(&pb2, read_buf, 10), 0); in ZTEST()