Home
last modified time | relevance | path

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

/openbmc/u-boot/env/
H A Dcommon.c141 int crc1_ok, crc2_ok; in env_import_redund() local
165 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_import_redund()
170 if (!crc1_ok && !crc2_ok) { in env_import_redund()
173 } else if (crc1_ok && !crc2_ok) { in env_import_redund()
175 } else if (!crc1_ok && crc2_ok) { in env_import_redund()
H A Dnand.c65 int crc1_ok = 0, crc2_ok = 0; in env_nand_init() local
75 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->crc; in env_nand_init()
77 if (!crc1_ok && !crc2_ok) { in env_nand_init()
82 } else if (crc1_ok && !crc2_ok) { in env_nand_init()
86 else if (!crc1_ok && crc2_ok) { in env_nand_init()
H A 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()
/openbmc/u-boot/tools/env/
H A 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()