Lines Matching refs:startblock
466 int i, numblocks, startblock;
473 startblock = 0;
482 startblock = chip * numblocks;
483 numblocks += startblock;
484 from = (loff_t)startblock << this->bbt_erase_shift;
487 for (i = startblock; i < numblocks; i++) {
529 int startblock, block, dir;
536 startblock = (mtd->size >> this->bbt_erase_shift) - 1;
539 startblock = 0;
547 startblock &= bbtblocks - 1;
560 int actblock = startblock + dir * block;
574 startblock += targetsize >> this->bbt_erase_shift;
625 int startblock, dir, page, numblocks, i;
645 startblock = numblocks * (chip + 1) - 1;
648 startblock = chip * numblocks;
653 int block = startblock + dir * i;