Home
last modified time | relevance | path

Searched refs:len0 (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/lib/utils/
Dwinstream.c43 uint32_t len0 = len, suffix; in sys_winstream_write() local
69 if (len < len0) { in sys_winstream_write()
71 data += len0 - len; in sys_winstream_write()
81 ws->seq += len0; /* seq represents dropped bytes too! */ in sys_winstream_write()
/Zephyr-latest/drivers/flash/
Dflash_gd32_v2.c350 size_t len0 = 0U; in flash_gd32_write_range() local
355 len0 = GD32_NV_FLASH_V2_BANK0_SIZE - offset; in flash_gd32_write_range()
357 len0 = len; in flash_gd32_write_range()
360 ret = gd32_fmc_v2_bank0_write(offset, data, len0); in flash_gd32_write_range()
367 size_t len1 = len - len0; in flash_gd32_write_range()
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c160 int len0, len1, len2; in ZTEST() local
166 len0 = cbprintf_package(NULL, 0, 0, test_str, 100, test_str1); in ZTEST()
167 if (len0 > (int)(4 * sizeof(void *))) { in ZTEST()
172 zassert_true(len0 > 0); in ZTEST()
185 zassert_equal(len0 + 2, len1); in ZTEST()
186 zassert_equal(len0 + 2, len2); in ZTEST()
188 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) package0[len0]; in ZTEST()
192 len0 = cbprintf_package(package0, sizeof(package0), 0, in ZTEST()
208 zassert_equal(len0 + 2, len1); in ZTEST()
213 zassert_equal(len0 + 2, len2); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/logging/log_msg/src/
Dmain.c158 size_t len0, len1, len2; in validate_base_message_set() local
163 len0 = log_msg_generic_get_wlen((union mpsc_pbuf_generic *)msg0); in validate_base_message_set()
187 zassert_equal(len0, len1); in validate_base_message_set()
189 int rv = memcmp(msg0, msg1, sizeof(int) * len0); in validate_base_message_set()
/Zephyr-latest/tests/subsys/logging/log_frontend_stmesp_demux/src/
Dmain.c286 int len0 = 12; in ZTEST() local
288 union log_frontend_stmesp_demux_header hdr0 = {.log = {.total_len = len0}}; in ZTEST()
301 write_data(len0, 0); in ZTEST()
308 CLAIM_PACKET(M_ID0, ts0, len0, 0); in ZTEST()
/Zephyr-latest/tests/unit/cbprintf/
Dmain.c1192 int len0, len1; in ZTEST() local
1198 CBPRINTF_STATIC_PACKAGE(NULL, 0, len0, 0, CBPRINTF_PACKAGE_CONST_CHAR_RO, in ZTEST()
1206 zassert_equal(len0 + 2, len1); in ZTEST()
1208 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) package0[len0]; in ZTEST()
1211 CBPRINTF_STATIC_PACKAGE(package0, sizeof(package0), len0, 0, in ZTEST()
1224 zassert_equal(len0 + 2, len1); in ZTEST()
1228 str_idx = package1[len0]; in ZTEST()
1232 str_idx = package1[len0 + 1]; in ZTEST()
/Zephyr-latest/tests/lib/mpsc_pbuf/src/
Dmain.c719 uint32_t len0, len1; in overwrite() local
734 len0 = 6; in overwrite()
735 p = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, len0, K_NO_WAIT); in overwrite()
737 p->hdr.len = len0; in overwrite()
769 zassert_equal(p->hdr.len, len0); in overwrite()