Searched refs:ecc_cfg (Results 1 – 3 of 3) sorted by relevance
311 struct mtk_ecc_config *ecc_cfg; member671 struct mtk_ecc_config *ecc_cfg; in mtk_snand_ecc_init_ctx() local678 ecc_cfg = kzalloc(sizeof(*ecc_cfg), GFP_KERNEL); in mtk_snand_ecc_init_ctx()679 if (!ecc_cfg) in mtk_snand_ecc_init_ctx()682 nand->ecc.ctx.priv = ecc_cfg; in mtk_snand_ecc_init_ctx()699 ecc_cfg->mode = ECC_NFI_MODE; in mtk_snand_ecc_init_ctx()700 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()701 ecc_cfg->len = snf->caps->sector_size + snf->caps->fdm_ecc_size; in mtk_snand_ecc_init_ctx()706 ecc_cfg->strength = max_ecc_bytes * 8 / parity_bits; in mtk_snand_ecc_init_ctx()707 mtk_ecc_adjust_strength(snf->ecc, &ecc_cfg->strength); in mtk_snand_ecc_init_ctx()[all …]
121 u32 ecc_cfg; member276 u32 ecc_cfg; in pl35x_smc_set_ecc_mode() local278 ecc_cfg = readl(nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_smc_set_ecc_mode()279 ecc_cfg &= ~PL35X_SMC_ECC_CFG_MODE_MASK; in pl35x_smc_set_ecc_mode()280 ecc_cfg |= mode; in pl35x_smc_set_ecc_mode()281 writel(ecc_cfg, nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_smc_set_ecc_mode()285 plnand->ecc_cfg = ecc_cfg; in pl35x_smc_set_ecc_mode()326 writel(plnand->ecc_cfg, nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_nand_select_target()890 plnand->ecc_cfg = readl(nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_smc_set_ecc_pg_size()891 plnand->ecc_cfg &= ~PL35X_SMC_ECC_CFG_PGSIZE_MASK; in pl35x_smc_set_ecc_pg_size()[all …]
144 struct mtk_ecc_config ecc_cfg; member383 nfc->ecc_cfg.strength = chip->ecc.strength; in mtk_nfc_hw_runtime_config()384 nfc->ecc_cfg.len = chip->ecc.size + mtk_nand->fdm.ecc_size; in mtk_nfc_hw_runtime_config()647 nfc->ecc_cfg.mode = ECC_DMA_MODE; in mtk_nfc_sector_encode()648 nfc->ecc_cfg.op = ECC_ENCODE; in mtk_nfc_sector_encode()650 return mtk_ecc_encode(nfc->ecc, &nfc->ecc_cfg, data, size); in mtk_nfc_sector_encode()843 nfc->ecc_cfg.op = ECC_ENCODE; in mtk_nfc_write_page()844 nfc->ecc_cfg.mode = ECC_NFI_MODE; in mtk_nfc_write_page()845 ret = mtk_ecc_enable(nfc->ecc, &nfc->ecc_cfg); in mtk_nfc_write_page()979 nfc->ecc_cfg.mode = ECC_NFI_MODE; in mtk_nfc_read_subpage()[all …]