Lines Matching refs:mvebu_readl
113 static inline u32 mvebu_readl(struct mvebu_pcie_port *port, u32 reg) in mvebu_readl() function
125 return !(mvebu_readl(port, PCIE_STAT_OFF) & PCIE_STAT_LINK_DOWN); in mvebu_pcie_link_up()
132 stat = mvebu_readl(port, PCIE_STAT_OFF); in mvebu_pcie_set_local_bus_nr()
142 stat = mvebu_readl(port, PCIE_STAT_OFF); in mvebu_pcie_set_local_dev_nr()
222 cmd = mvebu_readl(port, PCIE_CMD_OFF); in mvebu_pcie_setup_hw()
229 mask = mvebu_readl(port, PCIE_MASK_OFF); in mvebu_pcie_setup_hw()
441 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_DEVCAP); in mvebu_pci_bridge_emul_pcie_conf_read()
445 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_DEVCTL) & in mvebu_pci_bridge_emul_pcie_conf_read()
455 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP) & in mvebu_pci_bridge_emul_pcie_conf_read()
460 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_pci_bridge_emul_pcie_conf_read()
468 *value = mvebu_readl(port, PCIE_RC_RTSTA); in mvebu_pci_bridge_emul_pcie_conf_read()
576 u32 pcie_cap = mvebu_readl(port, PCIE_CAP_PCIEXP); in mvebu_pci_bridge_emul_init()
580 bridge->conf.device = mvebu_readl(port, PCIE_DEV_ID_OFF) >> 16; in mvebu_pci_bridge_emul_init()
582 mvebu_readl(port, PCIE_DEV_REV_OFF) & 0xff; in mvebu_pci_bridge_emul_init()
792 port->saved_pcie_stat = mvebu_readl(port, PCIE_STAT_OFF); in mvebu_pcie_suspend()