Searched refs:FLASH_SIMULATOR_ERASE_UNIT (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_impl/src/ |
D | main.c | 22 #define FLASH_SIMULATOR_ERASE_UNIT DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) macro 190 FLASH_SIMULATOR_ERASE_UNIT, in test_erase() 191 FLASH_SIMULATOR_ERASE_UNIT); in test_erase() 197 FLASH_SIMULATOR_ERASE_UNIT); in test_erase() 202 FLASH_SIMULATOR_ERASE_UNIT, pattern32_flat, in test_erase() 203 FLASH_SIMULATOR_ERASE_UNIT); in test_erase() 206 pattern32_ini(FLASH_SIMULATOR_ERASE_UNIT*2 / in test_erase() 209 FLASH_SIMULATOR_ERASE_UNIT*2, pattern32_inc, in test_erase() 210 FLASH_SIMULATOR_ERASE_UNIT*2); in test_erase() 242 FLASH_SIMULATOR_ERASE_UNIT, in ZTEST() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_simulator.c | 37 #define FLASH_SIMULATOR_ERASE_UNIT DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) macro 45 FLASH_SIMULATOR_ERASE_UNIT) 47 #if (FLASH_SIMULATOR_ERASE_UNIT % FLASH_SIMULATOR_PROG_UNIT) 302 const off_t unit_addr = unit * FLASH_SIMULATOR_ERASE_UNIT; in unit_erase() 306 FLASH_SIMULATOR_ERASE_UNIT); in unit_erase() 319 if ((offset % FLASH_SIMULATOR_ERASE_UNIT) || in flash_sim_erase() 320 (len % FLASH_SIMULATOR_ERASE_UNIT)) { in flash_sim_erase() 334 uint32_t unit_start = offset / FLASH_SIMULATOR_ERASE_UNIT; in flash_sim_erase() 337 for (uint32_t i = 0; i < len / FLASH_SIMULATOR_ERASE_UNIT; i++) { in flash_sim_erase() 355 .pages_size = FLASH_SIMULATOR_ERASE_UNIT,
|
/Zephyr-latest/tests/subsys/bindesc/reading/src/ |
D | main.c | 23 #define FLASH_SIMULATOR_ERASE_UNIT DT_PROP(SOC_NV_FLASH_NODE, erase_block_size) macro 43 flash_erase(flash_dev, 0, FLASH_SIMULATOR_ERASE_UNIT); in test_setup()
|