Lines Matching +full:partition +full:- +full:erase
4 * SPDX-License-Identifier: Apache-2.0
76 remaining = size - (size_t)offset; in test_flash_is_erased()
83 if (!test_flash_mem_is_set_to(test_erase_buffer, parameters->erase_value, in test_flash_is_erased()
104 flash_controller->name); in test_flash_erase_partition()
114 "Failed to erase partition"); in test_flash_before()
116 "Failed to erase partition"); in test_flash_before()
133 off_t page_boundary = info->start_offset; in test_flash_write_across_page_boundary()
134 uint32_t page0_index = info->index - 1; in test_flash_write_across_page_boundary()
135 uint32_t page1_index = info->index; in test_flash_write_across_page_boundary()
136 off_t cross_write_start_offset = page_boundary - (off_t)write_block_size; in test_flash_write_across_page_boundary()
152 if (info->start_offset <= TEST_FLASH_PART_OFFSET) { in test_flash_write_across_page_boundaries()
153 /* Not yet reached second page within partition */ in test_flash_write_across_page_boundaries()
157 if (info->start_offset >= TEST_FLASH_PART_END_OFFSET) { in test_flash_write_across_page_boundaries()
158 /* Reached first page after partition end */ in test_flash_write_across_page_boundaries()
169 size_t write_block_size = parameters->write_block_size; in ZTEST()
177 off_t page_offset = info->start_offset; in test_flash_erase_page()
178 size_t page_size = info->size; in test_flash_erase_page()
179 size_t page_index = info->index; in test_flash_erase_page()
185 "Failed to erase page"); in test_flash_erase_page()
188 "Failed to erase page"); in test_flash_erase_page()
193 if (info->start_offset < TEST_FLASH_PART_OFFSET) { in test_flash_erase_pages()
194 /* Not yet reached first page within partition */ in test_flash_erase_pages()
198 if (info->start_offset >= TEST_FLASH_PART_END_OFFSET) { in test_flash_erase_pages()
199 /* Reached first page after partition end */ in test_flash_erase_pages()
210 size_t write_block_size = parameters->write_block_size; in ZTEST()