artpec6_pcie       94 drivers/pci/controller/dwc/pcie-artpec6.c static u32 artpec6_pcie_readl(struct artpec6_pcie *artpec6_pcie, u32 offset)
artpec6_pcie       98 drivers/pci/controller/dwc/pcie-artpec6.c 	regmap_read(artpec6_pcie->regmap, offset, &val);
artpec6_pcie      102 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_writel(struct artpec6_pcie *artpec6_pcie, u32 offset, u32 val)
artpec6_pcie      104 drivers/pci/controller/dwc/pcie-artpec6.c 	regmap_write(artpec6_pcie->regmap, offset, val);
artpec6_pcie      109 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
artpec6_pcie      113 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->mode) {
artpec6_pcie      126 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
artpec6_pcie      129 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      131 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      138 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
artpec6_pcie      141 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      143 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      152 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_wait_for_phy_a6(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      154 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      162 drivers/pci/controller/dwc/pcie-artpec6.c 		val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      172 drivers/pci/controller/dwc/pcie-artpec6.c 		val = readl(artpec6_pcie->phy_base + PHY_STATUS);
artpec6_pcie      179 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_wait_for_phy_a7(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      181 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      190 drivers/pci/controller/dwc/pcie-artpec6.c 		val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      200 drivers/pci/controller/dwc/pcie-artpec6.c 		phy_status_tx = readw(artpec6_pcie->phy_base + PHY_TX_ASIC_OUT);
artpec6_pcie      201 drivers/pci/controller/dwc/pcie-artpec6.c 		phy_status_rx = readw(artpec6_pcie->phy_base + PHY_RX_ASIC_OUT);
artpec6_pcie      209 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_wait_for_phy(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      211 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->variant) {
artpec6_pcie      213 drivers/pci/controller/dwc/pcie-artpec6.c 		artpec6_pcie_wait_for_phy_a6(artpec6_pcie);
artpec6_pcie      216 drivers/pci/controller/dwc/pcie-artpec6.c 		artpec6_pcie_wait_for_phy_a7(artpec6_pcie);
artpec6_pcie      221 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_init_phy_a6(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      225 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      233 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      236 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      238 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, NOCCFG, val);
artpec6_pcie      241 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      243 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      246 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      248 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, NOCCFG, val);
artpec6_pcie      251 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_init_phy_a7(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      253 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      258 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIESTAT);
artpec6_pcie      263 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      270 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      273 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      275 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, NOCCFG, val);
artpec6_pcie      278 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, NOCCFG);
artpec6_pcie      280 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, NOCCFG, val);
artpec6_pcie      283 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_init_phy(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      285 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->variant) {
artpec6_pcie      287 drivers/pci/controller/dwc/pcie-artpec6.c 		artpec6_pcie_init_phy_a6(artpec6_pcie);
artpec6_pcie      290 drivers/pci/controller/dwc/pcie-artpec6.c 		artpec6_pcie_init_phy_a7(artpec6_pcie);
artpec6_pcie      295 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_set_nfts(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      297 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      300 drivers/pci/controller/dwc/pcie-artpec6.c 	if (artpec6_pcie->variant != ARTPEC7)
artpec6_pcie      322 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_assert_core_reset(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      326 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      327 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->variant) {
artpec6_pcie      335 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      338 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_deassert_core_reset(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      342 drivers/pci/controller/dwc/pcie-artpec6.c 	val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      343 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->variant) {
artpec6_pcie      351 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      355 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_enable_interrupts(struct artpec6_pcie *artpec6_pcie)
artpec6_pcie      357 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      367 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
artpec6_pcie      369 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_assert_core_reset(artpec6_pcie);
artpec6_pcie      370 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_init_phy(artpec6_pcie);
artpec6_pcie      371 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_deassert_core_reset(artpec6_pcie);
artpec6_pcie      372 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_wait_for_phy(artpec6_pcie);
artpec6_pcie      373 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_set_nfts(artpec6_pcie);
artpec6_pcie      377 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_enable_interrupts(artpec6_pcie);
artpec6_pcie      386 drivers/pci/controller/dwc/pcie-artpec6.c static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie,
artpec6_pcie      389 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      416 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
artpec6_pcie      419 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_assert_core_reset(artpec6_pcie);
artpec6_pcie      420 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_init_phy(artpec6_pcie);
artpec6_pcie      421 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_deassert_core_reset(artpec6_pcie);
artpec6_pcie      422 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_wait_for_phy(artpec6_pcie);
artpec6_pcie      423 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie_set_nfts(artpec6_pcie);
artpec6_pcie      452 drivers/pci/controller/dwc/pcie-artpec6.c static int artpec6_add_pcie_ep(struct artpec6_pcie *artpec6_pcie,
artpec6_pcie      459 drivers/pci/controller/dwc/pcie-artpec6.c 	struct dw_pcie *pci = artpec6_pcie->pci;
artpec6_pcie      489 drivers/pci/controller/dwc/pcie-artpec6.c 	struct artpec6_pcie *artpec6_pcie;
artpec6_pcie      506 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie = devm_kzalloc(dev, sizeof(*artpec6_pcie), GFP_KERNEL);
artpec6_pcie      507 drivers/pci/controller/dwc/pcie-artpec6.c 	if (!artpec6_pcie)
artpec6_pcie      517 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie->pci = pci;
artpec6_pcie      518 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie->variant = variant;
artpec6_pcie      519 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie->mode = mode;
artpec6_pcie      527 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie->phy_base = devm_ioremap_resource(dev, phy_base);
artpec6_pcie      528 drivers/pci/controller/dwc/pcie-artpec6.c 	if (IS_ERR(artpec6_pcie->phy_base))
artpec6_pcie      529 drivers/pci/controller/dwc/pcie-artpec6.c 		return PTR_ERR(artpec6_pcie->phy_base);
artpec6_pcie      531 drivers/pci/controller/dwc/pcie-artpec6.c 	artpec6_pcie->regmap =
artpec6_pcie      534 drivers/pci/controller/dwc/pcie-artpec6.c 	if (IS_ERR(artpec6_pcie->regmap))
artpec6_pcie      535 drivers/pci/controller/dwc/pcie-artpec6.c 		return PTR_ERR(artpec6_pcie->regmap);
artpec6_pcie      537 drivers/pci/controller/dwc/pcie-artpec6.c 	platform_set_drvdata(pdev, artpec6_pcie);
artpec6_pcie      539 drivers/pci/controller/dwc/pcie-artpec6.c 	switch (artpec6_pcie->mode) {
artpec6_pcie      544 drivers/pci/controller/dwc/pcie-artpec6.c 		ret = artpec6_add_pcie_port(artpec6_pcie, pdev);
artpec6_pcie      554 drivers/pci/controller/dwc/pcie-artpec6.c 		val = artpec6_pcie_readl(artpec6_pcie, PCIECFG);
artpec6_pcie      556 drivers/pci/controller/dwc/pcie-artpec6.c 		artpec6_pcie_writel(artpec6_pcie, PCIECFG, val);
artpec6_pcie      557 drivers/pci/controller/dwc/pcie-artpec6.c 		ret = artpec6_add_pcie_ep(artpec6_pcie, pdev);
artpec6_pcie      563 drivers/pci/controller/dwc/pcie-artpec6.c 		dev_err(dev, "INVALID device type %d\n", artpec6_pcie->mode);