Searched refs:env_idx (Results 1 – 2 of 2) sorted by relevance
187 int env_idx = 0; in env_nand_save() local216 env_idx = (gd->env_valid == ENV_VALID); in env_nand_save()219 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()228 env_idx = (env_idx + 1) & 1; in env_nand_save()229 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
110 int env_idx = addr / sizeof(SpinInfo); in spin_write() local112 SpinInfo *curspin = &s->spin[env_idx]; in spin_write()115 cpu = qemu_get_cpu(env_idx); in spin_write()