Lines Matching refs:numblocks
458 int i, numblocks, numpages; in create_bbt() local
470 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
479 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
480 startblock = chip * numblocks; in create_bbt()
481 numblocks += startblock; in create_bbt()
488 for (i = startblock; i < numblocks; i++) { in create_bbt()
624 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
641 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
650 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
671 startblock = numblocks * (chip + 1) - 1; in write_bbt()
674 startblock = chip * numblocks; in write_bbt()
741 memset(&buf[offs], 0xff, (size_t)(numblocks >> sft)); in write_bbt()
751 len = (size_t)(numblocks >> sft); in write_bbt()
761 len = (size_t)(numblocks >> sft); in write_bbt()
777 for (i = 0; i < numblocks; i++) { in write_bbt()
780 dat = bbt_get_entry(this, chip * numblocks + i); in write_bbt()