Lines Matching refs:this

295 	struct nand_chip *this = mtd_to_nand(mtd);  in doc2000_write_byte()  local
296 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_write_byte()
307 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_read_byte() local
308 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_read_byte()
322 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_writebuf() local
323 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_writebuf()
339 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf() local
340 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_readbuf()
354 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf_dword() local
355 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_readbuf_dword()
375 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_ident_chip() local
376 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_ident_chip()
390 ret = this->read_byte(mtd) << 8; in doc200x_ident_chip()
391 ret |= this->read_byte(mtd); in doc200x_ident_chip()
412 this->read_buf = &doc2000_readbuf_dword; in doc200x_ident_chip()
421 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_count_chips() local
422 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_count_chips()
441 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) in doc200x_wait() argument
443 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_wait()
448 nand_status_op(this, NULL); in doc200x_wait()
450 status = (int)this->read_byte(mtd); in doc200x_wait()
457 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_write_byte() local
458 struct doc_priv *doc = nand_get_controller_data(this); in doc2001_write_byte()
468 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_read_byte() local
469 struct doc_priv *doc = nand_get_controller_data(this); in doc2001_read_byte()
482 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_writebuf() local
483 struct doc_priv *doc = nand_get_controller_data(this); in doc2001_writebuf()
495 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_readbuf() local
496 struct doc_priv *doc = nand_get_controller_data(this); in doc2001_readbuf()
512 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_read_byte() local
513 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_read_byte()
527 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_writebuf() local
528 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_writebuf()
545 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_readbuf() local
546 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_readbuf()
576 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_select_chip() local
577 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_select_chip()
595 nand_reset_op(this); in doc2001plus_select_chip()
603 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_select_chip() local
604 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_select_chip()
634 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_hwcontrol() local
635 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_hwcontrol()
657 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_command() local
658 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_command()
697 if (this->options & NAND_BUSWIDTH_16 && in doc2001plus_command()
705 if (this->options & NAND_ROW_ADDR_3) { in doc2001plus_command()
732 if (this->dev_ready) in doc2001plus_command()
734 udelay(this->chip_delay); in doc2001plus_command()
738 while (!(this->read_byte(mtd) & 0x40)) ; in doc2001plus_command()
747 if (!this->dev_ready) { in doc2001plus_command()
748 udelay(this->chip_delay); in doc2001plus_command()
757 while (!this->dev_ready(mtd)) ; in doc2001plus_command()
762 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_dev_ready() local
763 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_dev_ready()
802 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_enable_hwecc() local
803 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_enable_hwecc()
821 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_enable_hwecc() local
822 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_enable_hwecc()
841 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_calculate_ecc() local
842 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_calculate_ecc()
902 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_correct_data() local
903 struct doc_priv *doc = nand_get_controller_data(this); in doc200x_correct_data()
1004 struct nand_chip *this = mtd_to_nand(mtd); in find_media_headers() local
1005 struct doc_priv *doc = nand_get_controller_data(this); in find_media_headers()
1021 doc->mh0_page = offs >> this->page_shift; in find_media_headers()
1026 doc->mh1_page = offs >> this->page_shift; in find_media_headers()
1035 offs = doc->mh0_page << this->page_shift; in find_media_headers()
1047 struct nand_chip *this = mtd_to_nand(mtd); in nftl_partscan() local
1048 struct doc_priv *doc = nand_get_controller_data(this); in nftl_partscan()
1052 const unsigned psize = 1 << this->page_shift; in nftl_partscan()
1078 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1102 this->bbt_erase_shift += (0xff - mh->UnitSizeFactor); in nftl_partscan()
1105 blocks = mtd->size >> this->bbt_erase_shift; in nftl_partscan()
1116 offs <<= this->page_shift; in nftl_partscan()
1128 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan()
1149 struct nand_chip *this = mtd_to_nand(mtd); in inftl_partscan() local
1150 struct doc_priv *doc = nand_get_controller_data(this); in inftl_partscan()
1162 end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift); in inftl_partscan()
1171 doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); in inftl_partscan()
1199 vshift = this->phys_erase_shift + mh->BlockMultiplierBits; in inftl_partscan()
1207 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
1269 struct nand_chip *this = mtd_to_nand(mtd); in nftl_scan_bbt() local
1270 struct doc_priv *doc = nand_get_controller_data(this); in nftl_scan_bbt()
1279 this->bbt_td->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1282 this->bbt_td->veroffs = 7; in nftl_scan_bbt()
1283 this->bbt_td->pages[0] = doc->mh0_page + 1; in nftl_scan_bbt()
1285 this->bbt_md->options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT | in nftl_scan_bbt()
1288 this->bbt_md->veroffs = 7; in nftl_scan_bbt()
1289 this->bbt_md->pages[0] = doc->mh1_page + 1; in nftl_scan_bbt()
1291 this->bbt_md = NULL; in nftl_scan_bbt()
1294 ret = nand_create_bbt(this); in nftl_scan_bbt()
1304 struct nand_chip *this = mtd_to_nand(mtd); in inftl_scan_bbt() local
1305 struct doc_priv *doc = nand_get_controller_data(this); in inftl_scan_bbt()
1308 if (this->numchips > doc->chips_per_floor) { in inftl_scan_bbt()
1314 this->bbt_td->options = NAND_BBT_2BIT | NAND_BBT_ABSPAGE; in inftl_scan_bbt()
1316 this->bbt_td->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1317 this->bbt_td->pages[0] = 2; in inftl_scan_bbt()
1318 this->bbt_md = NULL; in inftl_scan_bbt()
1320 this->bbt_td->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION; in inftl_scan_bbt()
1322 this->bbt_td->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1323 this->bbt_td->offs = 8; in inftl_scan_bbt()
1324 this->bbt_td->len = 8; in inftl_scan_bbt()
1325 this->bbt_td->veroffs = 7; in inftl_scan_bbt()
1326 this->bbt_td->maxblocks = INFTL_BBT_RESERVED_BLOCKS; in inftl_scan_bbt()
1327 this->bbt_td->reserved_block_code = 0x01; in inftl_scan_bbt()
1328 this->bbt_td->pattern = "MSYS_BBT"; in inftl_scan_bbt()
1330 this->bbt_md->options = NAND_BBT_LASTBLOCK | NAND_BBT_8BIT | NAND_BBT_VERSION; in inftl_scan_bbt()
1332 this->bbt_md->options |= NAND_BBT_WRITE; in inftl_scan_bbt()
1333 this->bbt_md->offs = 8; in inftl_scan_bbt()
1334 this->bbt_md->len = 8; in inftl_scan_bbt()
1335 this->bbt_md->veroffs = 7; in inftl_scan_bbt()
1336 this->bbt_md->maxblocks = INFTL_BBT_RESERVED_BLOCKS; in inftl_scan_bbt()
1337 this->bbt_md->reserved_block_code = 0x01; in inftl_scan_bbt()
1338 this->bbt_md->pattern = "TBB_SYSM"; in inftl_scan_bbt()
1341 ret = nand_create_bbt(this); in inftl_scan_bbt()
1357 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_init() local
1358 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_init()
1360 this->read_byte = doc2000_read_byte; in doc2000_init()
1361 this->write_buf = doc2000_writebuf; in doc2000_init()
1362 this->read_buf = doc2000_readbuf; in doc2000_init()
1373 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_init() local
1374 struct doc_priv *doc = nand_get_controller_data(this); in doc2001_init()
1376 this->read_byte = doc2001_read_byte; in doc2001_init()
1377 this->write_buf = doc2001_writebuf; in doc2001_init()
1378 this->read_buf = doc2001_readbuf; in doc2001_init()
1403 struct nand_chip *this = mtd_to_nand(mtd); in doc2001plus_init() local
1404 struct doc_priv *doc = nand_get_controller_data(this); in doc2001plus_init()
1406 this->read_byte = doc2001plus_read_byte; in doc2001plus_init()
1407 this->write_buf = doc2001plus_writebuf; in doc2001plus_init()
1408 this->read_buf = doc2001plus_readbuf; in doc2001plus_init()
1410 this->cmd_ctrl = NULL; in doc2001plus_init()
1411 this->select_chip = doc2001plus_select_chip; in doc2001plus_init()
1412 this->cmdfunc = doc2001plus_command; in doc2001plus_init()
1413 this->ecc.hwctl = doc2001plus_enable_hwecc; in doc2001plus_init()