/drivers/mtd/devices/ |
H A D | doc2001plus.c | 49 static void DoC_Delay(void __iomem * docptr, int cycles) argument 54 WriteDOC(0, docptr, Mplus_NOP); 60 static int _DoC_WaitReady(void __iomem * docptr) argument 67 while (((ReadDOC(docptr, Mplus_FlashControl) & CDSN_CTRL_FR_B_MASK) != CDSN_CTRL_FR_B_MASK) && --c) 76 static inline int DoC_WaitReady(void __iomem * docptr) argument 83 DoC_Delay(docptr, 4); 85 if ((ReadDOC(docptr, Mplus_FlashControl) & CDSN_CTRL_FR_B_MASK) != CDSN_CTRL_FR_B_MASK) 87 ret = _DoC_WaitReady(docptr); 97 static inline void DoC_CheckASIC(void __iomem * docptr) argument 100 if ((ReadDOC(docptr, Mplus_DOCContro 109 DoC_Command(void __iomem * docptr, unsigned char command, unsigned char xtraflags) argument 124 void __iomem * docptr = doc->virtadr; local 154 DoC_SelectChip(void __iomem * docptr, int chip) argument 161 DoC_SelectFloor(void __iomem * docptr, int floor) argument 244 MemReadDOC(void __iomem * docptr, unsigned char *buf, int len) argument 255 MemWriteDOC(void __iomem * docptr, unsigned char *buf, int len) argument 271 void __iomem * docptr = doc->virtadr; local 581 void __iomem * docptr = this->virtadr; local 700 void __iomem * docptr = this->virtadr; local 735 WriteDOC(DoC_GetDataOffset(mtd, &fto), docptr, Mplus_FlashCmd); local 822 void __iomem * docptr = this->virtadr; local 906 void __iomem * docptr = this->virtadr; local 951 WriteDOC(DoC_GetECCOffset(mtd, &fofs), docptr, Mplus_FlashCmd); local 954 WriteDOC(DoC_GetFlagsOffset(mtd, &fofs), docptr, Mplus_FlashCmd); local 957 WriteDOC(DoC_GetHdrOffset(mtd, &fofs), docptr, Mplus_FlashCmd); local 1014 void __iomem * docptr = this->virtadr; local [all...] |
H A D | doc2001.c | 44 static void DoC_Delay(void __iomem * docptr, unsigned short cycles) argument 50 dummy = ReadDOC(docptr, NOP); 54 static int _DoC_WaitReady(void __iomem * docptr) argument 61 while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B) && --c) 70 static inline int DoC_WaitReady(void __iomem * docptr) argument 77 DoC_Delay(docptr, 4); 79 if (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) 81 ret = _DoC_WaitReady(docptr); 85 DoC_Delay(docptr, 2); 94 static void DoC_Command(void __iomem * docptr, unsigne argument 114 DoC_Address(void __iomem * docptr, int numbytes, unsigned long ofs, unsigned char xtraflags1, unsigned char xtraflags2) argument 152 DoC_SelectChip(void __iomem * docptr, int chip) argument 163 DoC_SelectFloor(void __iomem * docptr, int floor) argument 383 void __iomem *docptr = this->virtadr; local 494 void __iomem *docptr = this->virtadr; local 621 void __iomem *docptr = this->virtadr; local 679 void __iomem *docptr = this->virtadr; local 754 void __iomem *docptr = this->virtadr; local [all...] |
H A D | doc2000.c | 82 void __iomem *docptr = doc->virtadr; local 88 while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) { 106 void __iomem *docptr = doc->virtadr; local 115 if (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) 133 void __iomem *docptr = doc->virtadr; local 139 WriteDOC(xtraflags | CDSN_CTRL_CLE | CDSN_CTRL_CE, docptr, CDSNControl); 143 WriteDOC(command, docptr, CDSNSlowIO); 146 WriteDOC_(command, docptr, doc->ioreg); 148 WriteDOC(command, docptr, WritePipeTerm); 151 WriteDOC(xtraflags | CDSN_CTRL_CE, docptr, CDSNContro 166 void __iomem *docptr = doc->virtadr; local 231 void __iomem *docptr = doc->virtadr; local 260 void __iomem *docptr = doc->virtadr; local 279 void __iomem *docptr = doc->virtadr; local 303 void __iomem *docptr = doc->virtadr; local 598 void __iomem *docptr = this->virtadr; local 743 void __iomem *docptr = this->virtadr; local 981 void __iomem *docptr = this->virtadr; local 1101 void __iomem *docptr = this->virtadr; local [all...] |
H A D | docprobe.c | 223 void __iomem *docptr; local 231 docptr = ioremap(physadr, DOC_IOREMAP_LEN); 233 if (!docptr) 236 if ((ChipID = doccheck(docptr, physadr))) { 240 iounmap(docptr); 247 iounmap(docptr); 253 this->virtadr = docptr; 293 iounmap(docptr);
|
/drivers/mtd/nand/ |
H A D | diskonchip.c | 245 void __iomem *docptr = doc->virtadr; local 252 while ((ReadDOC(docptr, Mplus_FlashControl) & CDSN_CTRL_FR_B_MASK) != CDSN_CTRL_FR_B_MASK) { 261 while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) { 276 void __iomem *docptr = doc->virtadr; local 282 if ((ReadDOC(docptr, Mplus_FlashControl) & CDSN_CTRL_FR_B_MASK) != CDSN_CTRL_FR_B_MASK) 288 if (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) 303 void __iomem *docptr = doc->virtadr; local 307 WriteDOC(datum, docptr, CDSNSlowIO); 308 WriteDOC(datum, docptr, 2k_CDSN_IO); 315 void __iomem *docptr local 330 void __iomem *docptr = doc->virtadr; local 347 void __iomem *docptr = doc->virtadr; local 362 void __iomem *docptr = doc->virtadr; local 383 void __iomem *docptr = doc->virtadr; local 418 void __iomem *docptr = doc->virtadr; local 478 void __iomem *docptr = doc->virtadr; local 489 void __iomem *docptr = doc->virtadr; local 503 void __iomem *docptr = doc->virtadr; local 516 void __iomem *docptr = doc->virtadr; local 533 void __iomem *docptr = doc->virtadr; local 553 void __iomem *docptr = doc->virtadr; local 568 void __iomem *docptr = doc->virtadr; local 586 void __iomem *docptr = doc->virtadr; local 617 void __iomem *docptr = doc->virtadr; local 644 void __iomem *docptr = doc->virtadr; local 671 void __iomem *docptr = doc->virtadr; local 702 void __iomem *docptr = doc->virtadr; local 725 void __iomem *docptr = doc->virtadr; local 830 void __iomem *docptr = doc->virtadr; local 870 void __iomem *docptr = doc->virtadr; local 889 void __iomem *docptr = doc->virtadr; local 909 void __iomem *docptr = doc->virtadr; local 970 void __iomem *docptr = doc->virtadr; local [all...] |