Lines Matching refs:len2

186 	uint16_t len2;  in ZTEST()  local
198 len2 = capacity - TLEN(len1) - HDR_LEN; in ZTEST()
200 PACKET_WRITE(pb, len2 + 1, 0, 1, len2); in ZTEST()
202 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
206 PACKET_CONSUME(pb, len2, 1); in ZTEST()
218 uint16_t len2; in ZTEST() local
223 len2 = 10 - sizeof(uint16_t) - 1; in ZTEST()
224 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
228 PACKET_CONSUME(pb, len2, 1); in ZTEST()
237 int len1, len2; in ZTEST() local
242 len2 = capacity - TLEN(len1) - 10; in ZTEST()
243 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
249 PACKET_CONSUME(pb, len2, 1); in ZTEST()
258 len2 = len1 + len2 - sizeof(uint16_t); in ZTEST()
259 PACKET_WRITE(pb, len2, 0, 0, len2); in ZTEST()
270 uint16_t len2; in ZTEST() local
280 len2 = capacity; in ZTEST()
281 len2 = spsc_pbuf_alloc(pb, len2, &buf); in ZTEST()
285 zassert_equal(len2, exp_len2, "got %d, exp: %d", len2, exp_len2); in ZTEST()
291 spsc_pbuf_commit(pb, len2); in ZTEST()
294 zassert_equal(len2, len); in ZTEST()
304 uint16_t len2; in ZTEST() local
314 len2 = capacity - TLEN(len1) - HDR_LEN - 5; in ZTEST()
315 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
328 PACKET_CONSUME(pb, len2, 1); in ZTEST()
344 uint16_t len2; in ZTEST() local
353 len2 = capacity - TLEN(len1) - TLEN(10); in ZTEST()
354 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
367 len2 = capacity - TLEN(len1) - TLEN(12); in ZTEST()
368 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
378 uint16_t len1, len2, len3; in ZTEST() local
398 len2 = 11; in ZTEST()
399 PACKET_WRITE(pb, len2, len2, 1, len2); in ZTEST()
400 PACKET_CONSUME(pb, len2, 1); in ZTEST()
402 zassert_equal(u, TLEN(len2)); in ZTEST()
404 len3 = capacity - TLEN(len1) - TLEN(len2); in ZTEST()