Searched refs:crc1_ok (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/env/ |
H A D | common.c | 141 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 D | nand.c | 65 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 D | flash.c | 75 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 D | fw_env.c | 1390 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()
|