Home
last modified time | relevance | path

Searched refs:crc1_ok (Results 1 – 4 of 4) sorted by relevance

/external/u-boot/env/
Dcommon.c143 int crc1_ok, crc2_ok; in env_import_redund() local
167 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_import_redund()
172 if (!crc1_ok && !crc2_ok) { in env_import_redund()
175 } else if (crc1_ok && !crc2_ok) { in env_import_redund()
177 } else if (!crc1_ok && crc2_ok) { in env_import_redund()
Dnand.c67 int crc1_ok = 0, crc2_ok = 0; in env_nand_init() local
77 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->crc; in env_nand_init()
79 if (!crc1_ok && !crc2_ok) { in env_nand_init()
84 } else if (crc1_ok && !crc2_ok) { in env_nand_init()
88 else if (!crc1_ok && crc2_ok) { in env_nand_init()
Dflash.c75 int crc1_ok = 0, crc2_ok = 0; in env_flash_init() local
84 crc1_ok = crc32(0, flash_addr->data, ENV_SIZE) == flash_addr->crc; in env_flash_init()
88 if (crc1_ok && !crc2_ok) { in env_flash_init()
91 } else if (!crc1_ok && crc2_ok) { in env_flash_init()
94 } else if (!crc1_ok && !crc2_ok) { in env_flash_init()
/external/u-boot/tools/env/
Dfw_env.c1390 int crc1, crc1_ok; in fw_env_open() local
1494 crc1_ok = (crc1 == redundant->crc); in fw_env_open()
1497 if (crc0_ok && !crc1_ok) { in fw_env_open()
1499 } else if (!crc0_ok && crc1_ok) { in fw_env_open()
1501 } else if (!crc0_ok && !crc1_ok) { in fw_env_open()