Home
last modified time | relevance | path

Searched refs:len2 (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c186 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
[all …]
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dfcb_test_len.c14 uint16_t len2; in ZTEST() local
25 rc2 = fcb_get_len(&fcb, buf, &len2); in ZTEST()
28 zassert_true(len == len2, "fcb_get_len call failure"); in ZTEST()
/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/src/
Dmain.c413 size_t len2 = 8; in test_only_tx_in_chunks() local
416 tdata.bufs[0].buf = buf_alloc(len1 + len2, true); in test_only_tx_in_chunks()
417 tdata.bufs[0].len = len1 + len2; in test_only_tx_in_chunks()
426 tdata.bufs[2].buf = buf_alloc(len2, false); in test_only_tx_in_chunks()
427 tdata.bufs[2].len = len2; in test_only_tx_in_chunks()
484 size_t len2 = 9; in test_only_rx_in_chunks() local
487 tdata.bufs[0].buf = buf_alloc(len1 + len2, true); in test_only_rx_in_chunks()
488 tdata.bufs[0].len = len1 + len2; in test_only_rx_in_chunks()
497 tdata.bufs[2].buf = buf_alloc(len2, false); in test_only_rx_in_chunks()
498 tdata.bufs[2].len = len2; in test_only_rx_in_chunks()
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c160 int len0, len1, len2; in ZTEST() local
177 CBPRINTF_STATIC_PACKAGE(NULL, 0, len2, 0, in ZTEST()
180 zassert_true(len2 > 0); in ZTEST()
186 zassert_equal(len0 + 2, len2); in ZTEST()
190 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) package2[len2]; in ZTEST()
200 CBPRINTF_STATIC_PACKAGE(package2, sizeof(package2) - 1, len2, 0, in ZTEST()
203 zassert_equal(-ENOSPC, len2); in ZTEST()
210 CBPRINTF_STATIC_PACKAGE(package2, sizeof(package2), len2, 0, in ZTEST()
213 zassert_equal(len0 + 2, len2); in ZTEST()
491 int len2 = cbprintf_package(package, sizeof(package), flags, TEST_FMT); in ZTEST() local
[all …]
/Zephyr-latest/tests/lib/ringbuffer/src/
Dmain.c852 uint32_t len2; in ZTEST() local
872 len2 = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
873 zassert_equal(len + len2, req_len - 2); in ZTEST()
887 uint32_t len2; in ZTEST() local
909 len2 = ring_buf_get_claim(&ringbuf_raw, &ptr, RINGBUFFER_SIZE); in ZTEST()
910 zassert_equal(len + len2, RINGBUFFER_SIZE - 2); in ZTEST()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_oma_tlv.c935 int len2; in lwm2m_multi_resource_tlv_parse() local
949 (len2 = oma_tlv_get(&tlv_resource_instance, &msg->in, true))) { in lwm2m_multi_resource_tlv_parse()
970 pos += len2; in lwm2m_multi_resource_tlv_parse()
1011 int len2; in do_write_op_tlv() local
1032 (len2 = oma_tlv_get(&tlv2, &msg->in, true))) { in do_write_op_tlv()
1049 pos += len2; in do_write_op_tlv()
/Zephyr-latest/tests/subsys/logging/log_msg/src/
Dmain.c158 size_t len0, len1, len2; in validate_base_message_set() local
175 len2 = log_msg_generic_get_wlen((union mpsc_pbuf_generic *)msg2); in validate_base_message_set()
/Zephyr-latest/subsys/net/ip/
Dtcp.c104 size_t len1, len2; in tcp_pkt_linearize() local
127 len2 = len - len1; in tcp_pkt_linearize()
131 while (len2) { in tcp_pkt_linearize()
132 size_t pull_len = MIN(second->len, len2); in tcp_pkt_linearize()
135 len2 -= pull_len; in tcp_pkt_linearize()