• Home
  • Raw
  • Download

Lines Matching refs:vbase

194 	void __iomem *vbase;  member
230 dev_dbg(dev, ": CFI_STS: %x", readl(acdev->vbase + CFI_STS)); in cf_dumpregs()
231 dev_dbg(dev, ": IRQ_STS: %x", readl(acdev->vbase + IRQ_STS)); in cf_dumpregs()
232 dev_dbg(dev, ": IRQ_EN: %x", readl(acdev->vbase + IRQ_EN)); in cf_dumpregs()
233 dev_dbg(dev, ": OP_MODE: %x", readl(acdev->vbase + OP_MODE)); in cf_dumpregs()
234 dev_dbg(dev, ": CLK_CFG: %x", readl(acdev->vbase + CLK_CFG)); in cf_dumpregs()
235 dev_dbg(dev, ": TM_CFG: %x", readl(acdev->vbase + TM_CFG)); in cf_dumpregs()
236 dev_dbg(dev, ": XFER_CTR: %x", readl(acdev->vbase + XFER_CTR)); in cf_dumpregs()
237 dev_dbg(dev, ": GIRQ_STS: %x", readl(acdev->vbase + GIRQ_STS)); in cf_dumpregs()
238 dev_dbg(dev, ": GIRQ_STS_EN: %x", readl(acdev->vbase + GIRQ_STS_EN)); in cf_dumpregs()
239 dev_dbg(dev, ": GIRQ_SGN_EN: %x", readl(acdev->vbase + GIRQ_SGN_EN)); in cf_dumpregs()
247 writel(enable, acdev->vbase + GIRQ_STS_EN); in cf_ginterrupt_enable()
248 writel(enable, acdev->vbase + GIRQ_SGN_EN); in cf_ginterrupt_enable()
255 u32 val = readl(acdev->vbase + IRQ_EN); in cf_interrupt_enable()
258 writel(mask, acdev->vbase + IRQ_STS); in cf_interrupt_enable()
259 writel(val | mask, acdev->vbase + IRQ_EN); in cf_interrupt_enable()
261 writel(val & ~mask, acdev->vbase + IRQ_EN); in cf_interrupt_enable()
266 u32 val = readl(acdev->vbase + OP_MODE); in cf_card_reset()
268 writel(val | CARD_RESET, acdev->vbase + OP_MODE); in cf_card_reset()
270 writel(val & ~CARD_RESET, acdev->vbase + OP_MODE); in cf_card_reset()
275 writel(readl(acdev->vbase + OP_MODE) & ~CFHOST_ENB, in cf_ctrl_reset()
276 acdev->vbase + OP_MODE); in cf_ctrl_reset()
277 writel(readl(acdev->vbase + OP_MODE) | CFHOST_ENB, in cf_ctrl_reset()
278 acdev->vbase + OP_MODE); in cf_ctrl_reset()
285 u32 val = readl(acdev->vbase + CFI_STS); in cf_card_detect()
332 writel(if_clk, acdev->vbase + CLK_CFG); in cf_init()
334 writel(TRUE_IDE_MODE | CFHOST_ENB, acdev->vbase + OP_MODE); in cf_init()
350 writel(readl(acdev->vbase + OP_MODE) & ~CFHOST_ENB, in cf_exit()
351 acdev->vbase + OP_MODE); in cf_exit()
457 xfer_ctr = readl(acdev->vbase + XFER_CTR) & in sg_xfer()
460 acdev->vbase + XFER_CTR); in sg_xfer()
499 writel(readl(acdev->vbase + XFER_CTR) & ~XFER_START, in sg_xfer()
500 acdev->vbase + XFER_CTR); in sg_xfer()
599 irqsts = readl(acdev->vbase + GIRQ_STS); in arasan_cf_interrupt()
604 irqsts = readl(acdev->vbase + IRQ_STS); in arasan_cf_interrupt()
605 writel(irqsts, acdev->vbase + IRQ_STS); /* clear irqs */ in arasan_cf_interrupt()
606 writel(GIRQ_CF, acdev->vbase + GIRQ_STS); /* clear girqs */ in arasan_cf_interrupt()
619 writel(readl(acdev->vbase + XFER_CTR) & ~XFER_START, in arasan_cf_interrupt()
620 acdev->vbase + XFER_CTR); in arasan_cf_interrupt()
650 writel(readl(acdev->vbase + XFER_CTR) & ~XFER_START, in arasan_cf_freeze()
651 acdev->vbase + XFER_CTR); in arasan_cf_freeze()
678 u32 xfer_ctr = readl(acdev->vbase + XFER_CTR) & ~XFER_DIR_MASK; in arasan_cf_dma_start()
682 writel(xfer_ctr, acdev->vbase + XFER_CTR); in arasan_cf_dma_start()
736 val = readl(acdev->vbase + OP_MODE) & in arasan_cf_set_piomode()
738 writel(val, acdev->vbase + OP_MODE); in arasan_cf_set_piomode()
739 val = readl(acdev->vbase + TM_CFG) & ~TRUEIDE_PIO_TIMING_MASK; in arasan_cf_set_piomode()
741 writel(val, acdev->vbase + TM_CFG); in arasan_cf_set_piomode()
755 opmode = readl(acdev->vbase + OP_MODE) & in arasan_cf_set_dmamode()
757 tmcfg = readl(acdev->vbase + TM_CFG); in arasan_cf_set_dmamode()
774 writel(opmode, acdev->vbase + OP_MODE); in arasan_cf_set_dmamode()
775 writel(tmcfg, acdev->vbase + TM_CFG); in arasan_cf_set_dmamode()
776 writel(DMA_XFER_MODE, acdev->vbase + XFER_CTR); in arasan_cf_set_dmamode()
837 acdev->vbase = devm_ioremap(&pdev->dev, res->start, in arasan_cf_probe()
839 if (!acdev->vbase) { in arasan_cf_probe()
884 ap->ioaddr.cmd_addr = acdev->vbase + ATA_DATA_PORT; in arasan_cf_probe()
885 ap->ioaddr.data_addr = acdev->vbase + ATA_DATA_PORT; in arasan_cf_probe()
886 ap->ioaddr.error_addr = acdev->vbase + ATA_ERR_FTR; in arasan_cf_probe()
887 ap->ioaddr.feature_addr = acdev->vbase + ATA_ERR_FTR; in arasan_cf_probe()
888 ap->ioaddr.nsect_addr = acdev->vbase + ATA_SC; in arasan_cf_probe()
889 ap->ioaddr.lbal_addr = acdev->vbase + ATA_SN; in arasan_cf_probe()
890 ap->ioaddr.lbam_addr = acdev->vbase + ATA_CL; in arasan_cf_probe()
891 ap->ioaddr.lbah_addr = acdev->vbase + ATA_CH; in arasan_cf_probe()
892 ap->ioaddr.device_addr = acdev->vbase + ATA_SH; in arasan_cf_probe()
893 ap->ioaddr.status_addr = acdev->vbase + ATA_STS_CMD; in arasan_cf_probe()
894 ap->ioaddr.command_addr = acdev->vbase + ATA_STS_CMD; in arasan_cf_probe()
895 ap->ioaddr.altstatus_addr = acdev->vbase + ATA_ASTS_DCTR; in arasan_cf_probe()
896 ap->ioaddr.ctl_addr = acdev->vbase + ATA_ASTS_DCTR; in arasan_cf_probe()
899 (unsigned long long) res->start, acdev->vbase); in arasan_cf_probe()