Lines Matching refs:steps
529 for (i = 0; i < ecc->steps; i++) { in rk_nfc_write_page_raw()
571 rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), in rk_nfc_write_page_raw()
643 for (i = 0; i < ecc->steps; i++) { in rk_nfc_write_page_hwecc()
645 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc()
660 ecc->steps * oob_step, in rk_nfc_write_page_hwecc()
666 rk_nfc_xfer_start(nfc, NFC_WRITE, ecc->steps, dma_data, in rk_nfc_write_page_hwecc()
681 dma_unmap_single(nfc->dev, dma_oob, ecc->steps * oob_step, in rk_nfc_write_page_hwecc()
722 for (i = 0; i < ecc->steps; i++) { in rk_nfc_read_page_raw()
731 memcpy(rk_nfc_buf_to_oob_ptr(chip, ecc->steps - 1), in rk_nfc_read_page_raw()
776 ecc->steps * oob_step, in rk_nfc_read_page_hwecc()
793 rk_nfc_xfer_start(nfc, NFC_READ, ecc->steps, dma_data, in rk_nfc_read_page_hwecc()
808 dma_unmap_single(nfc->dev, dma_oob, ecc->steps * oob_step, in rk_nfc_read_page_hwecc()
817 for (i = 0; i < ecc->steps; i++) { in rk_nfc_read_page_hwecc()
819 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc()
834 for (i = 0; i < (ecc->steps / 2); i++) { in rk_nfc_read_page_hwecc()
984 ecc->steps = mtd->writesize / ecc->size; in rk_nfc_ecc_init()
990 max_strength = ((mtd->oobsize / ecc->steps) - 4) * 8 / in rk_nfc_ecc_init()
1007 ecc->steps = mtd->writesize / ecc->size; in rk_nfc_ecc_init()
1036 rknand->metadata_size = NFC_SYS_DATA_SIZE * ecc->steps; in rk_nfc_attach_chip()
1056 new_oob_len = ecc->steps * NFC_MAX_OOB_PER_STEP; in rk_nfc_attach_chip()