Searched refs:env_idx (Results 1 – 1 of 1) sorted by relevance
189 int env_idx = 0; in env_nand_save() local218 env_idx = (gd->env_valid == ENV_VALID); in env_nand_save()221 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()230 env_idx = (env_idx + 1) & 1; in env_nand_save()231 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()