Lines Matching full:requirements
499 struct nand_ecc_props requirements = {}; in hynix_nand_extract_ecc_requirements() local
504 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
508 requirements.step_size = 0; in hynix_nand_extract_ecc_requirements()
509 requirements.strength = 0; in hynix_nand_extract_ecc_requirements()
512 requirements.strength = 4; in hynix_nand_extract_ecc_requirements()
515 requirements.strength = 24; in hynix_nand_extract_ecc_requirements()
518 requirements.strength = 32; in hynix_nand_extract_ecc_requirements()
521 requirements.strength = 40; in hynix_nand_extract_ecc_requirements()
524 requirements.strength = 50; in hynix_nand_extract_ecc_requirements()
527 requirements.strength = 60; in hynix_nand_extract_ecc_requirements()
536 WARN(1, "Invalid ECC requirements"); in hynix_nand_extract_ecc_requirements()
540 * The ECC requirements field meaning depends on the in hynix_nand_extract_ecc_requirements()
548 requirements.step_size = 512; in hynix_nand_extract_ecc_requirements()
549 requirements.strength = 1 << ecc_level; in hynix_nand_extract_ecc_requirements()
552 requirements.step_size = 2048; in hynix_nand_extract_ecc_requirements()
554 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
555 requirements.strength = 24; in hynix_nand_extract_ecc_requirements()
563 WARN(1, "Invalid ECC requirements"); in hynix_nand_extract_ecc_requirements()
568 requirements.step_size = 0; in hynix_nand_extract_ecc_requirements()
569 requirements.strength = 0; in hynix_nand_extract_ecc_requirements()
571 requirements.step_size = 512; in hynix_nand_extract_ecc_requirements()
572 requirements.strength = 1 << (ecc_level - 1); in hynix_nand_extract_ecc_requirements()
574 requirements.step_size = 1024; in hynix_nand_extract_ecc_requirements()
575 requirements.strength = 24 + in hynix_nand_extract_ecc_requirements()
581 nanddev_set_ecc_requirements(base, &requirements); in hynix_nand_extract_ecc_requirements()