Searched refs:crc1_ok (Results 1 – 5 of 5) sorted by relevance
/u-boot/env/ |
A D | common.c | 148 int crc1_ok, crc2_ok; in env_check_redund() local 171 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_check_redund() 176 if (!crc1_ok && !crc2_ok) { in env_check_redund() 178 } else if (crc1_ok && !crc2_ok) { in env_check_redund() 180 } else if (!crc1_ok && crc2_ok) { in env_check_redund()
|
A D | nand.c | 63 int crc1_ok = 0, crc2_ok = 0; in env_nand_init() local 73 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->crc; in env_nand_init() 75 if (!crc1_ok && !crc2_ok) { in env_nand_init() 80 } else if (crc1_ok && !crc2_ok) { in env_nand_init() 84 else if (!crc1_ok && crc2_ok) { in env_nand_init()
|
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()
|
A D | sf.c | 320 int crc1_ok; in env_sf_init_early() local 365 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_sf_init_early() 367 if (!crc1_ok) in env_sf_init_early()
|
/u-boot/tools/env/ |
A D | fw_env.c | 1415 int crc1, crc1_ok; in fw_env_open() local 1520 crc1_ok = (crc1 == redundant->crc); in fw_env_open() 1530 !crc0_ok || !crc1_ok) in fw_env_open() 1533 if (crc0_ok && !crc1_ok) { in fw_env_open() 1535 } else if (!crc0_ok && crc1_ok) { in fw_env_open() 1537 } else if (!crc0_ok && !crc1_ok) { in fw_env_open()
|
Completed in 8 milliseconds