Lines Matching refs:writesize

616 	int writesize = mtd->writesize;  in denali_oob_xfer()  local
623 size_t size = writesize + oobsize; in denali_oob_xfer()
627 chip->cmdfunc(mtd, start_cmd, writesize, page); in denali_oob_xfer()
639 if (pos >= writesize) in denali_oob_xfer()
641 else if (pos + len > writesize) in denali_oob_xfer()
642 len = writesize - pos; in denali_oob_xfer()
652 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1); in denali_oob_xfer()
674 int writesize = mtd->writesize; in denali_read_page_raw() local
681 size_t size = writesize + oobsize; in denali_read_page_raw()
694 if (pos >= writesize) in denali_read_page_raw()
696 else if (pos + len > writesize) in denali_read_page_raw()
697 len = writesize - pos; in denali_read_page_raw()
703 memcpy(buf, tmp_buf + writesize + oob_skip, in denali_read_page_raw()
714 memcpy(oob, tmp_buf + writesize, oob_skip); in denali_read_page_raw()
722 if (pos >= writesize) in denali_read_page_raw()
724 else if (pos + len > writesize) in denali_read_page_raw()
725 len = writesize - pos; in denali_read_page_raw()
731 memcpy(oob, tmp_buf + writesize + oob_skip, in denali_read_page_raw()
777 ret = denali_data_xfer(denali, buf, mtd->writesize, page, 0, 0); in denali_read_page()
805 int writesize = mtd->writesize; in denali_write_page_raw() local
812 size_t size = writesize + oobsize; in denali_write_page_raw()
828 if (pos >= writesize) in denali_write_page_raw()
830 else if (pos + len > writesize) in denali_write_page_raw()
831 len = writesize - pos; in denali_write_page_raw()
837 memcpy(tmp_buf + writesize + oob_skip, buf, in denali_write_page_raw()
848 memcpy(tmp_buf + writesize, oob, oob_skip); in denali_write_page_raw()
856 if (pos >= writesize) in denali_write_page_raw()
858 else if (pos + len > writesize) in denali_write_page_raw()
859 len = writesize - pos; in denali_write_page_raw()
865 memcpy(tmp_buf + writesize + oob_skip, oob, in denali_write_page_raw()
884 return denali_data_xfer(denali, (void *)buf, mtd->writesize, in denali_write_page()
1207 mtd->writesize <<= 1; in denali_multidev_fixup()
1312 iowrite32(mtd->erasesize / mtd->writesize, in denali_init()
1318 iowrite32(mtd->writesize, denali->reg + DEVICE_MAIN_AREA_SIZE); in denali_init()
1324 iowrite32(mtd->writesize / chip->ecc.size, in denali_init()
1357 denali->buf = kmalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in denali_init()