Lines Matching refs:tmp_env2
71 env_t *tmp_env2; in env_nand_init() local
73 tmp_env2 = (env_t *)((ulong)env_ptr + CONFIG_ENV_SIZE); in env_nand_init()
74 crc2_ok = crc32(0, tmp_env2->data, ENV_SIZE) == tmp_env2->crc; in env_nand_init()
92 if (tmp_env1->flags == 255 && tmp_env2->flags == 0) in env_nand_init()
94 else if (tmp_env2->flags == 255 && tmp_env1->flags == 0) in env_nand_init()
96 else if (tmp_env1->flags > tmp_env2->flags) in env_nand_init()
98 else if (tmp_env2->flags > tmp_env1->flags) in env_nand_init()
105 env_ptr = tmp_env2; in env_nand_init()
323 env_t *tmp_env1, *tmp_env2; in env_nand_load()
327 tmp_env2 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
328 if (tmp_env1 == NULL || tmp_env2 == NULL) { in env_nand_load()
336 read2_fail = readenv(CONFIG_ENV_OFFSET_REDUND, (u_char *) tmp_env2); in env_nand_load()
338 ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, in env_nand_load()
343 free(tmp_env2); in env_nand_load()