Searched refs:tmp_env2 (Results 1 – 5 of 5) sorted by relevance
/external/u-boot/env/ |
D | nand.c | 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() [all …]
|
D | common.c | 144 env_t *ep, *tmp_env1, *tmp_env2; in env_import_redund() local 147 tmp_env2 = (env_t *)buf2; in env_import_redund() 164 return env_import((char *)tmp_env2, 1); in env_import_redund() 169 crc2_ok = crc32(0, tmp_env2->data, ENV_SIZE) == in env_import_redund() 170 tmp_env2->crc; in env_import_redund() 181 if (tmp_env1->flags == 255 && tmp_env2->flags == 0) in env_import_redund() 183 else if (tmp_env2->flags == 255 && tmp_env1->flags == 0) in env_import_redund() 185 else if (tmp_env1->flags > tmp_env2->flags) in env_import_redund() 187 else if (tmp_env2->flags > tmp_env1->flags) in env_import_redund() 196 ep = tmp_env2; in env_import_redund()
|
D | ubi.c | 98 env_t *tmp_env1, *tmp_env2; in env_ubi_load() local 112 tmp_env2 = (env_t *)env2_buf; in env_ubi_load() 128 (void *)tmp_env2, CONFIG_ENV_SIZE); in env_ubi_load() 133 return env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, in env_ubi_load()
|
D | sf.c | 169 env_t *tmp_env1, *tmp_env2; in env_sf_load() local 173 tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load() 175 if (!tmp_env1 || !tmp_env2) { in env_sf_load() 188 CONFIG_ENV_SIZE, tmp_env2); in env_sf_load() 190 ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, in env_sf_load() 197 free(tmp_env2); in env_sf_load()
|
D | mmc.c | 273 ALLOC_CACHE_ALIGN_BUFFER(env_t, tmp_env2, 1); in env_mmc_load() 292 read2_fail = read_env(mmc, CONFIG_ENV_SIZE, offset2, tmp_env2); in env_mmc_load() 294 ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, in env_mmc_load()
|