Home
last modified time | relevance | path

Searched refs:erase_value (Results 1 – 25 of 65) sorted by relevance

123

/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c55 static uint8_t erase_value; variable
71 erase_value = fparams->erase_value; in flash_driver_before()
78 erase_value = 0x55; in flash_driver_before()
94 if (val == erase_value) { in flash_driver_before()
109 if (buf[i] != erase_value) { in flash_driver_before()
131 const uint8_t canary = erase_value; in ZTEST()
263 erase_value = fparams->erase_value; in ZTEST()
297 if (read_buf[i] != erase_value) { in ZTEST()
300 erase_value); in ZTEST()
307 zassert_not_equal(expected[0], erase_value, "These values shall be different"); in ZTEST()
/Zephyr-latest/drivers/flash/
Dflash_simulator_native.c40 unsigned int erase_value, bool flash_erase_at_start) in flash_mock_init_native() argument
88 (void)memset(*mock_flash, erase_value, size); in flash_mock_init_native()
Dflash_simulator_native.h16 unsigned int erase_value, bool flash_erase_at_start);
Dflash_mspi_emul_device.c168 memset(data->mem, cfg->flash_param.erase_value, size); in flash_mspi_emul_erase()
172 memset(data->mem + offset, cfg->flash_param.erase_value, in flash_mspi_emul_erase()
178 memset(data->mem + offset, cfg->flash_param.erase_value, in flash_mspi_emul_erase()
423 .erase_value = 0xff, \
Dflash_util.c85 return flash_fill(dev, params->erase_value, offset, size); in z_impl_flash_flatten()
173 memset(buf, params->erase_value, write_size); in z_impl_flash_copy()
Dflash_gd32.c28 .erase_value = 0xff,
Dflash_esp32.c48 .erase_value = 0xff,
Dsoc_flash_rv32m1.c33 .erase_value = 0xff,
Dflash_cadence_qspi_nor.c32 .erase_value = 0xff,
Dsoc_flash_nrf_mram.c153 .erase_value = ERASE_VALUE, in nrf_mram_get_parameters()
Dsoc_flash_b91.c34 .erase_value = 0xff,
Dflash_max32.c169 .erase_value = 0xFF, \
Dsoc_flash_lpc.c43 .erase_value = 0xff,
Dflash_simulator.c42 DT_PROP(DT_PARENT(SOC_NV_FLASH_NODE), erase_value)
165 .erase_value = FLASH_SIMULATOR_ERASE_VALUE,
Dflash_stm32.c39 .erase_value = 0,
41 .erase_value = 0xff,
Dflash_stm32wba_fm.c32 .erase_value = 0xff,
Dflash_ambiq.c50 .erase_value = FLASH_ERASE_BYTE,
/Zephyr-latest/drivers/eeprom/
Deeprom_simulator_native.c35 int *eeprom_fd, const char *eeprom_file_path, unsigned int erase_value, in eeprom_mock_init_native() argument
79 (void)memset(*mock_eeprom, erase_value, size); in eeprom_mock_init_native()
Deeprom_simulator_native.h17 int *eeprom_fd, const char *eeprom_file_path, unsigned int erase_value,
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c133 (void)memset(buf + len, fs->flash_parameters->erase_value, in nvs_flash_al_wrt()
353 if (nvs_flash_cmp_const(fs, addr, fs->flash_parameters->erase_value, in nvs_flash_erase_sector()
547 rc = nvs_ate_cmp_const(&close_ate, fs->flash_parameters->erase_value); in nvs_prev_ate()
648 rc = nvs_ate_cmp_const(&close_ate, fs->flash_parameters->erase_value); in nvs_gc()
759 uint8_t erase_value = fs->flash_parameters->erase_value; in nvs_startup() local
770 rc = nvs_flash_cmp_const(fs, addr, erase_value, in nvs_startup()
776 rc = nvs_flash_cmp_const(fs, addr, erase_value, in nvs_startup()
809 rc = nvs_flash_cmp_const(fs, addr - ate_size, erase_value, in nvs_startup()
839 rc = nvs_ate_cmp_const(&last_ate, erase_value); in nvs_startup()
878 rc = nvs_flash_cmp_const(fs, addr, erase_value, fs->sector_size); in nvs_startup()
[all …]
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h71 uint8_t erase_value; member
/Zephyr-latest/subsys/storage/stream/
Dstream_flash.c152 filler = ctx->erase_value; in flash_sync()
334 ctx->erase_value = params->erase_value; in stream_flash_init()
/Zephyr-latest/tests/drivers/flash/stm32/src/
Dmain.c97 if (buf[i] != flash_params->erase_value) { in flash_stm32_setup()
142 zassert_true(buf[i] == flash_params->erase_value, in ZTEST()
/Zephyr-latest/subsys/storage/flash_map/
Dflash_map.c126 return param->erase_value; in flash_area_erased_val()
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dmain.c174 fcb_test_erase_value = fp->erase_value; in ZTEST()

123