mtk_nand 191 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 198 drivers/mtd/nand/raw/mtk_nand.c if (i < mtk_nand->bad_mark.sec) mtk_nand 199 drivers/mtd/nand/raw/mtk_nand.c poi = chip->oob_poi + (i + 1) * mtk_nand->fdm.reg_size; mtk_nand 200 drivers/mtd/nand/raw/mtk_nand.c else if (i == mtk_nand->bad_mark.sec) mtk_nand 203 drivers/mtd/nand/raw/mtk_nand.c poi = chip->oob_poi + i * mtk_nand->fdm.reg_size; mtk_nand 210 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 212 drivers/mtd/nand/raw/mtk_nand.c return chip->ecc.size + mtk_nand->spare_per_sector; mtk_nand 322 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 329 drivers/mtd/nand/raw/mtk_nand.c spare = mtk_nand->spare_per_sector; mtk_nand 380 drivers/mtd/nand/raw/mtk_nand.c fmt |= mtk_nand->fdm.reg_size << PAGEFMT_FDM_SHIFT; mtk_nand 381 drivers/mtd/nand/raw/mtk_nand.c fmt |= mtk_nand->fdm.ecc_size << PAGEFMT_FDM_ECC_SHIFT; mtk_nand 385 drivers/mtd/nand/raw/mtk_nand.c nfc->ecc_cfg.len = chip->ecc.size + mtk_nand->fdm.ecc_size; mtk_nand 393 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(nand); mtk_nand 400 drivers/mtd/nand/raw/mtk_nand.c nfi_writel(nfc, mtk_nand->sels[chip], NFI_CSEL); mtk_nand 615 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 616 drivers/mtd/nand/raw/mtk_nand.c int size = chip->ecc.size + mtk_nand->fdm.reg_size; mtk_nand 647 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 649 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 664 drivers/mtd/nand/raw/mtk_nand.c if (i == mtk_nand->bad_mark.sec) mtk_nand 665 drivers/mtd/nand/raw/mtk_nand.c mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); mtk_nand 681 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 683 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 692 drivers/mtd/nand/raw/mtk_nand.c if (i == mtk_nand->bad_mark.sec) mtk_nand 693 drivers/mtd/nand/raw/mtk_nand.c mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); mtk_nand 703 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 704 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 722 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 723 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 800 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 826 drivers/mtd/nand/raw/mtk_nand.c mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, raw); mtk_nand 889 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 891 drivers/mtd/nand/raw/mtk_nand.c u32 reg_size = mtk_nand->fdm.reg_size; mtk_nand 914 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 915 drivers/mtd/nand/raw/mtk_nand.c u32 spare = mtk_nand->spare_per_sector; mtk_nand 999 drivers/mtd/nand/raw/mtk_nand.c if (clamp(mtk_nand->bad_mark.sec, start, end) == mtk_nand->bad_mark.sec) mtk_nand 1000 drivers/mtd/nand/raw/mtk_nand.c mtk_nand->bad_mark.bm_swap(mtd, bufpoi, raw); mtk_nand 1026 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 1028 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 1040 drivers/mtd/nand/raw/mtk_nand.c if (i == mtk_nand->bad_mark.sec) mtk_nand 1041 drivers/mtd/nand/raw/mtk_nand.c mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); mtk_nand 1120 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 1121 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; mtk_nand 1139 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 1146 drivers/mtd/nand/raw/mtk_nand.c oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; mtk_nand 1294 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(chip); mtk_nand 1311 drivers/mtd/nand/raw/mtk_nand.c ret = mtk_nfc_set_spare_per_sector(&mtk_nand->spare_per_sector, mtd); mtk_nand 1315 drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_set_fdm(&mtk_nand->fdm, mtd); mtk_nand 1316 drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_set_bad_mark_ctl(&mtk_nand->bad_mark, mtd);