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