Lines Matching refs:nand_writesize

34 static uint32_t nand_writesize = 2048;  variable
214 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_byte_offset()
215 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) >> 3; in mx28_nand_mark_byte_offset()
221 ecc_strength = mx28_nand_get_ecc_strength(nand_writesize, nand_oobsize); in mx28_nand_mark_bit_offset()
222 return mx28_nand_get_mark_offset(nand_writesize, ecc_strength) & 0x7; in mx28_nand_mark_bit_offset()
245 fcb = malloc(nand_writesize); in mx28_nand_get_fcb()
251 memset(fcb, 0, nand_writesize); in mx28_nand_get_fcb()
265 fcb->page_data_size = nand_writesize; in mx28_nand_get_fcb()
266 fcb->total_page_size = nand_writesize + nand_oobsize; in mx28_nand_get_fcb()
267 fcb->sectors_per_block = nand_erasesize / nand_writesize; in mx28_nand_get_fcb()
269 fcb->num_ecc_blocks_per_page = (nand_writesize / 512) - 1; in mx28_nand_get_fcb()
274 nand_writesize, nand_oobsize) >> 1; in mx28_nand_get_fcb()
276 nand_writesize, nand_oobsize) >> 1; in mx28_nand_get_fcb()
287 fcb->bb_marker_physical_offset = nand_writesize; in mx28_nand_get_fcb()
289 stride_size_bytes = STRIDE_PAGES * nand_writesize; in mx28_nand_get_fcb()
292 bootstream_size_pages = (size + (nand_writesize - 1)) / in mx28_nand_get_fcb()
293 nand_writesize; in mx28_nand_get_fcb()
295 fw1_start_page = 2 * bcb_size_bytes / nand_writesize; in mx28_nand_get_fcb()
297 nand_writesize; in mx28_nand_get_fcb()
317 dbbt = malloc(nand_writesize); in mx28_nand_get_dbbt()
323 memset(dbbt, 0, nand_writesize); in mx28_nand_get_dbbt()
360 block = malloc(nand_writesize + nand_oobsize); in mx28_nand_fcb_block()
366 memset(block, 0, nand_writesize + nand_oobsize); in mx28_nand_fcb_block()
396 offset = i * nand_writesize; in mx28_nand_write_fcb()
397 memcpy(buf + offset, fcbblock, nand_writesize + nand_oobsize); in mx28_nand_write_fcb()
399 buf[offset + nand_writesize] = 0xff; in mx28_nand_write_fcb()
412 offset = i * nand_writesize; in mx28_nand_write_dbbt()
429 offset1 = fcb->firmware1_starting_sector * nand_writesize; in mx28_nand_write_firmware()
430 offset2 = fcb->firmware2_starting_sector * nand_writesize; in mx28_nand_write_firmware()
473 size = nand_writesize * 512 + 2 * MAX_BOOTSTREAM_SIZE; in mx28_create_nand_image()
619 nand_writesize = tmp; in parse_ops()