Lines Matching refs:this
226 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local
228 int reg = addr - this->base; in s3c_onenand_readw()
276 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local
278 unsigned int reg = addr - this->base; in s3c_onenand_writew()
387 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local
394 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
395 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command()
396 fpa &= this->page_mask; in s3c_onenand_command()
406 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command()
411 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command()
420 m += (this->writesize >> 2); in s3c_onenand_command()
484 struct onenand_chip *this = mtd->priv; in s3c_get_bufferram() local
485 int index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_get_bufferram()
491 p += this->writesize; in s3c_get_bufferram()
626 struct onenand_chip *this = mtd->priv; in s5pc110_read_bufferram() local
633 p = this->base + area; in s5pc110_read_bufferram()
634 if (ONENAND_CURRENT_BUFFERRAM(this)) { in s5pc110_read_bufferram()
636 p += this->writesize; in s5pc110_read_bufferram()
661 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
665 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
686 memcpy(this->page_buf, p, mtd->writesize); in s5pc110_read_bufferram()
687 p = this->page_buf + offset; in s5pc110_read_bufferram()
736 struct onenand_chip *this = mtd->priv; in s3c_onenand_check_lock_status() local
741 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
757 struct onenand_chip *this = mtd->priv; in s3c_onenand_do_lock_cmd() local
760 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
762 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
777 this->wait(mtd, FL_LOCKING); in s3c_onenand_do_lock_cmd()
782 struct onenand_chip *this = mtd->priv; in s3c_unlock_all() local
784 size_t len = this->chipsize; in s3c_unlock_all()
786 if (this->options & ONENAND_HAS_UNLOCK_ALL) { in s3c_unlock_all()
788 this->command(mtd, ONENAND_CMD_UNLOCK_ALL, 0, 0); in s3c_unlock_all()
791 this->wait(mtd, FL_LOCKING); in s3c_unlock_all()
794 if (!ONENAND_IS_DDP(this)) { in s3c_unlock_all()
800 ofs = this->chipsize >> 1; in s3c_unlock_all()
801 len = this->chipsize >> 1; in s3c_unlock_all()
811 struct onenand_chip *this = mtd->priv; in s3c_onenand_setup() local
823 this->read_bufferram = s5pc110_read_bufferram; in s3c_onenand_setup()
824 this->chip_probe = s5pc110_chip_probe; in s3c_onenand_setup()
830 this->read_word = s3c_onenand_readw; in s3c_onenand_setup()
831 this->write_word = s3c_onenand_writew; in s3c_onenand_setup()
833 this->wait = s3c_onenand_wait; in s3c_onenand_setup()
834 this->bbt_wait = s3c_onenand_bbt_wait; in s3c_onenand_setup()
835 this->unlock_all = s3c_unlock_all; in s3c_onenand_setup()
836 this->command = s3c_onenand_command; in s3c_onenand_setup()
838 this->read_bufferram = onenand_read_bufferram; in s3c_onenand_setup()
839 this->write_bufferram = onenand_write_bufferram; in s3c_onenand_setup()
845 struct onenand_chip *this; in s3c_onenand_probe() local
864 this = (struct onenand_chip *) &mtd[1]; in s3c_onenand_probe()
865 mtd->priv = this; in s3c_onenand_probe()
895 this->base = onenand->base; in s3c_onenand_probe()
898 this->options |= ONENAND_SKIP_UNLOCK_CHECK; in s3c_onenand_probe()
939 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
989 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
1065 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_suspend() local
1067 this->wait(mtd, FL_PM_SUSPENDED); in s3c_pm_ops_suspend()
1075 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_resume() local
1077 this->unlock_all(mtd); in s3c_pm_ops_resume()