Lines Matching refs:writesize
411 .len = mtd->writesize, in rnandc_read_page_hw_ecc()
412 .ecc_offset = ECC_OFFSET(mtd->writesize + 2), in rnandc_read_page_hw_ecc()
427 dma_addr = dma_map_single(rnandc->dev, rnandc->buf, mtd->writesize, in rnandc_read_page_hw_ecc()
430 writel(mtd->writesize, rnandc->regs + DMA_CNT_REG); in rnandc_read_page_hw_ecc()
437 dma_unmap_single(rnandc->dev, dma_addr, mtd->writesize, DMA_FROM_DEVICE); in rnandc_read_page_hw_ecc()
447 ret = nand_change_read_column_op(chip, mtd->writesize, in rnandc_read_page_hw_ecc()
482 memcpy(buf, rnandc->buf, mtd->writesize); in rnandc_read_page_hw_ecc()
507 .ecc_offset = ECC_OFFSET(mtd->writesize + ecc_off), in rnandc_read_subpage_hw_ecc()
543 ret = nand_change_read_column_op(chip, mtd->writesize, in rnandc_read_subpage_hw_ecc()
591 .len = mtd->writesize, in rnandc_write_page_hw_ecc()
592 .ecc_offset = ECC_OFFSET(mtd->writesize + 2), in rnandc_write_page_hw_ecc()
597 memcpy(rnandc->buf, buf, mtd->writesize); in rnandc_write_page_hw_ecc()
607 dma_addr = dma_map_single(rnandc->dev, (void *)rnandc->buf, mtd->writesize, in rnandc_write_page_hw_ecc()
610 writel(mtd->writesize, rnandc->regs + DMA_CNT_REG); in rnandc_write_page_hw_ecc()
617 dma_unmap_single(rnandc->dev, dma_addr, mtd->writesize, DMA_TO_DEVICE); in rnandc_write_page_hw_ecc()
627 return nand_change_write_column_op(chip, mtd->writesize, chip->oob_poi, in rnandc_write_page_hw_ecc()
649 .ecc_offset = ECC_OFFSET(mtd->writesize + ecc_off), in rnandc_write_subpage_hw_ecc()
1013 if (mtd->writesize > SZ_16K) { in rnandc_hw_ecc_controller_init()
1066 chip->ecc.steps = mtd->writesize / chip->ecc.size; in rnandc_hw_ecc_controller_init()
1123 if (mtd->writesize <= 512) { in rnandc_attach_chip()
1171 unsigned int max_len = new_mtd->writesize + new_mtd->oobsize; in rnandc_alloc_dma_buf()
1179 max_len = max(max_len, mtd->writesize + mtd->oobsize); in rnandc_alloc_dma_buf()