Lines Matching refs:al_pcie

48 	struct al_pcie_acpi *al_pcie;  in al_pcie_init()  local
52 al_pcie = devm_kzalloc(dev, sizeof(*al_pcie), GFP_KERNEL); in al_pcie_init()
53 if (!al_pcie) in al_pcie_init()
69 al_pcie->dbi_base = devm_pci_remap_cfg_resource(dev, res); in al_pcie_init()
70 if (IS_ERR(al_pcie->dbi_base)) in al_pcie_init()
71 return PTR_ERR(al_pcie->dbi_base); in al_pcie_init()
73 cfg->priv = al_pcie; in al_pcie_init()
130 struct al_pcie { struct
142 static inline u32 al_pcie_controller_readl(struct al_pcie *pcie, u32 offset) in al_pcie_controller_readl() argument
147 static inline void al_pcie_controller_writel(struct al_pcie *pcie, u32 offset, in al_pcie_controller_writel()
153 static int al_pcie_rev_id_get(struct al_pcie *pcie, unsigned int *rev_id) in al_pcie_rev_id_get()
184 static int al_pcie_reg_offsets_set(struct al_pcie *pcie) in al_pcie_reg_offsets_set()
203 static inline void al_pcie_target_bus_set(struct al_pcie *pcie, in al_pcie_target_bus_set()
221 struct al_pcie *pcie = to_al_pcie(to_dw_pcie_from_pp(pp)); in al_pcie_conf_addr_map_bus()
245 static int al_pcie_config_prepare(struct al_pcie *pcie) in al_pcie_config_prepare()
303 struct al_pcie *pcie = to_al_pcie(pci); in al_pcie_host_init()
332 struct al_pcie *al_pcie; in al_pcie_probe() local
335 al_pcie = devm_kzalloc(dev, sizeof(*al_pcie), GFP_KERNEL); in al_pcie_probe()
336 if (!al_pcie) in al_pcie_probe()
346 al_pcie->pci = pci; in al_pcie_probe()
347 al_pcie->dev = dev; in al_pcie_probe()
354 al_pcie->ecam_size = resource_size(ecam_res); in al_pcie_probe()
358 al_pcie->controller_base = devm_ioremap_resource(dev, controller_res); in al_pcie_probe()
359 if (IS_ERR(al_pcie->controller_base)) { in al_pcie_probe()
362 return PTR_ERR(al_pcie->controller_base); in al_pcie_probe()
367 platform_set_drvdata(pdev, al_pcie); in al_pcie_probe()