Lines Matching refs:pci

64 	struct dw_pcie *pci;  member
77 struct dw_pcie *pci = pcie->pci; in ls_pcie_is_bridge() local
80 header_type = ioread8(pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_is_bridge()
89 struct dw_pcie *pci = pcie->pci; in ls_pcie_clear_multifunction() local
91 iowrite8(PCI_HEADER_TYPE_BRIDGE, pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_clear_multifunction()
98 struct dw_pcie *pci = pcie->pci; in ls_pcie_drop_msg_tlp() local
100 val = ioread32(pci->dbi_base + PCIE_STRFMR1); in ls_pcie_drop_msg_tlp()
102 iowrite32(val, pci->dbi_base + PCIE_STRFMR1); in ls_pcie_drop_msg_tlp()
108 struct dw_pcie *pci = pcie->pci; in ls_pcie_fix_error_response() local
110 iowrite32(PCIE_ABSERR_SETTING, pci->dbi_base + PCIE_ABSERR); in ls_pcie_fix_error_response()
131 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_send_turnoff_msg() local
132 struct ls_pcie *pcie = to_ls_pcie(pci); in ls_pcie_send_turnoff_msg()
145 dev_err(pcie->pci->dev, "PME_Turn_off timeout\n"); in ls_pcie_send_turnoff_msg()
150 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_exit_from_l2() local
151 struct ls_pcie *pcie = to_ls_pcie(pci); in ls_pcie_exit_from_l2()
172 dev_err(pcie->pci->dev, "L2 exit timeout\n"); in ls_pcie_exit_from_l2()
179 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_host_init() local
180 struct ls_pcie *pcie = to_ls_pcie(pci); in ls_pcie_host_init()
184 dw_pcie_dbi_ro_wr_en(pci); in ls_pcie_host_init()
186 dw_pcie_dbi_ro_wr_dis(pci); in ls_pcie_host_init()
213 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021a_pcie_send_turnoff_msg() local
214 struct ls_pcie *pcie = to_ls_pcie(pci); in ls1021a_pcie_send_turnoff_msg()
230 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021a_pcie_exit_from_l2() local
231 struct ls_pcie *pcie = to_ls_pcie(pci); in ls1021a_pcie_exit_from_l2()
238 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1043a_pcie_send_turnoff_msg() local
239 struct ls_pcie *pcie = to_ls_pcie(pci); in ls1043a_pcie_send_turnoff_msg()
246 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1043a_pcie_exit_from_l2() local
247 struct ls_pcie *pcie = to_ls_pcie(pci); in ls1043a_pcie_exit_from_l2()
328 struct dw_pcie *pci; in ls_pcie_probe() local
338 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL); in ls_pcie_probe()
339 if (!pci) in ls_pcie_probe()
344 pci->dev = dev; in ls_pcie_probe()
345 pcie->pci = pci; in ls_pcie_probe()
346 pci->pp.ops = pcie->drvdata->ops; in ls_pcie_probe()
349 pci->dbi_base = devm_pci_remap_cfg_resource(dev, dbi_base); in ls_pcie_probe()
350 if (IS_ERR(pci->dbi_base)) in ls_pcie_probe()
351 return PTR_ERR(pci->dbi_base); in ls_pcie_probe()
355 pcie->pf_lut_base = pci->dbi_base + pcie->drvdata->pf_lut_off; in ls_pcie_probe()
376 return dw_pcie_host_init(&pci->pp); in ls_pcie_probe()
386 return dw_pcie_suspend_noirq(pcie->pci); in ls_pcie_suspend_noirq()
397 ret = pcie->drvdata->exit_from_l2(&pcie->pci->pp); in ls_pcie_resume_noirq()
401 return dw_pcie_resume_noirq(pcie->pci); in ls_pcie_resume_noirq()