• Home
  • Raw
  • Download

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()
403 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command()
412 m += (this->writesize >> 2); in s3c_onenand_command()
476 struct onenand_chip *this = mtd->priv; in s3c_get_bufferram() local
477 int index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_get_bufferram()
483 p += this->writesize; in s3c_get_bufferram()
618 struct onenand_chip *this = mtd->priv; in s5pc110_read_bufferram() local
625 p = this->base + area; in s5pc110_read_bufferram()
626 if (ONENAND_CURRENT_BUFFERRAM(this)) { in s5pc110_read_bufferram()
628 p += this->writesize; in s5pc110_read_bufferram()
653 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
657 dma_src = onenand->phys_base + (p - this->base); in s5pc110_read_bufferram()
678 memcpy_fromio(this->page_buf, p, mtd->writesize); in s5pc110_read_bufferram()
679 memcpy(buffer, this->page_buf + offset, count); in s5pc110_read_bufferram()
728 struct onenand_chip *this = mtd->priv; in s3c_onenand_check_lock_status() local
732 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
748 struct onenand_chip *this = mtd->priv; in s3c_onenand_do_lock_cmd() local
751 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
753 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
768 this->wait(mtd, FL_LOCKING); in s3c_onenand_do_lock_cmd()
773 struct onenand_chip *this = mtd->priv; in s3c_unlock_all() local
775 size_t len = this->chipsize; in s3c_unlock_all()
777 if (this->options & ONENAND_HAS_UNLOCK_ALL) { in s3c_unlock_all()
779 this->command(mtd, ONENAND_CMD_UNLOCK_ALL, 0, 0); in s3c_unlock_all()
782 this->wait(mtd, FL_LOCKING); in s3c_unlock_all()
785 if (!ONENAND_IS_DDP(this)) { in s3c_unlock_all()
791 ofs = this->chipsize >> 1; in s3c_unlock_all()
792 len = this->chipsize >> 1; in s3c_unlock_all()
802 struct onenand_chip *this = mtd->priv; in s3c_onenand_setup() local
814 this->read_bufferram = s5pc110_read_bufferram; in s3c_onenand_setup()
815 this->chip_probe = s5pc110_chip_probe; in s3c_onenand_setup()
821 this->read_word = s3c_onenand_readw; in s3c_onenand_setup()
822 this->write_word = s3c_onenand_writew; in s3c_onenand_setup()
824 this->wait = s3c_onenand_wait; in s3c_onenand_setup()
825 this->bbt_wait = s3c_onenand_bbt_wait; in s3c_onenand_setup()
826 this->unlock_all = s3c_unlock_all; in s3c_onenand_setup()
827 this->command = s3c_onenand_command; in s3c_onenand_setup()
829 this->read_bufferram = onenand_read_bufferram; in s3c_onenand_setup()
830 this->write_bufferram = onenand_write_bufferram; in s3c_onenand_setup()
836 struct onenand_chip *this; in s3c_onenand_probe() local
854 this = (struct onenand_chip *) &mtd[1]; in s3c_onenand_probe()
855 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()
894 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
926 this->subpagesize = mtd->writesize; in s3c_onenand_probe()
957 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_suspend() local
959 this->wait(mtd, FL_PM_SUSPENDED); in s3c_pm_ops_suspend()
966 struct onenand_chip *this = mtd->priv; in s3c_pm_ops_resume() local
968 this->unlock_all(mtd); in s3c_pm_ops_resume()