Lines Matching refs:writesize

172 #define CONV_TO_PAGES(x)	((u32)(x) / (u32)(mtd->writesize))
253 g_pages_per_stride = mtd->erasesize / mtd->writesize; in nandbcb_set_boot_config()
255 g_boot_search_stride = mtd->writesize * g_pages_per_stride; in nandbcb_set_boot_config()
257 boot_cfg->stride_size_in_byte = g_boot_search_stride * mtd->writesize; in nandbcb_set_boot_config()
261 boot_cfg->search_area_size_in_bytes / mtd->writesize; in nandbcb_set_boot_config()
270 maxsize = ((u32)(maxsize + mtd->writesize - 1)) / (u32)mtd->writesize in nandbcb_set_boot_config()
271 * mtd->writesize; in nandbcb_set_boot_config()
443 fcb->pagesize = mtd->writesize; in fill_fcb()
444 fcb->oob_pagesize = mtd->writesize + mtd->oobsize; in fill_fcb()
445 fcb->sectors = mtd->erasesize / mtd->writesize; in fill_fcb()
461 fcb->phy_offset = mtd->writesize; in fill_fcb()
512 fcb_raw_page = kzalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in read_fcb()
542 .oobbuf = ((u8 *)fcb_raw_page) + mtd->writesize, in read_fcb()
543 .len = mtd->writesize, in read_fcb()
584 fcb_raw_page = kzalloc(mtd->writesize + mtd->oobsize, in write_fcb()
609 memset(fcb_raw_page + mtd->writesize, 0xFF, 2); in write_fcb()
645 mtd->writesize, in write_fcb()
646 .len = mtd->writesize, in write_fcb()
698 to = off + 4 * mtd->writesize; in read_dbbt()
699 size = mtd->writesize; in read_dbbt()
724 size = mtd->writesize; in write_dbbt()
741 to = off + 4 * mtd->writesize; in write_dbbt()
836 length = ALIGN(size + FLASH_OFFSET_STANDARD, mtd->writesize); in nandbcb_write_bs_skip_bad()
838 length = ALIGN(size, mtd->writesize); in nandbcb_write_bs_skip_bad()
1019 dbbt_page = kzalloc(mtd->writesize, GFP_KERNEL); in nandbcb_init()
1026 dbbt_data_page = kzalloc(mtd->writesize, GFP_KERNEL); in nandbcb_init()
1088 cfg.boot_stream1_size = ALIGN(cfg.boot_stream1_size, mtd->writesize); in do_nandbcb_bcbonly()
1094 mtd->writesize); in do_nandbcb_bcbonly()
1127 dbbt_page = kzalloc(mtd->writesize, GFP_KERNEL); in do_nandbcb_bcbonly()
1134 dbbt_data_page = kzalloc(mtd->writesize, GFP_KERNEL); in do_nandbcb_bcbonly()
1252 fcb->fw1_start, fcb->fw1_pages * mtd->writesize); in dump_structure()
1254 fcb->fw2_start, fcb->fw2_pages * mtd->writesize); in dump_structure()
1257 fcb->fw1_start, fcb->fw1_pages * mtd->writesize); in dump_structure()
1259 fcb->fw2_start, fcb->fw2_pages * mtd->writesize); in dump_structure()
1311 dbbt_data_page = kzalloc(mtd->writesize, GFP_KERNEL); in nandbcb_dump()
1318 dbbt_data_page_copy = kzalloc(mtd->writesize, GFP_KERNEL); in nandbcb_dump()
1384 mtd->writesize)) { in nandbcb_dump()