Searched refs:writel_with_flush (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/drivers/ata/ |
H A D | ahci.c | 35 #define writel_with_flush(a,b) do { writel(a,b); readl(b); } while (0) macro 154 writel_with_flush(tmp | HOST_RESET, host_ctl_reg); in ahci_reset() 202 writel_with_flush(HOST_AHCI_EN, mmio + HOST_CTL); in ahci_host_init() 204 writel_with_flush(0xf, mmio + HOST_PORTS_IMPL); in ahci_host_init() 252 writel_with_flush(tmp, port_mmio + PORT_CMD); in ahci_host_init() 269 writel_with_flush(cmd, port_mmio + PORT_CMD); in ahci_host_init() 611 writel_with_flush((unsigned long)pp->cmd_slot, in ahci_port_start() 614 writel_with_flush(pp->rx_fis, port_mmio + PORT_FIS_ADDR); in ahci_port_start() 620 writel_with_flush(PORT_CMD_ICC_ACTIVE | PORT_CMD_FIS_RX | in ahci_port_start() 666 writel_with_flush(1, port_mmio + PORT_CMD_ISSUE); in ahci_device_data_io() [all …]
|
H A D | dwc_ahsata.c | 80 #define writel_with_flush(a, b) do { writel(a, b); readl(b); } while (0) macro 126 writel_with_flush(tmp | SATA_HOST_GHC_HR, &host_mmio->ghc); in ahci_host_init() 141 writel_with_flush(SATA_HOST_GHC_AE, &host_mmio->ghc); in ahci_host_init() 144 writel_with_flush((1 << num_ports) - 1, &host_mmio->pi); in ahci_host_init() 181 writel_with_flush(tmp, &port_mmio->cmd); in ahci_host_init() 401 writel_with_flush(1 << cmd_slot, &port_mmio->ci); in ahci_exec_ata_cmd() 482 writel_with_flush(0x00004444, &port_mmio->dmacr); in ahci_port_start() 484 writel_with_flush((u32)pp->cmd_slot, &port_mmio->clb); in ahci_port_start() 485 writel_with_flush(pp->rx_fis, &port_mmio->fb); in ahci_port_start() 488 writel_with_flush((SATA_PORT_CMD_FRE | readl(&port_mmio->cmd)), in ahci_port_start() [all …]
|