Lines Matching refs:writesize
676 int writesize = mtd->writesize; in denali_oob_xfer() local
683 size_t size = writesize + oobsize; in denali_oob_xfer()
687 chip->cmdfunc(mtd, start_cmd, writesize, page); in denali_oob_xfer()
699 if (pos >= writesize) in denali_oob_xfer()
701 else if (pos + len > writesize) in denali_oob_xfer()
702 len = writesize - pos; in denali_oob_xfer()
712 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1); in denali_oob_xfer()
734 int writesize = mtd->writesize; in denali_read_page_raw() local
741 size_t size = writesize + oobsize; in denali_read_page_raw()
754 if (pos >= writesize) in denali_read_page_raw()
756 else if (pos + len > writesize) in denali_read_page_raw()
757 len = writesize - pos; in denali_read_page_raw()
763 memcpy(buf, dma_buf + writesize + oob_skip, in denali_read_page_raw()
774 memcpy(oob, dma_buf + writesize, oob_skip); in denali_read_page_raw()
782 if (pos >= writesize) in denali_read_page_raw()
784 else if (pos + len > writesize) in denali_read_page_raw()
785 len = writesize - pos; in denali_read_page_raw()
791 memcpy(oob, dma_buf + writesize + oob_skip, in denali_read_page_raw()
837 ret = denali_data_xfer(denali, buf, mtd->writesize, page, 0, 0); in denali_read_page()
865 int writesize = mtd->writesize; in denali_write_page_raw() local
872 size_t size = writesize + oobsize; in denali_write_page_raw()
888 if (pos >= writesize) in denali_write_page_raw()
890 else if (pos + len > writesize) in denali_write_page_raw()
891 len = writesize - pos; in denali_write_page_raw()
897 memcpy(dma_buf + writesize + oob_skip, buf, in denali_write_page_raw()
908 memcpy(dma_buf + writesize, oob, oob_skip); in denali_write_page_raw()
916 if (pos >= writesize) in denali_write_page_raw()
918 else if (pos + len > writesize) in denali_write_page_raw()
919 len = writesize - pos; in denali_write_page_raw()
925 memcpy(dma_buf + writesize + oob_skip, oob, in denali_write_page_raw()
944 return denali_data_xfer(denali, (void *)buf, mtd->writesize, in denali_write_page()
1265 mtd->writesize <<= 1; in denali_multidev_fixup()
1378 iowrite32(mtd->erasesize / mtd->writesize, in denali_init()
1382 iowrite32(mtd->writesize, denali->reg + DEVICE_MAIN_AREA_SIZE); in denali_init()
1388 iowrite32(mtd->writesize / chip->ecc.size, in denali_init()
1418 denali->buf = kmalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in denali_init()