Lines Matching refs:this
218 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local
220 int reg = addr - this->base; in s3c_onenand_readw()
268 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local
270 unsigned int reg = addr - this->base; in s3c_onenand_writew()
379 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local
386 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
387 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command()
388 fpa &= this->page_mask; in s3c_onenand_command()
398 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command()
404 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command()
413 m += (this->writesize >> 2); in s3c_onenand_command()
477 struct onenand_chip *this = mtd->priv; in s3c_get_bufferram() local
478 int index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_get_bufferram()
484 p += this->writesize; in s3c_get_bufferram()
619 struct onenand_chip *this = mtd->priv; in s5pc110_read_bufferram() local
626 p = this->base + area; in s5pc110_read_bufferram()
627 if (ONENAND_CURRENT_BUFFERRAM(this)) { in s5pc110_read_bufferram()
629 p += this->writesize; in s5pc110_read_bufferram()
654 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
658 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
679 memcpy_fromio(this->page_buf, p, mtd->writesize); in s5pc110_read_bufferram()
680 memcpy(buffer, this->page_buf + offset, count); in s5pc110_read_bufferram()
729 struct onenand_chip *this = mtd->priv; in s3c_onenand_check_lock_status() local
733 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
749 struct onenand_chip *this = mtd->priv; in s3c_onenand_do_lock_cmd() local
752 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
754 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
769 this->wait(mtd, FL_LOCKING); in s3c_onenand_do_lock_cmd()
774 struct onenand_chip *this = mtd->priv; in s3c_unlock_all() local
776 size_t len = this->chipsize; in s3c_unlock_all()
778 if (this->options & ONENAND_HAS_UNLOCK_ALL) { in s3c_unlock_all()
780 this->command(mtd, ONENAND_CMD_UNLOCK_ALL, 0, 0); in s3c_unlock_all()
783 this->wait(mtd, FL_LOCKING); in s3c_unlock_all()
786 if (!ONENAND_IS_DDP(this)) { in s3c_unlock_all()
792 ofs = this->chipsize >> 1; in s3c_unlock_all()
793 len = this->chipsize >> 1; in s3c_unlock_all()
803 struct onenand_chip *this = mtd->priv; in s3c_onenand_setup() local
815 this->read_bufferram = s5pc110_read_bufferram; in s3c_onenand_setup()
816 this->chip_probe = s5pc110_chip_probe; in s3c_onenand_setup()
822 this->read_word = s3c_onenand_readw; in s3c_onenand_setup()
823 this->write_word = s3c_onenand_writew; in s3c_onenand_setup()
825 this->wait = s3c_onenand_wait; in s3c_onenand_setup()
826 this->bbt_wait = s3c_onenand_bbt_wait; in s3c_onenand_setup()
827 this->unlock_all = s3c_unlock_all; in s3c_onenand_setup()
828 this->command = s3c_onenand_command; in s3c_onenand_setup()
830 this->read_bufferram = onenand_read_bufferram; in s3c_onenand_setup()
831 this->write_bufferram = onenand_write_bufferram; in s3c_onenand_setup()
837 struct onenand_chip *this; in s3c_onenand_probe() local
855 this = (struct onenand_chip *) &mtd[1]; in s3c_onenand_probe()
856 mtd->priv = this; in s3c_onenand_probe()
870 this->base = onenand->base; in s3c_onenand_probe()
873 this->options |= ONENAND_SKIP_UNLOCK_CHECK; in s3c_onenand_probe()
893 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
924 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
953 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_suspend() local
955 this->wait(mtd, FL_PM_SUSPENDED); in s3c_pm_ops_suspend()
962 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_resume() local
964 this->unlock_all(mtd); in s3c_pm_ops_resume()