Lines Matching refs:startblock
459 int startblock; in create_bbt() local
471 startblock = 0; in create_bbt()
480 startblock = chip * numblocks; in create_bbt()
481 numblocks += startblock; in create_bbt()
482 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
488 for (i = startblock; i < numblocks; i++) { in create_bbt()
528 int startblock, block, dir; in search_bbt() local
535 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
538 startblock = 0; in search_bbt()
546 startblock &= bbtblocks - 1; in search_bbt()
559 int actblock = startblock + dir * block; in search_bbt()
573 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
623 int startblock, dir, page, numblocks, i; in get_bbt_block() local
643 startblock = numblocks * (chip + 1) - 1; in get_bbt_block()
646 startblock = chip * numblocks; in get_bbt_block()
651 int block = startblock + dir * i; in get_bbt_block()