Home
last modified time | relevance | path

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

/external/u-boot/env/
Dubi.c34 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
37 ret = env_export(env_new); in env_ubi_save()
50 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
59 (void *)env_new, CONFIG_ENV_SIZE)) { in env_ubi_save()
76 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_ubi_save()
79 ret = env_export(env_new); in env_ubi_save()
89 if (ubi_volume_write(CONFIG_ENV_UBI_VOLUME, (void *)env_new, in env_ubi_save()
Dsf.c75 env_t env_new; in env_sf_save() local
84 ret = env_export(&env_new); in env_sf_save()
87 env_new.flags = ENV_REDUND_ACTIVE; in env_sf_save()
123 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
135 sizeof(env_new.flags), &flag); in env_sf_save()
196 env_t env_new; in env_sf_save() local
216 ret = env_export(&env_new); in env_sf_save()
230 CONFIG_ENV_SIZE, &env_new); in env_sf_save()
Dnvram.c72 env_t env_new; in env_nvram_save() local
75 rcode = env_export(&env_new); in env_nvram_save()
80 nvram_write(CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE); in env_nvram_save()
82 if (memcpy((char *)CONFIG_ENV_ADDR, &env_new, CONFIG_ENV_SIZE) == NULL) in env_nvram_save()
Dflash.c120 env_t env_new; in env_flash_save() local
139 rc = env_export(&env_new); in env_flash_save()
142 env_new.flags = new_flag; in env_flash_save()
172 rc = flash_write((char *)&env_new, (ulong)flash_addr_new, in env_flash_save()
173 sizeof(env_new)); in env_flash_save()
240 env_t env_new; in env_flash_save() local
269 rc = env_export(&env_new); in env_flash_save()
278 rc = flash_write((char *)&env_new, (long)flash_addr, CONFIG_ENV_SIZE); in env_flash_save()
Draw_disk.c26 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_raw_disk_save()
32 err = env_export(env_new); in env_raw_disk_save()
45 n = blk_dwrite(dev_desc, info.start, blk_cnt, (u_char *)env_new); in env_raw_disk_save()
Dnand.c160 u_char *env_new) in erase_and_write_env() argument
174 ret = writeenv(location->erase_opts.offset, env_new); in erase_and_write_env()
183 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_nand_save()
208 ret = env_export(env_new); in env_nand_save()
216 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
226 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_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.c37 env_t __aligned(ARCH_DMA_MINALIGN) env_new; in env_fat_save()
44 err = env_export(&env_new); in env_fat_save()
65 err = file_fat_write(CONFIG_ENV_FAT_FILE, (void *)&env_new, 0, sizeof(env_t), in env_fat_save()
Dext4.c47 env_t env_new; in env_ext4_save() local
55 err = env_export(&env_new); in env_ext4_save()
73 err = ext4fs_write(CONFIG_ENV_EXT4_FILE, (void *)&env_new, in env_ext4_save()
Dsata.c48 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_sata_save()
64 ret = env_export(env_new); in env_sata_save()
69 if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) { in env_sata_save()
Deeprom.c196 env_t env_new; in env_eeprom_save() local
204 rc = env_export(&env_new); in env_eeprom_save()
214 env_new.flags = ENV_REDUND_ACTIVE; in env_eeprom_save()
218 off, (uchar *)&env_new, CONFIG_ENV_SIZE); in env_eeprom_save()
Dmmc.c193 ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); in env_mmc_save()
206 ret = env_export(env_new); in env_mmc_save()
221 if (write_env(mmc, CONFIG_ENV_SIZE, offset, (u_char *)env_new)) { in env_mmc_save()