Lines Matching refs:tmp_env2
72 env_t *tmp_env2; in env_init() local
74 tmp_env2 = (env_t *)((ulong)env_ptr + CONFIG_ENV_SIZE); in env_init()
75 crc2_ok = crc32(0, tmp_env2->data, ENV_SIZE) == tmp_env2->crc; in env_init()
93 if (tmp_env1->flags == 255 && tmp_env2->flags == 0) in env_init()
95 else if (tmp_env2->flags == 255 && tmp_env1->flags == 0) in env_init()
97 else if (tmp_env1->flags > tmp_env2->flags) in env_init()
99 else if (tmp_env2->flags > tmp_env1->flags) in env_init()
106 env_ptr = tmp_env2; in env_init()
315 env_t *ep, *tmp_env1, *tmp_env2; in env_relocate_spec() local
318 tmp_env2 = (env_t *)malloc(CONFIG_ENV_SIZE); in env_relocate_spec()
319 if (tmp_env1 == NULL || tmp_env2 == NULL) { in env_relocate_spec()
326 read2_fail = readenv(CONFIG_ENV_OFFSET_REDUND, (u_char *) tmp_env2); in env_relocate_spec()
337 (crc32(0, tmp_env2->data, ENV_SIZE) == tmp_env2->crc); in env_relocate_spec()
348 if (tmp_env1->flags == 255 && tmp_env2->flags == 0) in env_relocate_spec()
350 else if (tmp_env2->flags == 255 && tmp_env1->flags == 0) in env_relocate_spec()
352 else if (tmp_env1->flags > tmp_env2->flags) in env_relocate_spec()
354 else if (tmp_env2->flags > tmp_env1->flags) in env_relocate_spec()
365 ep = tmp_env2; in env_relocate_spec()
372 free(tmp_env2); in env_relocate_spec()