Searched refs:mtk_nand (Results 1 – 2 of 2) sorted by relevance
190 struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); in oob_ptr() local197 if (i < mtk_nand->bad_mark.sec) in oob_ptr()198 poi = chip->oob_poi + (i + 1) * mtk_nand->fdm.reg_size; in oob_ptr()199 else if (i == mtk_nand->bad_mark.sec) in oob_ptr()202 poi = chip->oob_poi + i * mtk_nand->fdm.reg_size; in oob_ptr()209 struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); in mtk_data_len() local211 return chip->ecc.size + mtk_nand->spare_per_sector; in mtk_data_len()321 struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); in mtk_nfc_hw_runtime_config() local328 spare = mtk_nand->spare_per_sector; in mtk_nfc_hw_runtime_config()379 fmt |= mtk_nand->fdm.reg_size << PAGEFMT_FDM_SHIFT; in mtk_nfc_hw_runtime_config()[all …]
50 obj-$(CONFIG_MTD_NAND_MTK) += mtk_nand.o