Lines Matching refs:host_regs

51 	void __iomem *host_regs;  member
73 writeb(3, priv->host_regs + PATA_IMX_ATA_TIME_OFF); in pata_imx_set_timing()
74 writeb(3, priv->host_regs + PATA_IMX_ATA_TIME_ON); in pata_imx_set_timing()
75 writeb(timing.setup, priv->host_regs + PATA_IMX_ATA_TIME_1); in pata_imx_set_timing()
76 writeb(timing.act8b, priv->host_regs + PATA_IMX_ATA_TIME_2W); in pata_imx_set_timing()
77 writeb(timing.act8b, priv->host_regs + PATA_IMX_ATA_TIME_2R); in pata_imx_set_timing()
78 writeb(1, priv->host_regs + PATA_IMX_ATA_TIME_PIO_RDX); in pata_imx_set_timing()
80 writeb(pio_t4[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_4); in pata_imx_set_timing()
81 writeb(pio_t9[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_9); in pata_imx_set_timing()
82 writeb(pio_tA[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_AX); in pata_imx_set_timing()
92 val = __raw_readl(priv->host_regs + PATA_IMX_ATA_CONTROL); in pata_imx_set_piomode()
97 __raw_writel(val, priv->host_regs + PATA_IMX_ATA_CONTROL); in pata_imx_set_piomode()
161 priv->host_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &io_res); in pata_imx_probe()
162 if (IS_ERR(priv->host_regs)) in pata_imx_probe()
163 return PTR_ERR(priv->host_regs); in pata_imx_probe()
165 ap->ioaddr.cmd_addr = priv->host_regs + PATA_IMX_DRIVE_DATA; in pata_imx_probe()
166 ap->ioaddr.ctl_addr = priv->host_regs + PATA_IMX_DRIVE_CONTROL; in pata_imx_probe()
179 priv->host_regs + PATA_IMX_ATA_CONTROL); in pata_imx_probe()
182 priv->host_regs + PATA_IMX_ATA_INT_EN); in pata_imx_probe()
201 __raw_writel(0, priv->host_regs + PATA_IMX_ATA_INT_EN); in pata_imx_remove()
212 __raw_writel(0, priv->host_regs + PATA_IMX_ATA_INT_EN); in pata_imx_suspend()
213 priv->ata_ctl = __raw_readl(priv->host_regs + PATA_IMX_ATA_CONTROL); in pata_imx_suspend()
228 __raw_writel(priv->ata_ctl, priv->host_regs + PATA_IMX_ATA_CONTROL); in pata_imx_resume()
231 priv->host_regs + PATA_IMX_ATA_INT_EN); in pata_imx_resume()