Lines Matching refs:mv_pci
72 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_g4_pcie_disable_interrupt() local
74 mobiveil_csr_writel(mv_pci, 0, PAB_INTP_AMBA_MISC_ENB); in ls_g4_pcie_disable_interrupt()
79 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_g4_pcie_enable_interrupt() local
83 mobiveil_csr_writel(mv_pci, 0xffffffff, PAB_INTP_AMBA_MISC_STAT); in ls_g4_pcie_enable_interrupt()
87 mobiveil_csr_writel(mv_pci, val, PAB_INTP_AMBA_MISC_ENB); in ls_g4_pcie_enable_interrupt()
92 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_g4_pcie_reinit_hw() local
93 struct device *dev = &mv_pci->pdev->dev; in ls_g4_pcie_reinit_hw()
101 act_stat = mobiveil_csr_readl(mv_pci, PAB_ACTIVITY_STAT); in ls_g4_pcie_reinit_hw()
121 mobiveil_host_init(mv_pci, true); in ls_g4_pcie_reinit_hw()
124 while (!ls_g4_pcie_link_up(mv_pci) && to--) in ls_g4_pcie_reinit_hw()
137 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_g4_pcie_isr() local
140 val = mobiveil_csr_readl(mv_pci, PAB_INTP_AMBA_MISC_STAT); in ls_g4_pcie_isr()
149 mobiveil_csr_writel(mv_pci, val, PAB_INTP_AMBA_MISC_STAT); in ls_g4_pcie_isr()
154 static int ls_g4_pcie_interrupt_init(struct mobiveil_pcie *mv_pci) in ls_g4_pcie_interrupt_init() argument
156 struct ls_g4_pcie *pcie = to_ls_g4_pcie(mv_pci); in ls_g4_pcie_interrupt_init()
157 struct platform_device *pdev = mv_pci->pdev; in ls_g4_pcie_interrupt_init()
180 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_g4_pcie_reset() local
183 ctrl = mobiveil_csr_readw(mv_pci, PCI_BRIDGE_CONTROL); in ls_g4_pcie_reset()
185 mobiveil_csr_writew(mv_pci, ctrl, PCI_BRIDGE_CONTROL); in ls_g4_pcie_reset()
205 struct mobiveil_pcie *mv_pci; in ls_g4_pcie_probe() local
220 mv_pci = &pcie->pci; in ls_g4_pcie_probe()
222 mv_pci->pdev = pdev; in ls_g4_pcie_probe()
223 mv_pci->ops = &ls_g4_pcie_pab_ops; in ls_g4_pcie_probe()
224 mv_pci->rp.ops = &ls_g4_pcie_rp_ops; in ls_g4_pcie_probe()
225 mv_pci->rp.bridge = bridge; in ls_g4_pcie_probe()
231 ret = mobiveil_pcie_host_probe(mv_pci); in ls_g4_pcie_probe()