Lines Matching refs:user_conf
5269 struct nand_ecc_props *user_conf = &chip->base.ecc.user_conf; in of_get_nand_ecc_legacy_user_config() local
5271 if (user_conf->engine_type == NAND_ECC_ENGINE_TYPE_INVALID) in of_get_nand_ecc_legacy_user_config()
5272 user_conf->engine_type = of_get_rawnand_ecc_engine_type_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5274 if (user_conf->algo == NAND_ECC_ALGO_UNKNOWN) in of_get_nand_ecc_legacy_user_config()
5275 user_conf->algo = of_get_rawnand_ecc_algo_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5277 if (user_conf->placement == NAND_ECC_PLACEMENT_UNKNOWN) in of_get_nand_ecc_legacy_user_config()
5278 user_conf->placement = of_get_rawnand_ecc_placement_legacy(dn); in of_get_nand_ecc_legacy_user_config()
5402 if (nand->ecc.user_conf.engine_type != NAND_ECC_ENGINE_TYPE_INVALID) in rawnand_dt_init()
5403 chip->ecc.engine_type = nand->ecc.user_conf.engine_type; in rawnand_dt_init()
5407 chip->ecc.placement = nand->ecc.user_conf.placement; in rawnand_dt_init()
5408 chip->ecc.algo = nand->ecc.user_conf.algo; in rawnand_dt_init()
5409 chip->ecc.strength = nand->ecc.user_conf.strength; in rawnand_dt_init()
5410 chip->ecc.size = nand->ecc.user_conf.step_size; in rawnand_dt_init()
5522 base->ecc.user_conf.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in rawnand_sw_hamming_init()
5523 base->ecc.user_conf.algo = NAND_ECC_ALGO_HAMMING; in rawnand_sw_hamming_init()
5524 base->ecc.user_conf.strength = chip->ecc.strength; in rawnand_sw_hamming_init()
5525 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_hamming_init()
5581 base->ecc.user_conf.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in rawnand_sw_bch_init()
5582 base->ecc.user_conf.algo = NAND_ECC_ALGO_BCH; in rawnand_sw_bch_init()
5583 base->ecc.user_conf.step_size = chip->ecc.size; in rawnand_sw_bch_init()
5584 base->ecc.user_conf.strength = chip->ecc.strength; in rawnand_sw_bch_init()
5745 if (nanddev->ecc.user_conf.flags & NAND_ECC_MAXIMIZE_STRENGTH && in nand_set_ecc_soft_ops()
5747 nanddev->ecc.user_conf.flags &= ~NAND_ECC_MAXIMIZE_STRENGTH; in nand_set_ecc_soft_ops()
6000 if (nanddev->ecc.user_conf.flags & NAND_ECC_MAXIMIZE_STRENGTH) in nand_ecc_choose_conf()