Searched refs:src_offset (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/drivers/flash/ |
D | flash_util.c | 124 int z_impl_flash_copy(const struct device *src_dev, off_t src_offset, const struct device *dst_dev, in z_impl_flash_copy() argument 131 if ((src_offset < 0) || (dst_offset < 0) || (size < 0) || (buf == NULL) || in z_impl_flash_copy() 132 (buf_size == 0) || off_add_overflow(src_offset, size, &end) || in z_impl_flash_copy() 139 if (src_offset == dst_offset) { in z_impl_flash_copy() 143 if (flash_ranges_overlap(src_offset, size, dst_offset, size) != 0) { in z_impl_flash_copy() 176 ret = flash_read(src_dev, src_offset + offs, buf, bytes_read); in z_impl_flash_copy() 179 (long)(src_offset + offs), ret); in z_impl_flash_copy() 186 (long)(src_offset + offs), ret); in z_impl_flash_copy() 195 int z_vrfy_flash_copy(const struct device *src_dev, off_t src_offset, const struct device *dst_dev, in z_vrfy_flash_copy() argument 199 return z_impl_flash_copy(src_dev, src_offset, dst_dev, dst_offset, size, buf, buf_size); in z_vrfy_flash_copy()
|
D | flash_shell.c | 186 uint32_t src_offset = 0; in cmd_copy() local 198 src_offset = strtoul(argv[3], NULL, 0); in cmd_copy() 203 ret = flash_copy(src_dev, src_offset, dst_dev, dst_offset, size, flash_load_buf, in cmd_copy() 210 shell_print(sh, "Copied %u bytes from %s:%x to %s:%x", size, argv[1], src_offset, argv[2], in cmd_copy()
|
/Zephyr-latest/tests/drivers/flash/common/src/ |
D | main.c | 391 static void test_flash_copy_inner(const struct device *src_dev, off_t src_offset, in test_flash_copy_inner() argument 397 if ((expected_result == 0) && (size != 0) && (src_offset != dst_offset)) { in test_flash_copy_inner() 406 actual_result = flash_copy(src_dev, src_offset, dst_dev, dst_offset, size, buf, buf_size); in test_flash_copy_inner() 409 src_dev, src_offset, dst_dev, dst_offset, size, buf, buf_size, in test_flash_copy_inner() 412 if ((expected_result == 0) && (size != 0) && (src_offset != dst_offset)) { in test_flash_copy_inner()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | flash.h | 654 __syscall int flash_copy(const struct device *src_dev, off_t src_offset,
|