Searched refs:src_offset (Results 1 – 5 of 5) sorted by relevance
| /Zephyr-4.2.1/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 | 190 uint32_t src_offset = 0; in cmd_copy() local 202 src_offset = strtoul(argv[3], NULL, 0); in cmd_copy() 207 ret = flash_copy(src_dev, src_offset, dst_dev, dst_offset, size, flash_load_buf, in cmd_copy() 214 shell_print(sh, "Copied %u bytes from %s:%x to %s:%x", size, argv[1], src_offset, argv[2], in cmd_copy()
|
| D | flash_esp32.c | 219 size_t src_offset = 0; in aligned_flash_write() local 246 memcpy(&write_aux_buf[curr_buf_off], &((const uint8_t *)src)[src_offset], in aligned_flash_write() 258 src_offset += chunk_len; in aligned_flash_write()
|
| /Zephyr-4.2.1/tests/drivers/flash/common/src/ |
| D | main.c | 472 static void test_flash_copy_inner(const struct device *src_dev, off_t src_offset, in test_flash_copy_inner() argument 478 if ((expected_result == 0) && (size != 0) && (src_offset != dst_offset)) { in test_flash_copy_inner() 487 actual_result = flash_copy(src_dev, src_offset, dst_dev, dst_offset, size, buf, buf_size); in test_flash_copy_inner() 490 src_dev, src_offset, dst_dev, dst_offset, (size_t)size, buf, buf_size, in test_flash_copy_inner() 493 if ((expected_result == 0) && (size != 0) && (src_offset != dst_offset)) { in test_flash_copy_inner()
|
| /Zephyr-4.2.1/include/zephyr/drivers/ |
| D | flash.h | 673 __syscall int flash_copy(const struct device *src_dev, off_t src_offset,
|