Lines Matching refs:virtadr
62 void __iomem *virtadr; member
224 dummy = ReadDOC(doc->virtadr, NOP); in DoC_Delay()
226 dummy = ReadDOC(doc->virtadr, Mplus_NOP); in DoC_Delay()
228 dummy = ReadDOC(doc->virtadr, DOCStatus); in DoC_Delay()
238 void __iomem *docptr = doc->virtadr; in _DoC_WaitReady()
269 void __iomem *docptr = doc->virtadr; in DoC_WaitReady()
295 void __iomem *docptr = doc->virtadr; in doc2000_write_byte()
307 void __iomem *docptr = doc->virtadr; in doc2000_writebuf()
323 void __iomem *docptr = doc->virtadr; in doc2000_readbuf()
379 void __iomem *docptr = doc->virtadr; in doc200x_ident_chip()
418 void __iomem *docptr = doc->virtadr; in doc2001_write_byte()
428 void __iomem *docptr = doc->virtadr; in doc2001_writebuf()
440 void __iomem *docptr = doc->virtadr; in doc2001_readbuf()
456 void __iomem *docptr = doc->virtadr; in doc2001plus_writebuf()
473 void __iomem *docptr = doc->virtadr; in doc2001plus_readbuf()
505 WriteDOC(value, doc->virtadr, CDSNControl); in doc200x_write_control()
576 WriteDOC(doc->curfloor, doc->virtadr, FloorSelect); in doc200x_exec_op()
577 WriteDOC(doc->curchip, doc->virtadr, CDSNDeviceSelect); in doc200x_exec_op()
593 WriteDOC(0x00, doc->virtadr, Mplus_WritePipeTerm); in doc2001plus_write_pipe_term()
594 WriteDOC(0x00, doc->virtadr, Mplus_WritePipeTerm); in doc2001plus_write_pipe_term()
605 WriteDOC(instr->ctx.cmd.opcode, doc->virtadr, Mplus_FlashCmd); in doc2001plus_exec_instr()
613 WriteDOC(addr, doc->virtadr, Mplus_FlashAddress); in doc2001plus_exec_instr()
617 WriteDOC(0, doc->virtadr, Mplus_FlashControl); in doc2001plus_exec_instr()
652 WriteDOC(DOC_FLASH_CE, doc->virtadr, Mplus_FlashSelect); in doc2001plus_exec_op()
658 WriteDOC(0, doc->virtadr, Mplus_FlashSelect); in doc2001plus_exec_op()
666 void __iomem *docptr = doc->virtadr; in doc200x_enable_hwecc()
684 void __iomem *docptr = doc->virtadr; in doc2001plus_enable_hwecc()
704 void __iomem *docptr = doc->virtadr; in doc200x_calculate_ecc()
764 void __iomem *docptr = doc->virtadr; in doc200x_correct_data()
1237 ReadDOC(doc->virtadr, ChipID); in doc2001_init()
1238 ReadDOC(doc->virtadr, ChipID); in doc2001_init()
1239 ReadDOC(doc->virtadr, ChipID); in doc2001_init()
1240 if (ReadDOC(doc->virtadr, ChipID) != DOC_ChipID_DocMil) { in doc2001_init()
1305 void __iomem *virtadr; in doc_probe() local
1313 virtadr = ioremap(physadr, DOC_IOREMAP_LEN); in doc_probe()
1314 if (!virtadr) { in doc_probe()
1329 save_control = ReadDOC(virtadr, DOCControl); in doc_probe()
1332 WriteDOC(DOC_MODE_CLR_ERR | DOC_MODE_MDWREN | DOC_MODE_RESET, virtadr, DOCControl); in doc_probe()
1333 WriteDOC(DOC_MODE_CLR_ERR | DOC_MODE_MDWREN | DOC_MODE_RESET, virtadr, DOCControl); in doc_probe()
1336 WriteDOC(DOC_MODE_CLR_ERR | DOC_MODE_MDWREN | DOC_MODE_NORMAL, virtadr, DOCControl); in doc_probe()
1337 WriteDOC(DOC_MODE_CLR_ERR | DOC_MODE_MDWREN | DOC_MODE_NORMAL, virtadr, DOCControl); in doc_probe()
1339 ChipID = ReadDOC(virtadr, ChipID); in doc_probe()
1354 ReadDOC(virtadr, Mplus_Power); in doc_probe()
1358 WriteDOC(tmp, virtadr, Mplus_DOCControl); in doc_probe()
1359 WriteDOC(~tmp, virtadr, Mplus_CtrlConfirm); in doc_probe()
1364 WriteDOC(tmp, virtadr, Mplus_DOCControl); in doc_probe()
1365 WriteDOC(~tmp, virtadr, Mplus_CtrlConfirm); in doc_probe()
1368 ChipID = ReadDOC(virtadr, ChipID); in doc_probe()
1388 tmp = ReadDOC_(virtadr, reg) & DOC_TOGGLE_BIT; in doc_probe()
1389 tmpb = ReadDOC_(virtadr, reg) & DOC_TOGGLE_BIT; in doc_probe()
1390 tmpc = ReadDOC_(virtadr, reg) & DOC_TOGGLE_BIT; in doc_probe()
1407 oldval = ReadDOC(doc->virtadr, Mplus_AliasResolution); in doc_probe()
1408 newval = ReadDOC(virtadr, Mplus_AliasResolution); in doc_probe()
1410 oldval = ReadDOC(doc->virtadr, AliasResolution); in doc_probe()
1411 newval = ReadDOC(virtadr, AliasResolution); in doc_probe()
1416 WriteDOC(~newval, virtadr, Mplus_AliasResolution); in doc_probe()
1417 oldval = ReadDOC(doc->virtadr, Mplus_AliasResolution); in doc_probe()
1418 WriteDOC(newval, virtadr, Mplus_AliasResolution); // restore it in doc_probe()
1420 WriteDOC(~newval, virtadr, AliasResolution); in doc_probe()
1421 oldval = ReadDOC(doc->virtadr, AliasResolution); in doc_probe()
1422 WriteDOC(newval, virtadr, AliasResolution); // restore it in doc_probe()
1479 doc->virtadr = virtadr; in doc_probe()
1511 WriteDOC(save_control, virtadr, DOCControl); in doc_probe()
1516 iounmap(virtadr); in doc_probe()
1539 iounmap(doc->virtadr); in release_nanddoc()