Lines Matching refs:startblock
462 int startblock; in create_bbt() local
474 startblock = 0; in create_bbt()
483 startblock = chip * numblocks; in create_bbt()
484 numblocks += startblock; in create_bbt()
485 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
491 for (i = startblock; i < numblocks; i++) { in create_bbt()
531 int startblock, block, dir; in search_bbt() local
538 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
541 startblock = 0; in search_bbt()
549 startblock &= bbtblocks - 1; in search_bbt()
562 int actblock = startblock + dir * block; in search_bbt()
576 startblock += this->chipsize >> this->bbt_erase_shift; in search_bbt()
627 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
674 startblock = numblocks * (chip + 1) - 1; in write_bbt()
677 startblock = chip * numblocks; in write_bbt()
682 int block = startblock + dir * i; in write_bbt()