Lines Matching refs:capacity
34 size_t capacity = (use_cache(flags) ? in test_spsc_pbuf_flags() local
42 zassert_equal(spsc_pbuf_capacity(ib), capacity); in test_spsc_pbuf_flags()
68 int repeat = capacity / (sizeof(message) + sizeof(uint32_t)); in test_spsc_pbuf_flags()
184 uint32_t capacity = spsc_pbuf_capacity(pb); in ZTEST() local
192 PACKET_WRITE(pb, SPSC_PBUF_MAX_LEN, 0, 0, capacity - sizeof(uint32_t)); in ZTEST()
194 len1 = capacity - 8 - 2 * sizeof(uint32_t); in ZTEST()
198 len2 = capacity - TLEN(len1) - HDR_LEN; in ZTEST()
216 uint32_t capacity = spsc_pbuf_capacity(pb); in ZTEST() local
220 len1 = capacity - 10 - sizeof(uint16_t); in ZTEST()
236 uint32_t capacity = spsc_pbuf_capacity(pb); in ZTEST() local
242 len2 = capacity - TLEN(len1) - 10; in ZTEST()
266 uint32_t capacity; in ZTEST() local
273 capacity = spsc_pbuf_capacity(pb); in ZTEST()
280 len2 = capacity; in ZTEST()
283 uint16_t exp_len2 = capacity - TLEN(len1) - HDR_LEN; in ZTEST()
302 uint32_t capacity; in ZTEST() local
307 capacity = spsc_pbuf_capacity(pb); in ZTEST()
314 len2 = capacity - TLEN(len1) - HDR_LEN - 5; in ZTEST()
333 uint16_t exp_len = capacity - TLEN(len1) - HDR_LEN; in ZTEST()
335 PACKET_WRITE(pb, capacity, 0, 2, exp_len); in ZTEST()
342 uint32_t capacity; in ZTEST() local
347 capacity = spsc_pbuf_capacity(pb); in ZTEST()
353 len2 = capacity - TLEN(len1) - TLEN(10); in ZTEST()
361 capacity = spsc_pbuf_capacity(pb); in ZTEST()
367 len2 = capacity - TLEN(len1) - TLEN(12); in ZTEST()
377 uint32_t capacity; in ZTEST() local
387 capacity = spsc_pbuf_capacity(pb); in ZTEST()
404 len3 = capacity - TLEN(len1) - TLEN(len2); in ZTEST()
416 uint32_t capacity; member
450 uint16_t len = 1 + (sys_rand16_get() % (ctx->capacity / 4)); in stress_write()
453 zassert_true(len < sizeof(buf), "len:%d %d", len, ctx->capacity); in stress_write()
474 ctx.capacity = spsc_pbuf_capacity(ctx.pbuf); in ZTEST()
516 uint16_t len = 1 + (rnd % (ctx->capacity / 4)); in stress_alloc_commit()
546 ctx.capacity = spsc_pbuf_capacity(ctx.pbuf); in ZTEST()