Lines Matching refs:writesize
325 if (!mtd->writesize) in mtk_nfc_hw_runtime_config()
330 switch (mtd->writesize) { in mtk_nfc_hw_runtime_config()
356 dev_err(nfc->dev, "invalid page len: %d\n", mtd->writesize); in mtk_nfc_hw_runtime_config()
685 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); in mtk_nfc_format_subpage()
715 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); in mtk_nfc_format_page()
855 memcpy(nfc->buffer, buf, mtd->writesize); in mtk_nfc_write_page()
865 len = mtd->writesize + (raw ? mtd->oobsize : 0); in mtk_nfc_write_page()
1050 return mtk_nfc_read_subpage(mtd, chip, 0, mtd->writesize, p, pg, 0); in mtk_nfc_read_page_hwecc()
1062 memset(nfc->buffer, 0xff, mtd->writesize + mtd->oobsize); in mtk_nfc_read_page_raw()
1063 ret = mtk_nfc_read_subpage(mtd, chip, 0, mtd->writesize, nfc->buffer, in mtk_nfc_read_page_raw()
1129 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_free()
1150 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_ecc()
1185 if (mtd->writesize == 512) { in mtk_nfc_set_bad_mark_ctl()
1189 bm_ctl->sec = mtd->writesize / mtk_data_len(nand); in mtk_nfc_set_bad_mark_ctl()
1190 bm_ctl->pos = mtd->writesize % mtk_data_len(nand); in mtk_nfc_set_bad_mark_ctl()
1201 eccsteps = mtd->writesize / nand->ecc.size; in mtk_nfc_set_spare_per_sector()
1252 if (mtd->writesize > 512 && in mtk_nfc_ecc_init()
1325 len = mtd->writesize + mtd->oobsize; in mtk_nfc_attach_chip()