doc 83 drivers/mtd/nand/raw/diskonchip.c #define DoC_is_MillenniumPlus(doc) ((doc)->ChipID == DOC_ChipID_DocMilPlus16 || (doc)->ChipID == DOC_ChipID_DocMilPlus32) doc 84 drivers/mtd/nand/raw/diskonchip.c #define DoC_is_Millennium(doc) ((doc)->ChipID == DOC_ChipID_DocMil) doc 85 drivers/mtd/nand/raw/diskonchip.c #define DoC_is_2000(doc) ((doc)->ChipID == DOC_ChipID_Doc2k) doc 219 drivers/mtd/nand/raw/diskonchip.c static void DoC_Delay(struct doc_priv *doc, unsigned short cycles) doc 225 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_Millennium(doc)) doc 226 drivers/mtd/nand/raw/diskonchip.c dummy = ReadDOC(doc->virtadr, NOP); doc 227 drivers/mtd/nand/raw/diskonchip.c else if (DoC_is_MillenniumPlus(doc)) doc 228 drivers/mtd/nand/raw/diskonchip.c dummy = ReadDOC(doc->virtadr, Mplus_NOP); doc 230 drivers/mtd/nand/raw/diskonchip.c dummy = ReadDOC(doc->virtadr, DOCStatus); doc 238 drivers/mtd/nand/raw/diskonchip.c static int _DoC_WaitReady(struct doc_priv *doc) doc 240 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 246 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) { doc 269 drivers/mtd/nand/raw/diskonchip.c static inline int DoC_WaitReady(struct doc_priv *doc) doc 271 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 274 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) { doc 275 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 4); doc 279 drivers/mtd/nand/raw/diskonchip.c ret = _DoC_WaitReady(doc); doc 281 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 4); doc 285 drivers/mtd/nand/raw/diskonchip.c ret = _DoC_WaitReady(doc); doc 286 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 2); doc 296 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 297 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 307 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 308 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 312 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 2); doc 322 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 323 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 338 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 339 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 351 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 352 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 372 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 389 drivers/mtd/nand/raw/diskonchip.c if (doc->ChipID == DOC_ChipID_Doc2k && try_dword && !nr) { doc 395 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 418 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 423 drivers/mtd/nand/raw/diskonchip.c doc->chips_per_floor = 4; doc 433 drivers/mtd/nand/raw/diskonchip.c doc->chips_per_floor = i; doc 439 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 443 drivers/mtd/nand/raw/diskonchip.c DoC_WaitReady(doc); doc 445 drivers/mtd/nand/raw/diskonchip.c DoC_WaitReady(doc); doc 453 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 454 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 463 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 464 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 468 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 2); doc 476 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 477 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 488 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 489 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 504 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 505 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 518 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 519 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 535 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 536 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 565 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 566 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 578 drivers/mtd/nand/raw/diskonchip.c floor = chip / doc->chips_per_floor; doc 579 drivers/mtd/nand/raw/diskonchip.c chip -= (floor * doc->chips_per_floor); doc 585 drivers/mtd/nand/raw/diskonchip.c doc->curchip = chip; doc 586 drivers/mtd/nand/raw/diskonchip.c doc->curfloor = floor; doc 591 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 592 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 601 drivers/mtd/nand/raw/diskonchip.c floor = chip / doc->chips_per_floor; doc 602 drivers/mtd/nand/raw/diskonchip.c chip -= (floor * doc->chips_per_floor); doc 612 drivers/mtd/nand/raw/diskonchip.c doc->curchip = chip; doc 613 drivers/mtd/nand/raw/diskonchip.c doc->curfloor = floor; doc 621 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 622 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 625 drivers/mtd/nand/raw/diskonchip.c doc->CDSNControl &= ~CDSN_CTRL_MSK; doc 626 drivers/mtd/nand/raw/diskonchip.c doc->CDSNControl |= ctrl & CDSN_CTRL_MSK; doc 628 drivers/mtd/nand/raw/diskonchip.c printk("hwcontrol(%d): %02x\n", cmd, doc->CDSNControl); doc 629 drivers/mtd/nand/raw/diskonchip.c WriteDOC(doc->CDSNControl, docptr, CDSNControl); doc 631 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 4); doc 634 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_2000(doc)) doc 645 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 646 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 749 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 750 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 752 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) { doc 754 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 4); doc 765 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 4); doc 772 drivers/mtd/nand/raw/diskonchip.c DoC_Delay(doc, 2); doc 788 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 789 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 806 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 807 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 826 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 827 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 832 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_2000(doc)) { doc 833 drivers/mtd/nand/raw/diskonchip.c WriteDOC(doc->CDSNControl & ~CDSN_CTRL_FLASH_IO, docptr, CDSNControl); doc 837 drivers/mtd/nand/raw/diskonchip.c WriteDOC(doc->CDSNControl, docptr, CDSNControl); doc 838 drivers/mtd/nand/raw/diskonchip.c } else if (DoC_is_MillenniumPlus(doc)) { doc 849 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) doc 856 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) doc 886 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 887 drivers/mtd/nand/raw/diskonchip.c void __iomem *docptr = doc->virtadr; doc 892 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_2000(doc)) { doc 896 drivers/mtd/nand/raw/diskonchip.c } else if (DoC_is_MillenniumPlus(doc)) { doc 909 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) doc 915 drivers/mtd/nand/raw/diskonchip.c ret = doc_ecc_decode(doc->rs_decoder, dat, calc_ecc); doc 920 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) doc 988 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1003 drivers/mtd/nand/raw/diskonchip.c if (doc->mh0_page == -1) { doc 1004 drivers/mtd/nand/raw/diskonchip.c doc->mh0_page = offs >> this->page_shift; doc 1009 drivers/mtd/nand/raw/diskonchip.c doc->mh1_page = offs >> this->page_shift; doc 1012 drivers/mtd/nand/raw/diskonchip.c if (doc->mh0_page == -1) { doc 1018 drivers/mtd/nand/raw/diskonchip.c offs = doc->mh0_page << this->page_shift; doc 1031 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1102 drivers/mtd/nand/raw/diskonchip.c offs = max(doc->mh0_page, doc->mh1_page); doc 1137 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1158 drivers/mtd/nand/raw/diskonchip.c doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); doc 1194 drivers/mtd/nand/raw/diskonchip.c blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); doc 1257 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1270 drivers/mtd/nand/raw/diskonchip.c this->bbt_td->pages[0] = doc->mh0_page + 1; doc 1271 drivers/mtd/nand/raw/diskonchip.c if (doc->mh1_page != -1) { doc 1276 drivers/mtd/nand/raw/diskonchip.c this->bbt_md->pages[0] = doc->mh1_page + 1; doc 1292 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1295 drivers/mtd/nand/raw/diskonchip.c if (nanddev_ntargets(&this->base) > doc->chips_per_floor) { doc 1300 drivers/mtd/nand/raw/diskonchip.c if (DoC_is_MillenniumPlus(doc)) { doc 1345 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1350 drivers/mtd/nand/raw/diskonchip.c doc->late_init = nftl_scan_bbt; doc 1352 drivers/mtd/nand/raw/diskonchip.c doc->CDSNControl = CDSN_CTRL_FLASH_IO | CDSN_CTRL_ECC_IO; doc 1355 drivers/mtd/nand/raw/diskonchip.c return (4 * doc->chips_per_floor); doc 1361 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1367 drivers/mtd/nand/raw/diskonchip.c ReadDOC(doc->virtadr, ChipID); doc 1368 drivers/mtd/nand/raw/diskonchip.c ReadDOC(doc->virtadr, ChipID); doc 1369 drivers/mtd/nand/raw/diskonchip.c ReadDOC(doc->virtadr, ChipID); doc 1370 drivers/mtd/nand/raw/diskonchip.c if (ReadDOC(doc->virtadr, ChipID) != DOC_ChipID_DocMil) { doc 1377 drivers/mtd/nand/raw/diskonchip.c doc->late_init = inftl_scan_bbt; doc 1378 drivers/mtd/nand/raw/diskonchip.c return (4 * doc->chips_per_floor); doc 1381 drivers/mtd/nand/raw/diskonchip.c doc->chips_per_floor = 1; doc 1383 drivers/mtd/nand/raw/diskonchip.c doc->late_init = nftl_scan_bbt; doc 1391 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = nand_get_controller_data(this); doc 1396 drivers/mtd/nand/raw/diskonchip.c doc->late_init = inftl_scan_bbt; doc 1402 drivers/mtd/nand/raw/diskonchip.c doc->chips_per_floor = 1; doc 1411 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc = NULL; doc 1506 drivers/mtd/nand/raw/diskonchip.c for (mtd = doclist; mtd; mtd = doc->nextdoc) { doc 1510 drivers/mtd/nand/raw/diskonchip.c doc = nand_get_controller_data(nand); doc 1516 drivers/mtd/nand/raw/diskonchip.c oldval = ReadDOC(doc->virtadr, Mplus_AliasResolution); doc 1519 drivers/mtd/nand/raw/diskonchip.c oldval = ReadDOC(doc->virtadr, AliasResolution); doc 1526 drivers/mtd/nand/raw/diskonchip.c oldval = ReadDOC(doc->virtadr, Mplus_AliasResolution); doc 1530 drivers/mtd/nand/raw/diskonchip.c oldval = ReadDOC(doc->virtadr, AliasResolution); doc 1536 drivers/mtd/nand/raw/diskonchip.c doc->physadr, physadr); doc 1561 drivers/mtd/nand/raw/diskonchip.c doc = (struct doc_priv *) (nand + 1); doc 1562 drivers/mtd/nand/raw/diskonchip.c doc->rs_decoder = init_rs(10, 0x409, FCR, 1, NROOTS); doc 1563 drivers/mtd/nand/raw/diskonchip.c if (!doc->rs_decoder) { doc 1570 drivers/mtd/nand/raw/diskonchip.c nand->bbt_td = (struct nand_bbt_descr *) (doc + 1); doc 1576 drivers/mtd/nand/raw/diskonchip.c nand_set_controller_data(nand, doc); doc 1595 drivers/mtd/nand/raw/diskonchip.c doc->physadr = physadr; doc 1596 drivers/mtd/nand/raw/diskonchip.c doc->virtadr = virtadr; doc 1597 drivers/mtd/nand/raw/diskonchip.c doc->ChipID = ChipID; doc 1598 drivers/mtd/nand/raw/diskonchip.c doc->curfloor = -1; doc 1599 drivers/mtd/nand/raw/diskonchip.c doc->curchip = -1; doc 1600 drivers/mtd/nand/raw/diskonchip.c doc->mh0_page = -1; doc 1601 drivers/mtd/nand/raw/diskonchip.c doc->mh1_page = -1; doc 1602 drivers/mtd/nand/raw/diskonchip.c doc->nextdoc = doclist; doc 1611 drivers/mtd/nand/raw/diskonchip.c if ((ret = nand_scan(nand, numchips)) || (ret = doc->late_init(mtd))) { doc 1631 drivers/mtd/nand/raw/diskonchip.c if (doc) doc 1632 drivers/mtd/nand/raw/diskonchip.c free_rs(doc->rs_decoder); doc 1646 drivers/mtd/nand/raw/diskonchip.c struct doc_priv *doc; doc 1650 drivers/mtd/nand/raw/diskonchip.c doc = nand_get_controller_data(nand); doc 1652 drivers/mtd/nand/raw/diskonchip.c nextmtd = doc->nextdoc; doc 1654 drivers/mtd/nand/raw/diskonchip.c iounmap(doc->virtadr); doc 1655 drivers/mtd/nand/raw/diskonchip.c release_mem_region(doc->physadr, DOC_IOREMAP_LEN); doc 1656 drivers/mtd/nand/raw/diskonchip.c free_rs(doc->rs_decoder); doc 533 tools/testing/selftests/bpf/test_progs.c .doc = argp_program_doc,