Lines Matching refs:bbt_erase_shift
183 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt()
219 this->bbt_erase_shift); in read_bbt()
231 this->bbt_erase_shift); in read_bbt()
271 targetsize >> this->bbt_erase_shift, in read_abs_bbt()
275 offs += targetsize >> this->bbt_erase_shift; in read_abs_bbt()
279 mtd->size >> this->bbt_erase_shift, td, 0); in read_abs_bbt()
472 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
481 numblocks = targetsize >> this->bbt_erase_shift; in create_bbt()
484 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
503 from += (1 << this->bbt_erase_shift); in create_bbt()
532 int blocktopage = this->bbt_erase_shift - this->page_shift; in search_bbt()
536 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
546 bbtblocks = targetsize >> this->bbt_erase_shift; in search_bbt()
550 bbtblocks = mtd->size >> this->bbt_erase_shift; in search_bbt()
561 loff_t offs = (loff_t)actblock << this->bbt_erase_shift; in search_bbt()
574 startblock += targetsize >> this->bbt_erase_shift; in search_bbt()
634 (this->bbt_erase_shift - this->page_shift); in get_bbt_block()
636 numblocks = (int)(targetsize >> this->bbt_erase_shift); in get_bbt_block()
662 page = block << (this->bbt_erase_shift - this->page_shift); in get_bbt_block()
693 to = (loff_t)block << this->bbt_erase_shift; in mark_bbt_block_bad()
737 numblocks = (int)(targetsize >> this->bbt_erase_shift); in write_bbt()
746 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
765 page = block << (this->bbt_erase_shift - this->page_shift); in write_bbt()
791 to &= ~(((loff_t)1 << this->bbt_erase_shift) - 1); in write_bbt()
792 len = 1 << this->bbt_erase_shift; in write_bbt()
858 einfo.len = 1 << this->bbt_erase_shift; in write_bbt()
1054 len = (1 << this->bbt_erase_shift); in nand_update_bbt()
1107 nrblocks = (int)(targetsize >> this->bbt_erase_shift); in mark_bbt_region()
1110 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
1118 block = td->pages[i] >> (this->bbt_erase_shift - this->page_shift); in mark_bbt_region()
1124 this->bbt_erase_shift); in mark_bbt_region()
1146 this->bbt_erase_shift); in mark_bbt_region()
1189 table_size = targetsize >> this->bbt_erase_shift; in verify_bbt_descr()
1191 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1196 BUG_ON(table_size > (1 << this->bbt_erase_shift)); in verify_bbt_descr()
1219 len = (mtd->size >> (this->bbt_erase_shift + 2)) ? : 1; in nand_scan_bbt()
1243 len = (1 << this->bbt_erase_shift); in nand_scan_bbt()
1405 block = (int)(offs >> this->bbt_erase_shift); in nand_isreserved_bbt()
1419 block = (int)(offs >> this->bbt_erase_shift); in nand_isbad_bbt()
1445 block = (int)(offs >> this->bbt_erase_shift); in nand_markbad_bbt()