Lines Matching refs:port_mmio

121 	void __iomem *port_mmio = uc_priv->port[port].port_mmio;  in ahci_link_up()  local
129 tmp = readl(port_mmio + PORT_SCR_STAT); in ahci_link_up()
141 static void sunxi_dma_init(void __iomem *port_mmio) in sunxi_dma_init() argument
143 clrsetbits_le32(port_mmio + PORT_P0DMACR, 0x0000ff00, 0x00004400); in sunxi_dma_init()
189 void __iomem *port_mmio; in ahci_host_init() local
239 uc_priv->port[i].port_mmio = ahci_port_base(mmio, i); in ahci_host_init()
240 port_mmio = (u8 *)uc_priv->port[i].port_mmio; in ahci_host_init()
244 tmp = readl(port_mmio + PORT_CMD); in ahci_host_init()
250 writel_with_flush(tmp, port_mmio + PORT_CMD); in ahci_host_init()
259 sunxi_dma_init(port_mmio); in ahci_host_init()
265 cmd = readl(port_mmio + PORT_CMD); in ahci_host_init()
267 writel_with_flush(cmd, port_mmio + PORT_CMD); in ahci_host_init()
279 tmp = readl(port_mmio + PORT_SCR_ERR); in ahci_host_init()
281 writel(tmp, port_mmio + PORT_SCR_ERR); in ahci_host_init()
287 tmp = readl(port_mmio + PORT_TFDATA); in ahci_host_init()
291 tmp = readl(port_mmio + PORT_SCR_STAT); in ahci_host_init()
298 tmp = readl(port_mmio + PORT_SCR_STAT) & PORT_SCR_STAT_DET_MASK; in ahci_host_init()
311 tmp = readl(port_mmio + PORT_SCR_ERR); in ahci_host_init()
313 writel(tmp, port_mmio + PORT_SCR_ERR); in ahci_host_init()
316 tmp = readl(port_mmio + PORT_IRQ_STAT); in ahci_host_init()
319 writel(tmp, port_mmio + PORT_IRQ_STAT); in ahci_host_init()
324 tmp = readl(port_mmio + PORT_SCR_STAT); in ahci_host_init()
542 static int wait_spinup(void __iomem *port_mmio) in wait_spinup() argument
549 tf_data = readl(port_mmio + PORT_TFDATA); in wait_spinup()
560 void __iomem *port_mmio = pp->port_mmio; in ahci_port_start() local
565 port_status = readl(port_mmio + PORT_SCR_STAT); in ahci_port_start()
610 port_mmio + PORT_LST_ADDR); in ahci_port_start()
612 writel_with_flush(pp->rx_fis, port_mmio + PORT_FIS_ADDR); in ahci_port_start()
615 sunxi_dma_init(port_mmio); in ahci_port_start()
620 PORT_CMD_START, port_mmio + PORT_CMD); in ahci_port_start()
628 return wait_spinup(port_mmio); in ahci_port_start()
637 void __iomem *port_mmio = pp->port_mmio; in ahci_device_data_io() local
649 port_status = readl(port_mmio + PORT_SCR_STAT); in ahci_device_data_io()
664 writel_with_flush(1, port_mmio + PORT_CMD_ISSUE); in ahci_device_data_io()
666 if (waiting_for_cmd_completed(port_mmio + PORT_CMD_ISSUE, in ahci_device_data_io()
1116 void __iomem *port_mmio = pp->port_mmio; in ata_io_flush() local
1128 writel_with_flush(1, port_mmio + PORT_CMD_ISSUE); in ata_io_flush()
1130 if (waiting_for_cmd_completed(port_mmio + PORT_CMD_ISSUE, in ata_io_flush()