Lines Matching refs:port_mmio

123 	struct sata_port_regs *port_mmio = NULL;  in ahci_host_init()  local
169 uc_priv->port[i].port_mmio = ahci_port_base(host_mmio, i); in ahci_host_init()
170 port_mmio = uc_priv->port[i].port_mmio; in ahci_host_init()
173 tmp = readl(&port_mmio->cmd); in ahci_host_init()
188 writel_with_flush(tmp, &port_mmio->cmd); in ahci_host_init()
197 while ((readl(&port_mmio->cmd) & SATA_PORT_CMD_CR) in ahci_host_init()
208 tmp = readl(&port_mmio->cmd); in ahci_host_init()
209 writel((tmp | SATA_PORT_CMD_SUD), &port_mmio->cmd); in ahci_host_init()
213 while (!(readl(&port_mmio->cmd) | SATA_PORT_CMD_SUD) in ahci_host_init()
223 tmp = readl(&port_mmio->ssts); in ahci_host_init()
231 while (!(readl(&port_mmio->serr) & SATA_PORT_SERR_DIAG_X) in ahci_host_init()
244 tmp = readl(&port_mmio->serr); in ahci_host_init()
247 writel(tmp, &port_mmio->serr); in ahci_host_init()
258 writel(DEF_PORT_IRQ, &port_mmio->ie); in ahci_host_init()
261 tmp = readl(&port_mmio->ssts); in ahci_host_init()
380 struct sata_port_regs *port_mmio = pp->port_mmio; in ahci_exec_ata_cmd() local
384 cmd_slot = AHCI_GET_CMD_SLOT(readl(&port_mmio->ci)); in ahci_exec_ata_cmd()
408 writel_with_flush(1 << cmd_slot, &port_mmio->ci); in ahci_exec_ata_cmd()
410 if (waiting_for_cmd_completed((u8 *)&port_mmio->ci, 10000, in ahci_exec_ata_cmd()
443 struct sata_port_regs *port_mmio = pp->port_mmio; in ahci_port_start() local
449 port_status = readl(&port_mmio->ssts); in ahci_port_start()
488 writel_with_flush(0x00004444, &port_mmio->dmacr); in ahci_port_start()
490 writel_with_flush((u32)pp->cmd_slot, &port_mmio->clb); in ahci_port_start()
491 writel_with_flush(pp->rx_fis, &port_mmio->fb); in ahci_port_start()
494 writel_with_flush((SATA_PORT_CMD_FRE | readl(&port_mmio->cmd)), in ahci_port_start()
495 &port_mmio->cmd); in ahci_port_start()
498 while ((readl(&port_mmio->tfd) & (SATA_PORT_TFD_STS_ERR | in ahci_port_start()
510 PORT_CMD_START, &port_mmio->cmd); in ahci_port_start()
934 struct sata_port_regs *port_mmio; in sata_port_status() local
944 port_mmio = uc_priv->port[port].port_mmio; in sata_port_status()
946 return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK; in sata_port_status()
982 struct sata_port_regs *port_mmio; in dwc_ahsata_port_status() local
984 port_mmio = uc_priv->port[port].port_mmio; in dwc_ahsata_port_status()
985 return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK ? 0 : -ENXIO; in dwc_ahsata_port_status()