Lines Matching refs:this
119 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local
120 int reg = addr - this->base; in s3c_onenand_readw()
168 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local
169 int reg = addr - this->base; in s3c_onenand_writew()
274 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local
281 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
282 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command()
283 fpa &= this->page_mask; in s3c_onenand_command()
291 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command()
296 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command()
305 m += (this->writesize >> 2); in s3c_onenand_command()
377 struct onenand_chip *this = mtd->priv; in s3c_get_bufferram() local
378 int index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_get_bufferram()
384 p += this->writesize; in s3c_get_bufferram()
450 struct onenand_chip *this = mtd->priv; in s3c_onenand_check_lock_status() local
453 end = this->chipsize >> this->erase_shift; in s3c_onenand_check_lock_status()
468 struct onenand_chip *this = mtd->priv; in s3c_onenand_do_lock_cmd() local
471 start = ofs >> this->erase_shift; in s3c_onenand_do_lock_cmd()
473 end = start + (len >> this->erase_shift) - 1; in s3c_onenand_do_lock_cmd()
484 this->wait(mtd, FL_LOCKING); in s3c_onenand_do_lock_cmd()
489 struct onenand_chip *this = mtd->priv; in s3c_onenand_unlock_all() local
491 size_t len = this->chipsize; in s3c_onenand_unlock_all()
494 this->subpagesize = mtd->writesize; in s3c_onenand_unlock_all()
497 if (this->options & ONENAND_HAS_UNLOCK_ALL) { in s3c_onenand_unlock_all()
499 this->command(mtd, ONENAND_CMD_UNLOCK_ALL, 0, 0); in s3c_onenand_unlock_all()
502 this->wait(mtd, FL_LOCKING); in s3c_onenand_unlock_all()
505 if (!ONENAND_IS_DDP(this)) { in s3c_onenand_unlock_all()
511 ofs = this->chipsize >> 1; in s3c_onenand_unlock_all()
512 len = this->chipsize >> 1; in s3c_onenand_unlock_all()
531 struct onenand_chip *this = mtd->priv; in s3c_onenand_init() local
557 this->read_word = s3c_onenand_readw; in s3c_onenand_init()
558 this->write_word = s3c_onenand_writew; in s3c_onenand_init()
560 this->wait = s3c_onenand_wait; in s3c_onenand_init()
561 this->bbt_wait = s3c_onenand_bbt_wait; in s3c_onenand_init()
562 this->unlock_all = s3c_onenand_unlock_all; in s3c_onenand_init()
563 this->command = s3c_onenand_command; in s3c_onenand_init()
565 this->read_bufferram = onenand_read_bufferram; in s3c_onenand_init()
566 this->write_bufferram = onenand_write_bufferram; in s3c_onenand_init()
568 this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK; in s3c_onenand_init()