Lines Matching refs:bbt_erase_shift
188 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt()
224 this->bbt_erase_shift); in read_bbt()
236 this->bbt_erase_shift); in read_bbt()
274 this->chipsize >> this->bbt_erase_shift, in read_abs_bbt()
278 offs += this->chipsize >> this->bbt_erase_shift; in read_abs_bbt()
282 mtd->size >> this->bbt_erase_shift, td, 0); in read_abs_bbt()
470 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
479 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
482 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
504 from += (1 << this->bbt_erase_shift); in create_bbt()
531 int blocktopage = this->bbt_erase_shift - this->page_shift; in search_bbt()
535 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
545 bbtblocks = this->chipsize >> this->bbt_erase_shift; in search_bbt()
549 bbtblocks = mtd->size >> this->bbt_erase_shift; in search_bbt()
560 loff_t offs = (loff_t)actblock << this->bbt_erase_shift; in search_bbt()
573 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
641 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
650 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
687 (this->bbt_erase_shift - this->page_shift); in write_bbt()
720 to &= ~(((loff_t)1 << this->bbt_erase_shift) - 1); in write_bbt()
721 len = 1 << this->bbt_erase_shift; in write_bbt()
788 einfo.len = 1 << this->bbt_erase_shift; in write_bbt()
972 nrblocks = (int)(this->chipsize >> this->bbt_erase_shift); in mark_bbt_region()
975 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
983 block = td->pages[i] >> (this->bbt_erase_shift - this->page_shift); in mark_bbt_region()
989 this->bbt_erase_shift); in mark_bbt_region()
1011 this->bbt_erase_shift); in mark_bbt_region()
1053 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
1055 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1060 BUG_ON(table_size > (1 << this->bbt_erase_shift)); in verify_bbt_descr()
1083 len = (mtd->size >> (this->bbt_erase_shift + 2)) ? : 1; in nand_scan_bbt()
1107 len = (1 << this->bbt_erase_shift); in nand_scan_bbt()
1161 len = (1 << this->bbt_erase_shift); in nand_update_bbt()
1323 block = (int)(offs >> this->bbt_erase_shift); in nand_isreserved_bbt()
1338 block = (int)(offs >> this->bbt_erase_shift); in nand_isbad_bbt()
1365 block = (int)(offs >> this->bbt_erase_shift); in nand_markbad_bbt()