Home
last modified time | relevance | path

Searched refs:docptr (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/drivers/mtd/devices/
Ddoc2001.c52 static void DoC_Delay(unsigned long docptr, unsigned short cycles) in DoC_Delay() argument
58 dummy = ReadDOC(docptr, NOP); in DoC_Delay()
62 static int _DoC_WaitReady(unsigned long docptr) in _DoC_WaitReady() argument
70 while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B) && --c) in _DoC_WaitReady()
79 static inline int DoC_WaitReady(unsigned long docptr) in DoC_WaitReady() argument
86 DoC_Delay(docptr, 4); in DoC_WaitReady()
88 if (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) in DoC_WaitReady()
90 ret = _DoC_WaitReady(docptr); in DoC_WaitReady()
94 DoC_Delay(docptr, 2); in DoC_WaitReady()
103 static inline void DoC_Command(unsigned long docptr, unsigned char command, in DoC_Command() argument
[all …]
Ddoc2000.c87 unsigned long docptr = doc->virtadr; in _DoC_WaitReady() local
94 while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) { in _DoC_WaitReady()
108 unsigned long docptr = doc->virtadr; in DoC_WaitReady() local
116 if (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) in DoC_WaitReady()
134 unsigned long docptr = doc->virtadr; in DoC_Command() local
140 WriteDOC(xtraflags | CDSN_CTRL_CLE | CDSN_CTRL_CE, docptr, CDSNControl); in DoC_Command()
144 WriteDOC(command, docptr, CDSNSlowIO); in DoC_Command()
147 WriteDOC_(command, docptr, doc->ioreg); in DoC_Command()
150 WriteDOC(xtraflags | CDSN_CTRL_CE, docptr, CDSNControl); in DoC_Command()
164 unsigned long docptr; in DoC_Address() local
[all …]
Ddocprobe.c187 unsigned long docptr; in DoC_Probe() local
197 docptr = (unsigned long)ioremap(physadr, DOC_IOREMAP_LEN); in DoC_Probe()
199 if (!docptr) in DoC_Probe()
202 if ((ChipID = doccheck(docptr, physadr))) { in DoC_Probe()
208 iounmap((void *)docptr); in DoC_Probe()
218 this->virtadr = docptr; in DoC_Probe()
252 iounmap((void *)docptr); in DoC_Probe()