Home
last modified time | relevance | path

Searched refs:FLASH_SIMULATOR_PROG_UNIT (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/flash/
Dflash_simulator.c38 #define FLASH_SIMULATOR_PROG_UNIT DT_PROP(SOC_NV_FLASH_NODE, write_block_size) macro
47 #if (FLASH_SIMULATOR_ERASE_UNIT % FLASH_SIMULATOR_PROG_UNIT)
164 .write_block_size = FLASH_SIMULATOR_PROG_UNIT,
197 if ((offset % FLASH_SIMULATOR_PROG_UNIT) || in flash_sim_read()
198 (len % FLASH_SIMULATOR_PROG_UNIT)) { in flash_sim_read()
220 uint8_t buf[FLASH_SIMULATOR_PROG_UNIT]; in flash_sim_write()
227 if ((offset % FLASH_SIMULATOR_PROG_UNIT) || in flash_sim_write()
228 (len % FLASH_SIMULATOR_PROG_UNIT)) { in flash_sim_write()
240 for (uint32_t i = 0; i < len; i += FLASH_SIMULATOR_PROG_UNIT) { in flash_sim_write()
/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_impl/src/
Dmain.c23 #define FLASH_SIMULATOR_PROG_UNIT DT_PROP(SOC_NV_FLASH_NODE, write_block_size) macro
85 uint8_t buf[FLASH_SIMULATOR_PROG_UNIT]; in test_check_erase()
89 BUILD_ASSERT(sizeof(buf) >= FLASH_SIMULATOR_PROG_UNIT); in test_check_erase()
207 FLASH_SIMULATOR_PROG_UNIT); in test_erase()
339 uint8_t buf[FLASH_SIMULATOR_PROG_UNIT]; in ZTEST()
341 int max = (sizeof(src) + FLASH_SIMULATOR_PROG_UNIT - 1) & in ZTEST()
342 ~(FLASH_SIMULATOR_PROG_UNIT - 1); in ZTEST()
347 BUILD_ASSERT(sizeof(src) >= FLASH_SIMULATOR_PROG_UNIT); in ZTEST()
459 uint8_t buf[FLASH_SIMULATOR_PROG_UNIT]; in ZTEST()
485 size_t chunk = MIN(size, FLASH_SIMULATOR_PROG_UNIT); in ZTEST()