Lines Matching refs:bad_mark
128 struct mtk_nfc_bad_mark_ctl bad_mark; member
197 if (i < mtk_nand->bad_mark.sec) in oob_ptr()
199 else if (i == mtk_nand->bad_mark.sec) in oob_ptr()
662 u32 bad_pos = nand->bad_mark.pos; in mtk_nfc_bad_mark_swap()
665 bad_pos += nand->bad_mark.sec * mtk_data_len(chip); in mtk_nfc_bad_mark_swap()
667 bad_pos += nand->bad_mark.sec * chip->ecc.size; in mtk_nfc_bad_mark_swap()
693 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_format_subpage()
694 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_format_subpage()
721 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_format_page()
722 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_format_page()
856 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, raw); in mtk_nfc_write_page()
1030 if (clamp(mtk_nand->bad_mark.sec, start, end) == mtk_nand->bad_mark.sec) in mtk_nfc_read_subpage()
1031 mtk_nand->bad_mark.bm_swap(mtd, bufpoi, raw); in mtk_nfc_read_subpage()
1071 if (i == mtk_nand->bad_mark.sec) in mtk_nfc_read_page_raw()
1072 mtk_nand->bad_mark.bm_swap(mtd, nfc->buffer, 1); in mtk_nfc_read_page_raw()
1323 mtk_nfc_set_bad_mark_ctl(&mtk_nand->bad_mark, mtd); in mtk_nfc_attach_chip()