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()
501 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
510 numblocks = targetsize >> this->bbt_erase_shift; in create_bbt()
513 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
532 from += (1 << this->bbt_erase_shift); in create_bbt()
561 int blocktopage = this->bbt_erase_shift - this->page_shift; in search_bbt()
565 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
575 bbtblocks = targetsize >> this->bbt_erase_shift; in search_bbt()
579 bbtblocks = mtd->size >> this->bbt_erase_shift; in search_bbt()
590 loff_t offs = (loff_t)actblock << this->bbt_erase_shift; in search_bbt()
607 startblock += targetsize >> this->bbt_erase_shift; in search_bbt()
667 (this->bbt_erase_shift - this->page_shift); in get_bbt_block()
669 numblocks = (int)(targetsize >> this->bbt_erase_shift); in get_bbt_block()
695 page = block << (this->bbt_erase_shift - this->page_shift); in get_bbt_block()
726 to = (loff_t)block << this->bbt_erase_shift; in mark_bbt_block_bad()
770 numblocks = (int)(targetsize >> this->bbt_erase_shift); in write_bbt()
779 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
798 page = block << (this->bbt_erase_shift - this->page_shift); in write_bbt()
824 to &= ~(((loff_t)1 << this->bbt_erase_shift) - 1); in write_bbt()
825 len = 1 << this->bbt_erase_shift; in write_bbt()
891 einfo.len = 1 << this->bbt_erase_shift; in write_bbt()
1087 len = (1 << this->bbt_erase_shift); in nand_update_bbt()
1140 nrblocks = (int)(targetsize >> this->bbt_erase_shift); in mark_bbt_region()
1143 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
1151 block = td->pages[i] >> (this->bbt_erase_shift - this->page_shift); in mark_bbt_region()
1157 this->bbt_erase_shift); in mark_bbt_region()
1179 this->bbt_erase_shift); in mark_bbt_region()
1222 table_size = targetsize >> this->bbt_erase_shift; in verify_bbt_descr()
1224 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1229 BUG_ON(table_size > (1 << this->bbt_erase_shift)); in verify_bbt_descr()
1252 len = (mtd->size >> (this->bbt_erase_shift + 2)) ? : 1; in nand_scan_bbt()
1276 len = (1 << this->bbt_erase_shift); in nand_scan_bbt()
1438 block = (int)(offs >> this->bbt_erase_shift); in nand_isreserved_bbt()
1452 block = (int)(offs >> this->bbt_erase_shift); in nand_isbad_bbt()
1481 block = (int)(offs >> this->bbt_erase_shift); in nand_markbad_bbt()