Lines Matching refs:erase_shift
65 int blocks = (int) len >> this->erase_shift; in onenand_block_read()
66 int blocksize = (1 << this->erase_shift); in onenand_block_read()
82 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_read()
136 int blocks = len >> this->erase_shift; in onenand_block_write()
137 int blocksize = (1 << this->erase_shift); in onenand_block_write()
161 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_write()
194 int blocksize = 1 << this->erase_shift; in onenand_block_erase()
200 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
211 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_erase()
229 int blocksize = 1 << this->erase_shift; in onenand_block_test()
248 start_block = start >> this->erase_shift; in onenand_block_test()
249 end_block = (start + size) >> this->erase_shift; in onenand_block_test()
255 if (end_block > (mtd->size >> this->erase_shift)) in onenand_block_test()
256 end_block = mtd->size >> this->erase_shift; in onenand_block_test()
261 printf("\rTesting block %d at 0x%x", (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_test()
266 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_test()