Lines Matching refs:granted
611 uint32_t granted; in ZTEST() local
617 granted = ring_buf_get_claim(&ringbuf_raw, &data, RINGBUFFER_SIZE); in ZTEST()
618 zassert_true(granted == 0U); in ZTEST()
624 granted = ring_buf_get_claim(&ringbuf_raw, &data, in ZTEST()
627 if (granted == (RINGBUFFER_SIZE-2)) { in ZTEST()
628 zassert_true(memcmp(indata, data, granted) == 0); in ZTEST()
629 } else if (granted < (RINGBUFFER_SIZE-2)) { in ZTEST()
631 uint32_t granted_1 = granted; in ZTEST()
633 zassert_true(memcmp(indata, data, granted) == 0); in ZTEST()
634 granted = ring_buf_get_claim(&ringbuf_raw, &data, in ZTEST()
637 zassert_true((granted + granted_1) == in ZTEST()
639 zassert_true(memcmp(&indata[granted_1], data, granted) in ZTEST()
747 uint32_t granted; in ZTEST() local
765 granted = ring_buf_put_claim(&ringbuf_raw, &outbuf, RINGBUFFER_SIZE); in ZTEST()
766 zassert_false(granted == RINGBUFFER_SIZE); in ZTEST()
770 granted = ring_buf_put_claim(&ringbuf_raw, &outbuf, RINGBUFFER_SIZE); in ZTEST()
771 zassert_true(granted == RINGBUFFER_SIZE); in ZTEST()