RTL_ECC_BLOCK_SIZE
regmap_write(rtlc->regmap, RTL_ECC_DMA_TAG, rtlc->buf_dma + RTL_ECC_BLOCK_SIZE);
char *buf_parity = rtlc->buf + RTL_ECC_BLOCK_SIZE + RTL_ECC_FREE_SIZE;
char *buf_free = rtlc->buf + RTL_ECC_BLOCK_SIZE;
memcpy(buf_data, data, RTL_ECC_BLOCK_SIZE);
memcpy(data, buf_data, RTL_ECC_BLOCK_SIZE);
data += RTL_ECC_BLOCK_SIZE;
ret = nand_check_erased_ecc_chunk(data, RTL_ECC_BLOCK_SIZE,
data += RTL_ECC_BLOCK_SIZE;
nand->ecc.user_conf.step_size != RTL_ECC_BLOCK_SIZE) {
RTL_ECC_ALLOWED_STRENGTH, RTL_ECC_BLOCK_SIZE);
conf->step_size = RTL_ECC_BLOCK_SIZE;
ctx->steps = mtd->writesize / RTL_ECC_BLOCK_SIZE;
#define RTL_ECC_DMA_SIZE (RTL_ECC_BLOCK_SIZE + RTL_ECC_DMA_FREE_PARITY_SIZE)