Lines Matching refs:ecc_cfg
144 struct mtk_ecc_config ecc_cfg; member
383 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()
980 nfc->ecc_cfg.sectors = sectors; in mtk_nfc_read_subpage()
981 nfc->ecc_cfg.op = ECC_DECODE; in mtk_nfc_read_subpage()
982 rc = mtk_ecc_enable(nfc->ecc, &nfc->ecc_cfg); in mtk_nfc_read_subpage()