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()
2136 unsigned int block_size = (1 << this->erase_shift); in onenand_multiblock_erase_verify()
2176 bdry_block = bdry_addr >> this->erase_shift; in onenand_multiblock_erase()
2205 int this_block = (addr >> this->erase_shift); in onenand_multiblock_erase()
2369 block_size = 1 << this->erase_shift; in onenand_erase()
2623 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2709 block = (int) (addr >> this->erase_shift); in onenand_otp_command()
2714 block = (int) (addr >> this->erase_shift); in onenand_otp_command()
2804 block = (int) (to >> this->erase_shift); in onenand_otp_write_oob_nolock()
3443 blksperdie = ((loff_t)(16 << density) << 20) >> (this->erase_shift); in flexonenand_get_size()
3446 eraseshift = this->erase_shift - 1; in flexonenand_get_size()
3482 mtd->erasesize = 1 << this->erase_shift; in flexonenand_get_size()
3495 this->diesize[die] = (loff_t)blksperdie << this->erase_shift; in flexonenand_get_size()
3497 << (this->erase_shift - 1); in flexonenand_get_size()
3578 blksperdie = ((16 << density) << 20) >> this->erase_shift; in flexonenand_set_boundary()
3761 this->erase_shift = ffs(mtd->erasesize) - 1; in onenand_probe()
3763 this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1; in onenand_probe()
3766 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe()