Lines Matching refs:numblocks
461 int i, numblocks, numpages; in create_bbt() local
473 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
482 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
483 startblock = chip * numblocks; in create_bbt()
484 numblocks += startblock; in create_bbt()
491 for (i = startblock; i < numblocks; i++) { in create_bbt()
627 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
644 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
653 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
674 startblock = numblocks * (chip + 1) - 1; in write_bbt()
677 startblock = chip * numblocks; in write_bbt()
744 memset(&buf[offs], 0xff, (size_t)(numblocks >> sft)); in write_bbt()
754 len = (size_t)(numblocks >> sft); in write_bbt()
764 len = (size_t)(numblocks >> sft); in write_bbt()
780 for (i = 0; i < numblocks; i++) { in write_bbt()
783 dat = bbt_get_entry(this, chip * numblocks + i); in write_bbt()