Lines Matching refs:this
302 struct nand_chip *this = mtd->priv; in doc2000_write_byte() local
303 struct doc_priv *doc = this->priv; in doc2000_write_byte()
314 struct nand_chip *this = mtd->priv; in doc2000_read_byte() local
315 struct doc_priv *doc = this->priv; in doc2000_read_byte()
329 struct nand_chip *this = mtd->priv; in doc2000_writebuf() local
330 struct doc_priv *doc = this->priv; in doc2000_writebuf()
346 struct nand_chip *this = mtd->priv; in doc2000_readbuf() local
347 struct doc_priv *doc = this->priv; in doc2000_readbuf()
361 struct nand_chip *this = mtd->priv; in doc2000_readbuf_dword() local
362 struct doc_priv *doc = this->priv; in doc2000_readbuf_dword()
382 struct nand_chip *this = mtd->priv; in doc200x_ident_chip() local
383 struct doc_priv *doc = this->priv; in doc200x_ident_chip()
397 ret = this->read_byte(mtd) << 8; in doc200x_ident_chip()
398 ret |= this->read_byte(mtd); in doc200x_ident_chip()
419 this->read_buf = &doc2000_readbuf_dword; in doc200x_ident_chip()
428 struct nand_chip *this = mtd->priv; in doc2000_count_chips() local
429 struct doc_priv *doc = this->priv; in doc2000_count_chips()
448 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) in doc200x_wait() argument
450 struct doc_priv *doc = this->priv; in doc200x_wait()
455 this->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1); in doc200x_wait()
457 status = (int)this->read_byte(mtd); in doc200x_wait()
464 struct nand_chip *this = mtd->priv; in doc2001_write_byte() local
465 struct doc_priv *doc = this->priv; in doc2001_write_byte()
475 struct nand_chip *this = mtd->priv; in doc2001_read_byte() local
476 struct doc_priv *doc = this->priv; in doc2001_read_byte()
489 struct nand_chip *this = mtd->priv; in doc2001_writebuf() local
490 struct doc_priv *doc = this->priv; in doc2001_writebuf()
502 struct nand_chip *this = mtd->priv; in doc2001_readbuf() local
503 struct doc_priv *doc = this->priv; in doc2001_readbuf()
519 struct nand_chip *this = mtd->priv; in doc2001plus_read_byte() local
520 struct doc_priv *doc = this->priv; in doc2001plus_read_byte()
534 struct nand_chip *this = mtd->priv; in doc2001plus_writebuf() local
535 struct doc_priv *doc = this->priv; in doc2001plus_writebuf()
552 struct nand_chip *this = mtd->priv; in doc2001plus_readbuf() local
553 struct doc_priv *doc = this->priv; in doc2001plus_readbuf()
583 struct nand_chip *this = mtd->priv; in doc2001plus_select_chip() local
584 struct doc_priv *doc = this->priv; in doc2001plus_select_chip()
602 this->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in doc2001plus_select_chip()
610 struct nand_chip *this = mtd->priv; in doc200x_select_chip() local
611 struct doc_priv *doc = this->priv; in doc200x_select_chip()
641 struct nand_chip *this = mtd->priv; in doc200x_hwcontrol() local
642 struct doc_priv *doc = this->priv; in doc200x_hwcontrol()
664 struct nand_chip *this = mtd->priv; in doc2001plus_command() local
665 struct doc_priv *doc = this->priv; in doc2001plus_command()
704 if (this->options & NAND_BUSWIDTH_16 && in doc2001plus_command()
713 if (this->chipsize & 0x0c000000) { in doc2001plus_command()
740 if (this->dev_ready) in doc2001plus_command()
742 udelay(this->chip_delay); in doc2001plus_command()
746 while (!(this->read_byte(mtd) & 0x40)) ; in doc2001plus_command()
755 if (!this->dev_ready) { in doc2001plus_command()
756 udelay(this->chip_delay); in doc2001plus_command()
765 while (!this->dev_ready(mtd)) ; in doc2001plus_command()
770 struct nand_chip *this = mtd->priv; in doc200x_dev_ready() local
771 struct doc_priv *doc = this->priv; in doc200x_dev_ready()
810 struct nand_chip *this = mtd->priv; in doc200x_enable_hwecc() local
811 struct doc_priv *doc = this->priv; in doc200x_enable_hwecc()
829 struct nand_chip *this = mtd->priv; in doc2001plus_enable_hwecc() local
830 struct doc_priv *doc = this->priv; in doc2001plus_enable_hwecc()
849 struct nand_chip *this = mtd->priv; in doc200x_calculate_ecc() local
850 struct doc_priv *doc = this->priv; in doc200x_calculate_ecc()
910 struct nand_chip *this = mtd->priv; in doc200x_correct_data() local
911 struct doc_priv *doc = this->priv; in doc200x_correct_data()
1010 struct nand_chip *this = mtd->priv; in find_media_headers() local
1011 struct doc_priv *doc = this->priv; in find_media_headers()
1027 doc->mh0_page = offs >> this->page_shift; in find_media_headers()
1032 doc->mh1_page = offs >> this->page_shift; in find_media_headers()
1041 offs = doc->mh0_page << this->page_shift; in find_media_headers()
1053 struct nand_chip *this = mtd->priv; in nftl_partscan() local
1054 struct doc_priv *doc = this->priv; in nftl_partscan()
1058 const unsigned psize = 1 << this->page_shift; in nftl_partscan()
1084 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1108 this->bbt_erase_shift += (0xff - mh->UnitSizeFactor); in nftl_partscan()
1111 blocks = mtd->size >> this->bbt_erase_shift; in nftl_partscan()
1122 offs <<= this->page_shift; in nftl_partscan()
1134 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan()
1155 struct nand_chip *this = mtd->priv; in inftl_partscan() local
1156 struct doc_priv *doc = this->priv; in inftl_partscan()
1168 end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift); in inftl_partscan()
1177 doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); in inftl_partscan()
1205 vshift = this->phys_erase_shift + mh->BlockMultiplierBits; in inftl_partscan()
1213 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
1275 struct nand_chip *this = mtd->priv; in nftl_scan_bbt() local
1276 struct doc_priv *doc = this->priv; in nftl_scan_bbt()
1285 this->bbt_td->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1288 this->bbt_td->veroffs = 7; in nftl_scan_bbt()
1289 this->bbt_td->pages[0] = doc->mh0_page + 1; in nftl_scan_bbt()
1291 this->bbt_md->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1294 this->bbt_md->veroffs = 7; in nftl_scan_bbt()
1295 this->bbt_md->pages[0] = doc->mh1_page + 1; in nftl_scan_bbt()
1297 this->bbt_md = NULL; in nftl_scan_bbt()
1300 ret = this->scan_bbt(mtd); 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()
1347 ret = this->scan_bbt(mtd); in inftl_scan_bbt()
1363 struct nand_chip *this = mtd->priv; in doc2000_init() local
1364 struct doc_priv *doc = this->priv; in doc2000_init()
1366 this->read_byte = doc2000_read_byte; in doc2000_init()
1367 this->write_buf = doc2000_writebuf; in doc2000_init()
1368 this->read_buf = doc2000_readbuf; in doc2000_init()
1379 struct nand_chip *this = mtd->priv; in doc2001_init() local
1380 struct doc_priv *doc = this->priv; in doc2001_init()
1382 this->read_byte = doc2001_read_byte; in doc2001_init()
1383 this->write_buf = doc2001_writebuf; in doc2001_init()
1384 this->read_buf = doc2001_readbuf; in doc2001_init()
1409 struct nand_chip *this = mtd->priv; in doc2001plus_init() local
1410 struct doc_priv *doc = this->priv; in doc2001plus_init()
1412 this->read_byte = doc2001plus_read_byte; in doc2001plus_init()
1413 this->write_buf = doc2001plus_writebuf; in doc2001plus_init()
1414 this->read_buf = doc2001plus_readbuf; in doc2001plus_init()
1416 this->cmd_ctrl = NULL; in doc2001plus_init()
1417 this->select_chip = doc2001plus_select_chip; in doc2001plus_init()
1418 this->cmdfunc = doc2001plus_command; in doc2001plus_init()
1419 this->ecc.hwctl = doc2001plus_enable_hwecc; in doc2001plus_init()