Lines Matching refs:this

137  * Fabrice Bellard figured this out in the old docecc code. I added
299 struct nand_chip *this = mtd->priv;
300 struct doc_priv *doc = this->priv;
311 struct nand_chip *this = mtd->priv;
312 struct doc_priv *doc = this->priv;
326 struct nand_chip *this = mtd->priv;
327 struct doc_priv *doc = this->priv;
343 struct nand_chip *this = mtd->priv;
344 struct doc_priv *doc = this->priv;
358 struct nand_chip *this = mtd->priv;
359 struct doc_priv *doc = this->priv;
379 struct nand_chip *this = mtd->priv;
380 struct doc_priv *doc = this->priv;
394 ret = this->read_byte(mtd) << 8;
395 ret |= this->read_byte(mtd);
416 this->read_buf = &doc2000_readbuf_dword;
425 struct nand_chip *this = mtd->priv;
426 struct doc_priv *doc = this->priv;
445 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this)
447 struct doc_priv *doc = this->priv;
452 this->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1);
454 status = (int)this->read_byte(mtd);
461 struct nand_chip *this = mtd->priv;
462 struct doc_priv *doc = this->priv;
472 struct nand_chip *this = mtd->priv;
473 struct doc_priv *doc = this->priv;
486 struct nand_chip *this = mtd->priv;
487 struct doc_priv *doc = this->priv;
499 struct nand_chip *this = mtd->priv;
500 struct doc_priv *doc = this->priv;
516 struct nand_chip *this = mtd->priv;
517 struct doc_priv *doc = this->priv;
531 struct nand_chip *this = mtd->priv;
532 struct doc_priv *doc = this->priv;
549 struct nand_chip *this = mtd->priv;
550 struct doc_priv *doc = this->priv;
580 struct nand_chip *this = mtd->priv;
581 struct doc_priv *doc = this->priv;
599 this->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
607 struct nand_chip *this = mtd->priv;
608 struct doc_priv *doc = this->priv;
638 struct nand_chip *this = mtd->priv;
639 struct doc_priv *doc = this->priv;
661 struct nand_chip *this = mtd->priv;
662 struct doc_priv *doc = this->priv;
701 if (this->options & NAND_BUSWIDTH_16 &&
710 if (this->chipsize & 0x0c000000) {
737 if (this->dev_ready)
739 udelay(this->chip_delay);
743 while (!(this->read_byte(mtd) & 0x40)) ;
752 if (!this->dev_ready) {
753 udelay(this->chip_delay);
758 /* Apply this short delay always to ensure that we do wait tWB in
762 while (!this->dev_ready(mtd)) ;
767 struct nand_chip *this = mtd->priv;
768 struct doc_priv *doc = this->priv;
807 struct nand_chip *this = mtd->priv;
808 struct doc_priv *doc = this->priv;
826 struct nand_chip *this = mtd->priv;
827 struct doc_priv *doc = this->priv;
846 struct nand_chip *this = mtd->priv;
847 struct doc_priv *doc = this->priv;
884 /* Note: this somewhat expensive test should not be triggered
907 struct nand_chip *this = mtd->priv;
908 struct doc_priv *doc = this->priv;
951 /* Note: this somewhat expensive test should not be triggered
961 /* If emptymatch still =1, this is almost certainly a freshly-
1007 struct nand_chip *this = mtd->priv;
1008 struct doc_priv *doc = this->priv;
1024 doc->mh0_page = offs >> this->page_shift;
1029 doc->mh1_page = offs >> this->page_shift;
1038 offs = doc->mh0_page << this->page_shift;
1050 struct nand_chip *this = mtd->priv;
1051 struct doc_priv *doc = this->priv;
1055 const unsigned psize = 1 << this->page_shift;
1081 blocks = mtd->size >> this->phys_erase_shift;
1101 Unfortunately, we didn't know before this point what these values
1102 should be. Thus, this code is somewhat dependent on the exact
1105 this->bbt_erase_shift += (0xff - mh->UnitSizeFactor);
1108 blocks = mtd->size >> this->bbt_erase_shift;
1119 offs <<= this->page_shift;
1131 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift;
1152 struct nand_chip *this = mtd->priv;
1153 struct doc_priv *doc = this->priv;
1165 end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift);
1174 doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift);
1202 vshift = this->phys_erase_shift + mh->BlockMultiplierBits;
1210 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift);
1272 struct nand_chip *this = mtd->priv;
1273 struct doc_priv *doc = this->priv;
1282 this->bbt_td->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT |
1285 this->bbt_td->veroffs = 7;
1286 this->bbt_td->pages[0] = doc->mh0_page + 1;
1288 this->bbt_md->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT |
1291 this->bbt_md->veroffs = 7;
1292 this->bbt_md->pages[0] = doc->mh1_page + 1;
1294 this->bbt_md = NULL;
1310 struct nand_chip *this = mtd->priv;
1311 struct doc_priv *doc = this->priv;
1314 if (this->numchips > doc->chips_per_floor) {
1320 this->bbt_td->options = NAND_BBT_2BIT | NAND_BBT_ABSPAGE;
1322 this->bbt_td->options |= NAND_BBT_WRITE;
1323 this->bbt_td->pages[0] = 2;
1324 this->bbt_md = NULL;
1326 this->bbt_td->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION;
1328 this->bbt_td->options |= NAND_BBT_WRITE;
1329 this->bbt_td->offs = 8;
1330 this->bbt_td->len = 8;
1331 this->bbt_td->veroffs = 7;
1332 this->bbt_td->maxblocks = INFTL_BBT_RESERVED_BLOCKS;
1333 this->bbt_td->reserved_block_code = 0x01;
1334 this->bbt_td->pattern = "MSYS_BBT";
1336 this->bbt_md->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION;
1338 this->bbt_md->options |= NAND_BBT_WRITE;
1339 this->bbt_md->offs = 8;
1340 this->bbt_md->len = 8;
1341 this->bbt_md->veroffs = 7;
1342 this->bbt_md->maxblocks = INFTL_BBT_RESERVED_BLOCKS;
1343 this->bbt_md->reserved_block_code = 0x01;
1344 this->bbt_md->pattern = "TBB_SYSM";
1366 struct nand_chip *this = mtd->priv;
1367 struct doc_priv *doc = this->priv;
1369 this->read_byte = doc2000_read_byte;
1370 this->write_buf = doc2000_writebuf;
1371 this->read_buf = doc2000_readbuf;
1372 this->scan_bbt = nftl_scan_bbt;
1382 struct nand_chip *this = mtd->priv;
1383 struct doc_priv *doc = this->priv;
1385 this->read_byte = doc2001_read_byte;
1386 this->write_buf = doc2001_writebuf;
1387 this->read_buf = doc2001_readbuf;
1399 this->scan_bbt = inftl_scan_bbt;
1405 this->scan_bbt = nftl_scan_bbt;
1412 struct nand_chip *this = mtd->priv;
1413 struct doc_priv *doc = this->priv;
1415 this->read_byte = doc2001plus_read_byte;
1416 this->write_buf = doc2001plus_writebuf;
1417 this->read_buf = doc2001plus_readbuf;
1418 this->scan_bbt = inftl_scan_bbt;
1419 this->cmd_ctrl = NULL;
1420 this->select_chip = doc2001plus_select_chip;
1421 this->cmdfunc = doc2001plus_command;
1422 this->ecc.hwctl = doc2001plus_enable_hwecc;
1531 /* Use the alias resolution register to determine if this is