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()
624 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
671 startblock = numblocks * (chip + 1) - 1; in write_bbt()
674 startblock = chip * numblocks; in write_bbt()
679 int block = startblock + dir * i; in write_bbt()