Searched refs:env_flash (Results 1 – 1 of 1) sorted by relevance
/external/u-boot/env/ |
D | sf.c | 51 static struct spi_flash *env_flash; variable 67 env_flash = dev_get_uclass_priv(new); in setup_flash_device() 70 if (!env_flash) { in setup_flash_device() 71 env_flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, in setup_flash_device() 74 if (!env_flash) { in setup_flash_device() 118 ret = spi_flash_read(env_flash, saved_offset, in env_sf_save() 127 ret = spi_flash_erase(env_flash, env_new_offset, in env_sf_save() 134 ret = spi_flash_write(env_flash, env_new_offset, in env_sf_save() 140 ret = spi_flash_write(env_flash, saved_offset, in env_sf_save() 146 ret = spi_flash_write(env_flash, env_offset + offsetof(env_t, flags), in env_sf_save() [all …]
|