Lines Matching refs:sectors
622 u32 sectors) in mtk_nfc_read_fdm() argument
631 for (i = 0; i < sectors; i++) { in mtk_nfc_read_fdm()
813 static int mtk_nfc_update_ecc_stats(struct mtd_info *mtd, u8 *buf, u32 sectors) in mtk_nfc_update_ecc_stats() argument
823 memset(buf, 0xff, sectors * chip->ecc.size); in mtk_nfc_update_ecc_stats()
824 for (i = 0; i < sectors; i++) in mtk_nfc_update_ecc_stats()
829 mtk_ecc_get_stats(nfc->ecc, &stats, sectors); in mtk_nfc_update_ecc_stats()
843 u32 column, sectors, start, end, reg; in mtk_nfc_read_subpage() local
853 sectors = end - start; in mtk_nfc_read_subpage()
856 len = sectors * chip->ecc.size + (raw ? sectors * spare : 0); in mtk_nfc_read_subpage()
877 nfc->ecc_cfg.sectors = sectors; in mtk_nfc_read_subpage()
894 nfi_writel(nfc, sectors << CON_SEC_SHIFT, NFI_CON); in mtk_nfc_read_subpage()
908 ADDRCNTR_SEC(reg) >= sectors, 10, in mtk_nfc_read_subpage()
918 mtk_nfc_update_ecc_stats(mtd, buf, sectors); in mtk_nfc_read_subpage()
919 mtk_nfc_read_fdm(chip, start, sectors); in mtk_nfc_read_subpage()