Lines Matching refs:pcie

30 	struct cdns_pcie	pcie;  member
46 struct cdns_pcie *pcie = &rc->pcie; in cdns_pci_map_bus() local
59 return pcie->reg_base + (where & 0xfff); in cdns_pci_map_bus()
62 if (!(cdns_pcie_readl(pcie, CDNS_PCIE_LM_BASE) & 0x1)) in cdns_pci_map_bus()
65 cdns_pcie_writel(pcie, CDNS_PCIE_AT_LINKDOWN, 0x0); in cdns_pci_map_bus()
71 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR0(0), addr0); in cdns_pci_map_bus()
84 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC0(0), desc0); in cdns_pci_map_bus()
103 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_init_root_port() local
122 cdns_pcie_writel(pcie, CDNS_PCIE_LM_RC_BAR_CFG, value); in cdns_pcie_host_init_root_port()
128 cdns_pcie_writel(pcie, CDNS_PCIE_LM_ID, id); in cdns_pcie_host_init_root_port()
132 cdns_pcie_rp_writew(pcie, PCI_DEVICE_ID, rc->device_id); in cdns_pcie_host_init_root_port()
134 cdns_pcie_rp_writeb(pcie, PCI_CLASS_REVISION, 0); in cdns_pcie_host_init_root_port()
135 cdns_pcie_rp_writeb(pcie, PCI_CLASS_PROG, 0); in cdns_pcie_host_init_root_port()
136 cdns_pcie_rp_writew(pcie, PCI_CLASS_DEVICE, PCI_CLASS_BRIDGE_PCI); in cdns_pcie_host_init_root_port()
143 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_init_address_translation() local
145 struct resource *mem_res = pcie->mem_res; in cdns_pcie_host_init_address_translation()
162 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(0), addr1); in cdns_pcie_host_init_address_translation()
163 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC1(0), desc1); in cdns_pcie_host_init_address_translation()
169 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR0(0), addr0); in cdns_pcie_host_init_address_translation()
170 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(0), addr1); in cdns_pcie_host_init_address_translation()
190 cdns_pcie_set_outbound_region(pcie, 0, r, is_io, in cdns_pcie_host_init_address_translation()
205 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR0(RP_NO_BAR), addr0); in cdns_pcie_host_init_address_translation()
206 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR1(RP_NO_BAR), addr1); in cdns_pcie_host_init_address_translation()
224 rc->pcie.bus = bus_range->start; in cdns_pcie_host_init()
249 struct cdns_pcie *pcie; in cdns_pcie_host_probe() local
261 pcie = &rc->pcie; in cdns_pcie_host_probe()
262 pcie->is_rc = true; in cdns_pcie_host_probe()
283 pcie->reg_base = devm_ioremap_resource(dev, res); in cdns_pcie_host_probe()
284 if (IS_ERR(pcie->reg_base)) { in cdns_pcie_host_probe()
286 return PTR_ERR(pcie->reg_base); in cdns_pcie_host_probe()
302 pcie->mem_res = res; in cdns_pcie_host_probe()
304 ret = cdns_pcie_init_phy(dev, pcie); in cdns_pcie_host_probe()
309 platform_set_drvdata(pdev, pcie); in cdns_pcie_host_probe()
324 bridge->busnr = pcie->bus; in cdns_pcie_host_probe()
343 cdns_pcie_disable_phy(pcie); in cdns_pcie_host_probe()
344 phy_count = pcie->phy_count; in cdns_pcie_host_probe()
346 device_link_del(pcie->link[phy_count]); in cdns_pcie_host_probe()
354 struct cdns_pcie *pcie = dev_get_drvdata(dev); in cdns_pcie_shutdown() local
362 cdns_pcie_disable_phy(pcie); in cdns_pcie_shutdown()