Home
last modified time | relevance | path

Searched refs:env_new (Results 1 – 11 of 11) sorted by relevance

/external/u-boot/env/
Dubi.c24 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
27 ret = env_export(env_new); in env_ubi_save()
40 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
49 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
66 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
69 ret = env_export(env_new); in env_ubi_save()
79 if (ubi_volume_write(CONFIG_ENV_UBI_VOLUME, (void *)env_new, in env_ubi_save()
Dsf.c87 env_t env_new; in env_sf_save() local
96 ret = env_export(&env_new); in env_sf_save()
99 env_new.flags = ACTIVE_FLAG; in env_sf_save()
135 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
147 sizeof(env_new.flags), &flag); in env_sf_save()
208 env_t env_new; in env_sf_save() local
228 ret = env_export(&env_new); in env_sf_save()
242 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
Dnvram.c70 env_t env_new; in env_nvram_save() local
73 rcode = env_export(&env_new); in env_nvram_save()
78 nvram_write(CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE); in env_nvram_save()
80 if (memcpy((char *)CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE) == NULL) in env_nvram_save()
Dflash.c121 env_t env_new; in env_flash_save() local
140 rc = env_export(&env_new); in env_flash_save()
143 env_new.flags = new_flag; in env_flash_save()
173 rc = flash_write((char *)&env_new, (ulong)flash_addr_new, in env_flash_save()
174 sizeof(env_new)); in env_flash_save()
241 env_t env_new; in env_flash_save() local
270 rc = env_export(&env_new); in env_flash_save()
279 rc = flash_write((char *)&env_new, (long)flash_addr, CONFIG_ENV_SIZE); in env_flash_save()
Dnand.c165 u_char *env_new) in erase_and_write_env() argument
179 ret = writeenv(location->erase_opts.offset, env_new); in erase_and_write_env()
188 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_nand_save()
213 ret = env_export(env_new); in env_nand_save()
221 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
231 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
Dext4.c36 env_t env_new; in env_ext4_save() local
42 err = env_export(&env_new); in env_ext4_save()
62 err = ext4fs_write(CONFIG_ENV_EXT4_FILE, (void *)&env_new, in env_ext4_save()
Donenand.c67 env_t env_new; in env_onenand_save() local
79 ret = env_export(&env_new); in env_onenand_save()
100 (u_char *)&env_new)) { in env_onenand_save()
Dfat.c36 env_t __aligned(ARCH_DMA_MINALIGN) env_new; in env_fat_save()
43 err = env_export(&env_new); in env_fat_save()
64 err = file_fat_write(CONFIG_ENV_FAT_FILE, (void *)&env_new, 0, sizeof(env_t), in env_fat_save()
Dsata.c47 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_sata_save()
63 ret = env_export(env_new); in env_sata_save()
68 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { in env_sata_save()
Deeprom.c191 env_t env_new; in env_eeprom_save() local
199 rc = env_export(&env_new); in env_eeprom_save()
209 env_new.flags = ACTIVE_FLAG; in env_eeprom_save()
213 off, (uchar *)&env_new, CONFIG_ENV_SIZE); in env_eeprom_save()
Dmmc.c201 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_mmc_save()
214 ret = env_export(env_new); in env_mmc_save()
229 if (write_env(mmc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_mmc_save()