Lines Matching refs:req_len
853 uint32_t req_len; in ZTEST() local
859 req_len = (i % RINGBUFFER_SIZE) + 1; in ZTEST()
860 len = ring_buf_put(&ringbuf_raw, indata, req_len); in ZTEST()
861 zassert_equal(req_len, len); in ZTEST()
863 len = ring_buf_get(&ringbuf_raw, outdata, req_len); in ZTEST()
864 zassert_equal(req_len, len); in ZTEST()
866 req_len = 2; in ZTEST()
867 len = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
868 zassert_equal(len, req_len); in ZTEST()
870 req_len = RINGBUFFER_SIZE; in ZTEST()
871 len = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
872 len2 = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
873 zassert_equal(len + len2, req_len - 2); in ZTEST()
875 ring_buf_put_finish(&ringbuf_raw, req_len); in ZTEST()
877 len = ring_buf_get(&ringbuf_raw, indata, req_len); in ZTEST()
878 zassert_equal(len, req_len); in ZTEST()
888 uint32_t req_len; in ZTEST() local
894 req_len = (i % RINGBUFFER_SIZE) + 1; in ZTEST()
895 len = ring_buf_put(&ringbuf_raw, indata, req_len); in ZTEST()
896 zassert_equal(req_len, len); in ZTEST()
898 len = ring_buf_get(&ringbuf_raw, outdata, req_len); in ZTEST()
899 zassert_equal(req_len, len); in ZTEST()
901 req_len = sizeof(indata); in ZTEST()
902 len = ring_buf_put(&ringbuf_raw, indata, req_len); in ZTEST()
903 zassert_equal(req_len, len); in ZTEST()