Lines Matching refs:user_conf

5195 	struct nand_ecc_props *user_conf = &chip->base.ecc.user_conf;  in of_get_nand_ecc_legacy_user_config()  local
5197 if (user_conf->engine_type == NAND_ECC_ENGINE_TYPE_INVALID) in of_get_nand_ecc_legacy_user_config()
5198 user_conf->engine_type = of_get_rawnand_ecc_engine_type_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5200 if (user_conf->algo == NAND_ECC_ALGO_UNKNOWN) in of_get_nand_ecc_legacy_user_config()
5201 user_conf->algo = of_get_rawnand_ecc_algo_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5203 if (user_conf->placement == NAND_ECC_PLACEMENT_UNKNOWN) in of_get_nand_ecc_legacy_user_config()
5204 user_conf->placement = of_get_rawnand_ecc_placement_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5328 if (nand->ecc.user_conf.engine_type != NAND_ECC_ENGINE_TYPE_INVALID) in rawnand_dt_init()
5329 chip->ecc.engine_type = nand->ecc.user_conf.engine_type; in rawnand_dt_init()
5333 chip->ecc.placement = nand->ecc.user_conf.placement; in rawnand_dt_init()
5334 chip->ecc.algo = nand->ecc.user_conf.algo; in rawnand_dt_init()
5335 chip->ecc.strength = nand->ecc.user_conf.strength; in rawnand_dt_init()
5336 chip->ecc.size = nand->ecc.user_conf.step_size; in rawnand_dt_init()
5447 base->ecc.user_conf.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in rawnand_sw_hamming_init()
5448 base->ecc.user_conf.algo = NAND_ECC_ALGO_HAMMING; in rawnand_sw_hamming_init()
5449 base->ecc.user_conf.strength = chip->ecc.strength; in rawnand_sw_hamming_init()
5450 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_hamming_init()
5506 base->ecc.user_conf.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in rawnand_sw_bch_init()
5507 base->ecc.user_conf.algo = NAND_ECC_ALGO_BCH; in rawnand_sw_bch_init()
5508 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_bch_init()
5509 base->ecc.user_conf.strength = chip->ecc.strength; in rawnand_sw_bch_init()
5670 if (nanddev->ecc.user_conf.flags & NAND_ECC_MAXIMIZE_STRENGTH && in nand_set_ecc_soft_ops()
5672 nanddev->ecc.user_conf.flags &= ~NAND_ECC_MAXIMIZE_STRENGTH; in nand_set_ecc_soft_ops()
5925 if (nanddev->ecc.user_conf.flags & NAND_ECC_MAXIMIZE_STRENGTH) in nand_ecc_choose_conf()