Lines Matching refs:erase_shift
240 blk = addr >> (this->erase_shift - 1); in flexonenand_block()
251 return addr >> this->erase_shift; in onenand_block()
274 ofs += (loff_t) block << (this->erase_shift - 1); in flexonenand_addr()
277 << (this->erase_shift - 1); in flexonenand_addr()
284 return (loff_t) block << this->erase_shift; in onenand_addr()
622 block = (int) (addr >> this->erase_shift) & ~1; in onenand_get_2x_blockpage()
828 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
1758 block_size = 1 << this->erase_shift; in onenand_erase()
2068 end = this->chipsize >> this->erase_shift; in onenand_check_lock_status()
2318 blksperdie = ((loff_t)(16 << density) << 20) >> (this->erase_shift); in flexonenand_get_size()
2321 eraseshift = this->erase_shift - 1; in flexonenand_get_size()
2358 mtd->erasesize = 1 << this->erase_shift; in flexonenand_get_size()
2370 this->diesize[die] = (loff_t) (blksperdie << this->erase_shift); in flexonenand_get_size()
2372 << (this->erase_shift - 1); in flexonenand_get_size()
2452 blksperdie = ((16 << density) << 20) >> this->erase_shift; in flexonenand_set_boundary()
2640 this->erase_shift = ffs(mtd->erasesize) - 1; in onenand_probe()
2642 this->ppb_shift = (this->erase_shift - this->page_shift); in onenand_probe()
2646 this->density_mask = this->chipsize >> (this->erase_shift + 1); in onenand_probe()