Home
last modified time | relevance | path

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

/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_ext_specific.c80 static void truncate_file(const char *file_path, uint32_t new_size) in truncate_file() argument
88 TC_PRINT("Truncating to %d\n", new_size); in truncate_file()
93 ret = fs_truncate(&file, new_size); in truncate_file()
98 zassert_equal(entry.size, new_size, in truncate_file()
99 "Wrong file size %d (expected %d)", entry.size, new_size); in truncate_file()
104 ret = testfs_verify_incrementing(&file, 0, new_size); in truncate_file()
105 zassert_equal(ret, new_size, "Different number of bytes read %ld (expected %ld)", in truncate_file()
106 ret, new_size); in truncate_file()
141 uint32_t new_size = bytes_to_write; in writing_test() local
143 while (new_size > 1) { in writing_test()
[all …]
/Zephyr-latest/scripts/native_simulator/native/src/
Dnsi_cmdline.c150 int new_size = extra_argc + argc; in nsi_register_extra_args() local
152 extra_argv = realloc(extra_argv, new_size*sizeof(char *)); in nsi_register_extra_args()
/Zephyr-latest/tests/lib/mem_alloc/src/
Dmain.c219 char new_size = BUF_LEN + BUF_LEN; in ZTEST() local
228 reloc_ptr = realloc(ptr, new_size); in ZTEST()
335 int new_size = MAX_LEN; in ZTEST() local
343 reloc_ptr = realloc(mlc_ptr, new_size); in ZTEST()
/Zephyr-latest/boards/native/nrf_bsim/common/
Dbsim_args_runner.c217 int new_size = extra_argc + argc; in nsi_register_extra_args() local
219 extra_argv = realloc(extra_argv, new_size*sizeof(char *)); in nsi_register_extra_args()
/Zephyr-latest/include/zephyr/sys/
Dhash_map_api.h84 typedef void *(*sys_hashmap_allocator_t)(void *ptr, size_t new_size);
/Zephyr-latest/subsys/fs/ext2/
Dext2_impl.c698 uint32_t new_size = (uint32_t)length; in ext2_inode_trunc() local
702 LOG_DBG("Resizing inode from %d to %d", old_size, new_size); in ext2_inode_trunc()
704 if (old_size == new_size) { in ext2_inode_trunc()
708 uint32_t used_blocks = new_size / block_size + (new_size % block_size != 0); in ext2_inode_trunc()
710 if (new_size > old_size) { in ext2_inode_trunc()
719 uint32_t to_write = MIN(new_size - old_size, block_size - start_off); in ext2_inode_trunc()
757 inode->i_size = new_size; in ext2_inode_trunc()
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c436 size_t size, int new_size) in release_tx_blocks() argument
451 if (new_size >= 0) { in release_tx_blocks()
453 new_total_size = new_size + BLOCK_HEADER_SIZE; in release_tx_blocks()
462 block->header.size = new_size; in release_tx_blocks()
500 int new_size) in release_tx_buffer() argument
511 return release_tx_blocks(dev_data, tx_block_index, size, new_size); in release_tx_buffer()