Lines Matching refs:page_shift
355 page = (int)(ofs >> chip->page_shift) & chip->pagemask; in nand_block_bad()
377 page = (int)(ofs >> chip->page_shift) & chip->pagemask; in nand_block_bad()
1707 realpage = (int)(from >> chip->page_shift); in nand_do_read_ops()
2060 ops->ooboffs + readlen > ((mtd->size >> chip->page_shift) - in nand_do_read_oob()
2061 (from >> chip->page_shift)) * len)) { in nand_do_read_oob()
2071 realpage = (int)(from >> chip->page_shift); in nand_do_read_oob()
2561 realpage = (int)(to >> chip->page_shift); in nand_do_write_ops()
2565 if (to <= ((loff_t)chip->pagebuf << chip->page_shift) && in nand_do_write_ops()
2566 ((loff_t)chip->pagebuf << chip->page_shift) < (to + ops->len)) in nand_do_write_ops()
2739 ((mtd->size >> chip->page_shift) - in nand_do_write_oob()
2740 (to >> chip->page_shift)) * len)) { in nand_do_write_oob()
2759 page = (int)(to >> chip->page_shift); in nand_do_write_oob()
2885 page = (int)(instr->addr >> chip->page_shift); in nand_erase_nand()
2889 pages_per_block = 1 << (chip->phys_erase_shift - chip->page_shift); in nand_erase_nand()
2912 chip->page_shift, allowbbt)) { in nand_erase_nand()
2935 ((loff_t)page << chip->page_shift); in nand_erase_nand()
3877 chip->page_shift = ffs(mtd->writesize) - 1; in nand_get_flash_type()
3879 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in nand_get_flash_type()
3890 if (chip->chip_shift - chip->page_shift > 16) in nand_get_flash_type()
4610 if (chip->page_shift > 9) in nand_scan_tail()