Lines Matching refs:startblock
457 int startblock; in create_bbt() local
469 startblock = 0; in create_bbt()
478 startblock = chip * numblocks; in create_bbt()
479 numblocks += startblock; in create_bbt()
480 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
486 for (i = startblock; i < numblocks; i++) { in create_bbt()
526 int startblock, block, dir; in search_bbt() local
533 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
536 startblock = 0; in search_bbt()
544 startblock &= bbtblocks - 1; in search_bbt()
557 int actblock = startblock + dir * block; in search_bbt()
571 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
622 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
669 startblock = numblocks * (chip + 1) - 1; in write_bbt()
672 startblock = chip * numblocks; in write_bbt()
677 int block = startblock + dir * i; in write_bbt()