Lines Matching refs:rbuf
940 static struct ring_buf rbuf; in ZTEST() local
947 ring_buf_init(&rbuf, sizeof(buf), buf); in ZTEST()
952 ring_buf_put(&rbuf, indata, 1); in ZTEST()
953 ring_buf_get(&rbuf, outdata, 1); in ZTEST()
959 ring_buf_reset(&rbuf); in ZTEST()
962 ring_buf_put(&rbuf, indata, 4); in ZTEST()
963 ring_buf_get(&rbuf, outdata, 4); in ZTEST()
969 ring_buf_reset(&rbuf); in ZTEST()
972 ring_buf_put_claim(&rbuf, &ptr, 1); in ZTEST()
973 ring_buf_put_finish(&rbuf, 1); in ZTEST()
974 ring_buf_get(&rbuf, outdata, 1); in ZTEST()
980 ring_buf_reset(&rbuf); in ZTEST()
983 ring_buf_put_claim(&rbuf, &ptr, 5); in ZTEST()
984 ring_buf_put_finish(&rbuf, 5); in ZTEST()
985 ring_buf_get(&rbuf, outdata, 5); in ZTEST()
991 ring_buf_reset(&rbuf); in ZTEST()
994 ring_buf_put(&rbuf, indata, 5); in ZTEST()
995 ring_buf_get_claim(&rbuf, &ptr, 5); in ZTEST()
996 ring_buf_get_finish(&rbuf, 5); in ZTEST()