Lines Matching refs:pci

25 	struct dw_pcie		*pci;  member
69 static int spear13xx_pcie_start_link(struct dw_pcie *pci) in spear13xx_pcie_start_link() argument
71 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci); in spear13xx_pcie_start_link()
87 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_irq_handler() local
88 struct dw_pcie_rp *pp = &pci->pp; in spear13xx_pcie_irq_handler()
113 static int spear13xx_pcie_link_up(struct dw_pcie *pci) in spear13xx_pcie_link_up() argument
115 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci); in spear13xx_pcie_link_up()
126 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in spear13xx_pcie_host_init() local
127 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci); in spear13xx_pcie_host_init()
128 u32 exp_cap_off = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); in spear13xx_pcie_host_init()
131 spear13xx_pcie->app_base = pci->dbi_base + 0x2000; in spear13xx_pcie_host_init()
138 val = dw_pcie_readw_dbi(pci, exp_cap_off + PCI_EXP_DEVCTL); in spear13xx_pcie_host_init()
140 dw_pcie_writew_dbi(pci, exp_cap_off + PCI_EXP_DEVCTL, val); in spear13xx_pcie_host_init()
142 dw_pcie_writew_dbi(pci, PCI_VENDOR_ID, 0x104A); in spear13xx_pcie_host_init()
143 dw_pcie_writew_dbi(pci, PCI_DEVICE_ID, 0xCD80); in spear13xx_pcie_host_init()
157 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_add_pcie_port() local
158 struct dw_pcie_rp *pp = &pci->pp; in spear13xx_add_pcie_port()
194 struct dw_pcie *pci; in spear13xx_pcie_probe() local
203 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL); in spear13xx_pcie_probe()
204 if (!pci) in spear13xx_pcie_probe()
207 pci->dev = dev; in spear13xx_pcie_probe()
208 pci->ops = &dw_pcie_ops; in spear13xx_pcie_probe()
210 spear13xx_pcie->pci = pci; in spear13xx_pcie_probe()
236 pci->max_link_speed = 1; in spear13xx_pcie_probe()