Lines Matching refs:bad_mark
129 struct mtk_nfc_bad_mark_ctl bad_mark; member
198 if (i < mtk_nand->bad_mark.sec) in oob_ptr()
200 else if (i == mtk_nand->bad_mark.sec) in oob_ptr()
663 u32 bad_pos = nand->bad_mark.pos; in mtk_nfc_bad_mark_swap()
666 bad_pos += nand->bad_mark.sec * mtk_data_len(chip); in mtk_nfc_bad_mark_swap()
668 bad_pos += nand->bad_mark.sec * chip->ecc.size; in mtk_nfc_bad_mark_swap()
694 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_format_subpage()
695 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_format_subpage()
722 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_format_page()
723 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_format_page()
857 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, raw); in mtk_nfc_write_page()
1031 if (clamp(mtk_nand->bad_mark.sec, start, end) == mtk_nand->bad_mark.sec) in mtk_nfc_read_subpage()
1032 mtk_nand->bad_mark.bm_swap(mtd, bufpoi, raw); in mtk_nfc_read_subpage()
1072 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_read_page_raw()
1073 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_read_page_raw()
1350 mtk_nfc_set_bad_mark_ctl(&mtk_nand->bad_mark, mtd); in mtk_nfc_attach_chip()