Lines Matching refs:tmp_env1
68 env_t *tmp_env1; in env_nand_init() local
76 tmp_env1 = env_ptr; in env_nand_init()
77 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->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()
109 env_ptr = tmp_env1; in env_nand_init()
323 env_t *tmp_env1, *tmp_env2; in env_nand_load()
326 tmp_env1 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_nand_load()
328 if (tmp_env1 == NULL || tmp_env2 == NULL) { in env_nand_load()
335 read1_fail = readenv(CONFIG_ENV_OFFSET, (u_char *) tmp_env1); in env_nand_load()
338 ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, in env_nand_load()
342 free(tmp_env1); in env_nand_load()