Lines Matching refs:writesize

130 	i = (mtd->writesize * 8 - MXS_NAND_METADATA_SIZE * 8) /  in mxs_nand_bbm_in_data_chunk()
134 j = (mtd->writesize * 8 - MXS_NAND_METADATA_SIZE * 8) - in mxs_nand_bbm_in_data_chunk()
179 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size; in mxs_nand_calc_ecc_layout_by_info()
182 block_mark_bit_offset = mtd->writesize * 8 - in mxs_nand_calc_ecc_layout_by_info()
212 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size; in mxs_nand_legacy_calc_ecc_layout()
228 block_mark_bit_offset = mtd->writesize * 8 - in mxs_nand_legacy_calc_ecc_layout()
257 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size; in mxs_nand_calc_ecc_for_large_oob()
279 geo->ecc_chunk_count = (mtd->writesize / geo->ecc_chunkn_size) + 1; in mxs_nand_calc_ecc_for_large_oob()
290 bbm_chunk = (mtd->writesize * 8 - MXS_NAND_METADATA_SIZE * 8 - in mxs_nand_calc_ecc_for_large_oob()
297 i = (mtd->writesize / geo->ecc_chunkn_size) - bbm_chunk + 1; in mxs_nand_calc_ecc_for_large_oob()
299 block_mark_bit_offset = mtd->writesize * 8 - in mxs_nand_calc_ecc_for_large_oob()
642 nand->read_buf(mtd, buf, mtd->writesize); in mxs_nand_erased_page()
644 for (i = 0; i < mtd->writesize / 4; i++) { in mxs_nand_erased_page()
652 memset(buf, 0xff, mtd->writesize); in mxs_nand_erased_page()
706 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page()
712 d->cmd.pio_words[3] = mtd->writesize + mtd->oobsize; in mxs_nand_ecc_read_page()
738 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page()
821 memcpy(buf, nand_info->data_buf, mtd->writesize); in mxs_nand_ecc_read_page()
824 memset(buf, 0xff, mtd->writesize); in mxs_nand_ecc_read_page()
844 memcpy(nand_info->data_buf, buf, mtd->writesize); in mxs_nand_ecc_write_page()
869 d->cmd.pio_words[3] = (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_write_page()
1039 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob()
1048 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob()
1080 nand->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in mxs_nand_ecc_write_oob()
1156 nand_info->writesize = mtd->writesize; in mxs_nand_setup_ecc()
1175 tmp = (mtd->writesize + mtd->oobsize) in mxs_nand_setup_ecc()
1504 mtd->writesize = 1024; in mxs_nand_mode_fcb_62bit()
1541 mtd->writesize = 1024; in mxs_nand_mode_fcb_40bit()
1576 mtd->writesize = nand_info->writesize; in mxs_nand_mode_normal()