Searched refs:env_idx (Results 1 – 1 of 1) sorted by relevance
184 int env_idx = 0; in env_nand_save() local213 env_idx = (gd->env_valid == ENV_VALID); in env_nand_save()216 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()225 env_idx = (env_idx + 1) & 1; in env_nand_save()226 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()