Searched refs:crc1_ok (Results 1 – 5 of 5) sorted by relevance
| /u-boot/env/ |
| A D | nand.c | 59 int crc1_ok = 0, crc2_ok = 0; in env_nand_init() local 69 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->crc; in env_nand_init() 71 if (!crc1_ok && !crc2_ok) { in env_nand_init() 76 } else if (crc1_ok && !crc2_ok) { in env_nand_init() 80 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 83 crc1_ok = crc32(0, flash_addr->data, ENV_SIZE) == flash_addr->crc; in env_flash_init() 87 if (crc1_ok && !crc2_ok) { in env_flash_init() 90 } else if (!crc1_ok && crc2_ok) { in env_flash_init() 93 } else if (!crc1_ok && !crc2_ok) { in env_flash_init()
|
| A D | common.c | 334 int crc1_ok = 0, crc2_ok = 0; in env_check_redund() local 349 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_check_redund() 355 if (!crc1_ok && !crc2_ok) { in env_check_redund() 357 } else if (crc1_ok && !crc2_ok) { in env_check_redund() 359 } else if (!crc1_ok && crc2_ok) { in env_check_redund()
|
| A D | sf.c | 358 int crc1_ok; in env_sf_init_early() local 404 crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == in env_sf_init_early() 406 if (!crc1_ok) in env_sf_init_early()
|
| /u-boot/tools/env/ |
| A D | fw_env.c | 1421 int crc1, crc1_ok; in fw_env_open() local 1515 crc1_ok = (crc1 == redundant1->crc); in fw_env_open() 1519 !crc0_ok || !crc1_ok) in fw_env_open() 1522 if (crc0_ok && !crc1_ok) { in fw_env_open() 1524 } else if (!crc0_ok && crc1_ok) { in fw_env_open() 1526 } else if (!crc0_ok && !crc1_ok) { in fw_env_open()
|
Completed in 13 milliseconds