Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/env/
H A Dubi.c25 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
28 ret = env_export(env_new); in env_ubi_save()
41 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
50 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
67 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
70 ret = env_export(env_new); in env_ubi_save()
80 if (ubi_volume_write(CONFIG_ENV_UBI_VOLUME, (void *)env_new, in env_ubi_save()
H A 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()
259 env_t env_new; in env_sf_save() local
279 ret = env_export(&env_new); in env_sf_save()
293 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
H A Dflash.c122 env_t env_new; in env_flash_save() local
141 rc = env_export(&env_new); in env_flash_save()
144 env_new.flags = new_flag; in env_flash_save()
174 rc = flash_write((char *)&env_new, (ulong)flash_addr_new, in env_flash_save()
175 sizeof(env_new)); in env_flash_save()
242 env_t env_new; in env_flash_save() local
271 rc = env_export(&env_new); in env_flash_save()
280 rc = flash_write((char *)&env_new, (long)flash_addr, CONFIG_ENV_SIZE); in env_flash_save()
H A 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()
H A Dnand.c166 u_char *env_new) in erase_and_write_env() argument
180 ret = writeenv(location->erase_opts.offset, env_new); in erase_and_write_env()
189 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_nand_save()
214 ret = env_export(env_new); in env_nand_save()
222 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
232 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
H A Dfat.c39 env_t env_new; in env_fat_save() local
46 err = env_export(&env_new); in env_fat_save()
63 err = file_fat_write(CONFIG_ENV_FAT_FILE, (void *)&env_new, 0, sizeof(env_t), in env_fat_save()
H A Dext4.c39 env_t env_new; in env_ext4_save() local
45 err = env_export(&env_new); in env_ext4_save()
64 err = ext4fs_write(EXT4_ENV_FILE, (void *)&env_new, sizeof(env_t)); in env_ext4_save()
H A Donenand.c68 env_t env_new; in env_onenand_save() local
80 ret = env_export(&env_new); in env_onenand_save()
101 (u_char *)&env_new)) { in env_onenand_save()
H A Dsata.c50 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_sata_save()
66 ret = env_export(env_new); in env_sata_save()
71 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { in env_sata_save()
H A 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()
H A Denv_blk.c103 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_blk_save()
121 ret = env_export(env_new); in env_blk_save()
138 if (write_env(blk_desc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_blk_save()
H A Dmmc.c202 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_mmc_save()
215 ret = env_export(env_new); in env_mmc_save()
230 if (write_env(mmc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_mmc_save()