Lines Matching refs:this
299 struct nand_chip *this = mtd->priv; in doc2000_write_byte() local
300 struct doc_priv *doc = this->priv; in doc2000_write_byte()
311 struct nand_chip *this = mtd->priv; in doc2000_read_byte() local
312 struct doc_priv *doc = this->priv; in doc2000_read_byte()
326 struct nand_chip *this = mtd->priv; in doc2000_writebuf() local
327 struct doc_priv *doc = this->priv; in doc2000_writebuf()
343 struct nand_chip *this = mtd->priv; in doc2000_readbuf() local
344 struct doc_priv *doc = this->priv; in doc2000_readbuf()
358 struct nand_chip *this = mtd->priv; in doc2000_readbuf_dword() local
359 struct doc_priv *doc = this->priv; in doc2000_readbuf_dword()
379 struct nand_chip *this = mtd->priv; in doc200x_ident_chip() local
380 struct doc_priv *doc = this->priv; in doc200x_ident_chip()
394 ret = this->read_byte(mtd) << 8; in doc200x_ident_chip()
395 ret |= this->read_byte(mtd); in doc200x_ident_chip()
416 this->read_buf = &doc2000_readbuf_dword; in doc200x_ident_chip()
425 struct nand_chip *this = mtd->priv; in doc2000_count_chips() local
426 struct doc_priv *doc = this->priv; in doc2000_count_chips()
445 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) in doc200x_wait() argument
447 struct doc_priv *doc = this->priv; in doc200x_wait()
452 this->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1); in doc200x_wait()
454 status = (int)this->read_byte(mtd); in doc200x_wait()
461 struct nand_chip *this = mtd->priv; in doc2001_write_byte() local
462 struct doc_priv *doc = this->priv; in doc2001_write_byte()
472 struct nand_chip *this = mtd->priv; in doc2001_read_byte() local
473 struct doc_priv *doc = this->priv; in doc2001_read_byte()
486 struct nand_chip *this = mtd->priv; in doc2001_writebuf() local
487 struct doc_priv *doc = this->priv; in doc2001_writebuf()
499 struct nand_chip *this = mtd->priv; in doc2001_readbuf() local
500 struct doc_priv *doc = this->priv; in doc2001_readbuf()
516 struct nand_chip *this = mtd->priv; in doc2001plus_read_byte() local
517 struct doc_priv *doc = this->priv; in doc2001plus_read_byte()
531 struct nand_chip *this = mtd->priv; in doc2001plus_writebuf() local
532 struct doc_priv *doc = this->priv; in doc2001plus_writebuf()
549 struct nand_chip *this = mtd->priv; in doc2001plus_readbuf() local
550 struct doc_priv *doc = this->priv; in doc2001plus_readbuf()
580 struct nand_chip *this = mtd->priv; in doc2001plus_select_chip() local
581 struct doc_priv *doc = this->priv; in doc2001plus_select_chip()
599 this->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in doc2001plus_select_chip()
607 struct nand_chip *this = mtd->priv; in doc200x_select_chip() local
608 struct doc_priv *doc = this->priv; in doc200x_select_chip()
638 struct nand_chip *this = mtd->priv; in doc200x_hwcontrol() local
639 struct doc_priv *doc = this->priv; in doc200x_hwcontrol()
661 struct nand_chip *this = mtd->priv; in doc2001plus_command() local
662 struct doc_priv *doc = this->priv; in doc2001plus_command()
701 if (this->options & NAND_BUSWIDTH_16 && in doc2001plus_command()
710 if (this->chipsize & 0x0c000000) { in doc2001plus_command()
737 if (this->dev_ready) in doc2001plus_command()
739 udelay(this->chip_delay); in doc2001plus_command()
743 while (!(this->read_byte(mtd) & 0x40)) ; in doc2001plus_command()
752 if (!this->dev_ready) { in doc2001plus_command()
753 udelay(this->chip_delay); in doc2001plus_command()
762 while (!this->dev_ready(mtd)) ; in doc2001plus_command()
767 struct nand_chip *this = mtd->priv; in doc200x_dev_ready() local
768 struct doc_priv *doc = this->priv; in doc200x_dev_ready()
807 struct nand_chip *this = mtd->priv; in doc200x_enable_hwecc() local
808 struct doc_priv *doc = this->priv; in doc200x_enable_hwecc()
826 struct nand_chip *this = mtd->priv; in doc2001plus_enable_hwecc() local
827 struct doc_priv *doc = this->priv; in doc2001plus_enable_hwecc()
846 struct nand_chip *this = mtd->priv; in doc200x_calculate_ecc() local
847 struct doc_priv *doc = this->priv; in doc200x_calculate_ecc()
907 struct nand_chip *this = mtd->priv; in doc200x_correct_data() local
908 struct doc_priv *doc = this->priv; in doc200x_correct_data()
1007 struct nand_chip *this = mtd->priv; in find_media_headers() local
1008 struct doc_priv *doc = this->priv; in find_media_headers()
1024 doc->mh0_page = offs >> this->page_shift; in find_media_headers()
1029 doc->mh1_page = offs >> this->page_shift; in find_media_headers()
1038 offs = doc->mh0_page << this->page_shift; in find_media_headers()
1050 struct nand_chip *this = mtd->priv; in nftl_partscan() local
1051 struct doc_priv *doc = this->priv; in nftl_partscan()
1055 const unsigned psize = 1 << this->page_shift; in nftl_partscan()
1081 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1105 this->bbt_erase_shift += (0xff - mh->UnitSizeFactor); in nftl_partscan()
1108 blocks = mtd->size >> this->bbt_erase_shift; in nftl_partscan()
1119 offs <<= this->page_shift; in nftl_partscan()
1131 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan()
1152 struct nand_chip *this = mtd->priv; in inftl_partscan() local
1153 struct doc_priv *doc = this->priv; in inftl_partscan()
1165 end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift); in inftl_partscan()
1174 doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); in inftl_partscan()
1202 vshift = this->phys_erase_shift + mh->BlockMultiplierBits; in inftl_partscan()
1210 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
1272 struct nand_chip *this = mtd->priv; in nftl_scan_bbt() local
1273 struct doc_priv *doc = this->priv; in nftl_scan_bbt()
1282 this->bbt_td->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1285 this->bbt_td->veroffs = 7; in nftl_scan_bbt()
1286 this->bbt_td->pages[0] = doc->mh0_page + 1; in nftl_scan_bbt()
1288 this->bbt_md->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1291 this->bbt_md->veroffs = 7; in nftl_scan_bbt()
1292 this->bbt_md->pages[0] = doc->mh1_page + 1; in nftl_scan_bbt()
1294 this->bbt_md = NULL; in nftl_scan_bbt()
1310 struct nand_chip *this = mtd->priv; in inftl_scan_bbt() local
1311 struct doc_priv *doc = this->priv; in inftl_scan_bbt()
1314 if (this->numchips > doc->chips_per_floor) { in inftl_scan_bbt()
1320 this->bbt_td->options = NAND_BBT_2BIT | NAND_BBT_ABSPAGE; in inftl_scan_bbt()
1322 this->bbt_td->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1323 this->bbt_td->pages[0] = 2; in inftl_scan_bbt()
1324 this->bbt_md = NULL; in inftl_scan_bbt()
1326 this->bbt_td->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION; in inftl_scan_bbt()
1328 this->bbt_td->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1329 this->bbt_td->offs = 8; in inftl_scan_bbt()
1330 this->bbt_td->len = 8; in inftl_scan_bbt()
1331 this->bbt_td->veroffs = 7; in inftl_scan_bbt()
1332 this->bbt_td->maxblocks = INFTL_BBT_RESERVED_BLOCKS; in inftl_scan_bbt()
1333 this->bbt_td->reserved_block_code = 0x01; in inftl_scan_bbt()
1334 this->bbt_td->pattern = "MSYS_BBT"; in inftl_scan_bbt()
1336 this->bbt_md->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION; in inftl_scan_bbt()
1338 this->bbt_md->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1339 this->bbt_md->offs = 8; in inftl_scan_bbt()
1340 this->bbt_md->len = 8; in inftl_scan_bbt()
1341 this->bbt_md->veroffs = 7; in inftl_scan_bbt()
1342 this->bbt_md->maxblocks = INFTL_BBT_RESERVED_BLOCKS; in inftl_scan_bbt()
1343 this->bbt_md->reserved_block_code = 0x01; in inftl_scan_bbt()
1344 this->bbt_md->pattern = "TBB_SYSM"; in inftl_scan_bbt()
1366 struct nand_chip *this = mtd->priv; in doc2000_init() local
1367 struct doc_priv *doc = this->priv; in doc2000_init()
1369 this->read_byte = doc2000_read_byte; in doc2000_init()
1370 this->write_buf = doc2000_writebuf; in doc2000_init()
1371 this->read_buf = doc2000_readbuf; in doc2000_init()
1372 this->scan_bbt = nftl_scan_bbt; in doc2000_init()
1382 struct nand_chip *this = mtd->priv; in doc2001_init() local
1383 struct doc_priv *doc = this->priv; in doc2001_init()
1385 this->read_byte = doc2001_read_byte; in doc2001_init()
1386 this->write_buf = doc2001_writebuf; in doc2001_init()
1387 this->read_buf = doc2001_readbuf; in doc2001_init()
1399 this->scan_bbt = inftl_scan_bbt; in doc2001_init()
1405 this->scan_bbt = nftl_scan_bbt; in doc2001_init()
1412 struct nand_chip *this = mtd->priv; in doc2001plus_init() local
1413 struct doc_priv *doc = this->priv; in doc2001plus_init()
1415 this->read_byte = doc2001plus_read_byte; in doc2001plus_init()
1416 this->write_buf = doc2001plus_writebuf; in doc2001plus_init()
1417 this->read_buf = doc2001plus_readbuf; in doc2001plus_init()
1418 this->scan_bbt = inftl_scan_bbt; in doc2001plus_init()
1419 this->cmd_ctrl = NULL; in doc2001plus_init()
1420 this->select_chip = doc2001plus_select_chip; in doc2001plus_init()
1421 this->cmdfunc = doc2001plus_command; in doc2001plus_init()
1422 this->ecc.hwctl = doc2001plus_enable_hwecc; in doc2001plus_init()