Lines Matching refs:erase_shift

312 	blk = addr >> (this->erase_shift - 1);  in flexonenand_block()
323 return addr >> this->erase_shift; in onenand_block()
346 ofs += (loff_t)block << (this->erase_shift - 1); in flexonenand_addr()
348 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
355 return (loff_t)block << this->erase_shift; in onenand_addr()
879 block = (int) (addr >> this->erase_shift) & ~1; in onenand_get_2x_blockpage()
1090 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
2124 unsigned int block_size = (1 << this->erase_shift); in onenand_multiblock_erase_verify()
2164 bdry_block = bdry_addr >> this->erase_shift; in onenand_multiblock_erase()
2193 int this_block = (addr >> this->erase_shift); in onenand_multiblock_erase()
2357 block_size = 1 << this->erase_shift; in onenand_erase()
2611 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2697 block = (int) (addr >> this->erase_shift); in onenand_otp_command()
2702 block = (int) (addr >> this->erase_shift); in onenand_otp_command()
2792 block = (int) (to >> this->erase_shift); in onenand_otp_write_oob_nolock()
3431 blksperdie = ((loff_t)(16 << density) << 20) >> (this->erase_shift); in flexonenand_get_size()
3434 eraseshift = this->erase_shift - 1; in flexonenand_get_size()
3470 mtd->erasesize = 1 << this->erase_shift; in flexonenand_get_size()
3483 this->diesize[die] = (loff_t)blksperdie << this->erase_shift; in flexonenand_get_size()
3485 << (this->erase_shift - 1); in flexonenand_get_size()
3566 blksperdie = ((16 << density) << 20) >> this->erase_shift; in flexonenand_set_boundary()
3749 this->erase_shift = ffs(mtd->erasesize) - 1; in onenand_probe()
3751 this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1; in onenand_probe()
3754 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe()