Lines Matching refs:writesize
282 i = (mtd->writesize * 8 - geo->metadata_size * 8) / in bbm_in_data_chunk()
286 j = (mtd->writesize * 8 - geo->metadata_size * 8) - in bbm_in_data_chunk()
346 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size; in set_geometry_by_ecc_info()
396 geo->page_size = mtd->writesize + geo->metadata_size + in set_geometry_by_ecc_info()
399 geo->payload_size = mtd->writesize; in set_geometry_by_ecc_info()
409 block_mark_bit_offset = mtd->writesize * 8 - in set_geometry_by_ecc_info()
480 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size; in set_geometry_for_large_oob()
500 geo->ecc_chunk_count = (mtd->writesize / geo->eccn_chunk_size) + 1; in set_geometry_for_large_oob()
510 bbm_chunk = (mtd->writesize * 8 - geo->metadata_size * 8 - in set_geometry_for_large_oob()
517 geo->page_size = mtd->writesize + geo->metadata_size + in set_geometry_for_large_oob()
519 geo->payload_size = mtd->writesize; in set_geometry_for_large_oob()
535 i = (mtd->writesize / geo->eccn_chunk_size) - bbm_chunk + 1; in set_geometry_for_large_oob()
537 block_mark_bit_offset = mtd->writesize * 8 - in set_geometry_for_large_oob()
604 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size; in legacy_set_geometry()
617 geo->page_size = mtd->writesize + geo->metadata_size + in legacy_set_geometry()
619 geo->payload_size = mtd->writesize; in legacy_set_geometry()
682 block_mark_bit_offset = mtd->writesize * 8 - in legacy_set_geometry()
1100 oobregion->length = geo->page_size - mtd->writesize; in gpmi_ooblayout_ecc()
1116 if (geo->page_size < mtd->writesize + mtd->oobsize) { in gpmi_ooblayout_free()
1117 oobregion->offset = geo->page_size - mtd->writesize; in gpmi_ooblayout_free()
1338 this->data_buffer_dma = kzalloc(mtd->writesize ?: PAGE_SIZE, in gpmi_alloc_dma_buffer()
1348 this->raw_buffer = kzalloc((mtd->writesize ?: PAGE_SIZE) + mtd->oobsize, GFP_KERNEL); in gpmi_alloc_dma_buffer()
1682 memcpy(this->data_buffer_dma, buf, mtd->writesize); in gpmi_ecc_write_page()
1761 ret = nand_read_page_op(chip, page, mtd->writesize, chip->oob_poi, in gpmi_ecc_read_oob()
1794 return nand_prog_page_op(chip, page, mtd->writesize + of.offset, in gpmi_ecc_write_oob()
1827 mtd->writesize + mtd->oobsize); in gpmi_ecc_read_page_raw()
1839 swap(tmp_buf[0], tmp_buf[mtd->writesize]); in gpmi_ecc_read_page_raw()
1876 tmp_buf + mtd->writesize + oob_byte_off, in gpmi_ecc_read_page_raw()
1916 memset(tmp_buf, 0xff, mtd->writesize + mtd->oobsize); in gpmi_ecc_write_page_raw()
1949 memcpy(tmp_buf + mtd->writesize + oob_byte_off, in gpmi_ecc_write_page_raw()
1960 swap(tmp_buf[0], tmp_buf[mtd->writesize]); in gpmi_ecc_write_page_raw()
1963 mtd->writesize + mtd->oobsize); in gpmi_ecc_write_page_raw()
1987 column = !GPMI_IS_MX23(this) ? mtd->writesize : 0; in gpmi_block_markbad()
2102 block_size_in_pages = mtd->erasesize / mtd->writesize; in mx23_write_transcription_stamp()
2129 memset(buffer, ~0, mtd->writesize); in mx23_write_transcription_stamp()
2197 ret = nand_read_page_op(chip, page, mtd->writesize, &block_mark, in mx23_boot_init()