Lines Matching full:rp

51 	struct mobiveil_root_port *rp = &pcie->rp;  in mobiveil_pcie_map_bus()  local
73 return rp->config_axi_slave_base + where; in mobiveil_pcie_map_bus()
87 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_isr() local
88 struct mobiveil_msi *msi = &rp->msi; in mobiveil_pcie_isr()
115 ret = generic_handle_domain_irq(rp->intx_domain, in mobiveil_pcie_isr()
170 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_parse_dt() local
176 rp->config_axi_slave_base = devm_pci_remap_cfg_resource(dev, res); in mobiveil_pcie_parse_dt()
177 if (IS_ERR(rp->config_axi_slave_base)) in mobiveil_pcie_parse_dt()
178 return PTR_ERR(rp->config_axi_slave_base); in mobiveil_pcie_parse_dt()
179 rp->ob_io_res = res; in mobiveil_pcie_parse_dt()
202 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_pcie_enable_msi()
217 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_host_init() local
218 struct pci_host_bridge *bridge = rp->bridge; in mobiveil_host_init()
270 program_ob_windows(pcie, WIN_NUM_0, rp->ob_io_res->start, 0, in mobiveil_host_init()
271 CFG_WINDOW_TYPE, resource_size(rp->ob_io_res)); in mobiveil_host_init()
304 struct mobiveil_root_port *rp; in mobiveil_mask_intx_irq() local
308 rp = &pcie->rp; in mobiveil_mask_intx_irq()
310 raw_spin_lock_irqsave(&rp->intx_mask_lock, flags); in mobiveil_mask_intx_irq()
314 raw_spin_unlock_irqrestore(&rp->intx_mask_lock, flags); in mobiveil_mask_intx_irq()
320 struct mobiveil_root_port *rp; in mobiveil_unmask_intx_irq() local
324 rp = &pcie->rp; in mobiveil_unmask_intx_irq()
326 raw_spin_lock_irqsave(&rp->intx_mask_lock, flags); in mobiveil_unmask_intx_irq()
330 raw_spin_unlock_irqrestore(&rp->intx_mask_lock, flags); in mobiveil_unmask_intx_irq()
398 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_irq_msi_domain_alloc()
425 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_irq_msi_domain_free()
446 struct mobiveil_msi *msi = &pcie->rp.msi; in mobiveil_allocate_msi_domains()
472 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_init_irq_domain() local
475 rp->intx_domain = irq_domain_add_linear(node, PCI_NUM_INTX, in mobiveil_pcie_init_irq_domain()
478 if (!rp->intx_domain) { in mobiveil_pcie_init_irq_domain()
483 raw_spin_lock_init(&rp->intx_mask_lock); in mobiveil_pcie_init_irq_domain()
493 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_integrated_interrupt_init() local
506 rp->irq = platform_get_irq(pdev, 0); in mobiveil_pcie_integrated_interrupt_init()
507 if (rp->irq < 0) in mobiveil_pcie_integrated_interrupt_init()
508 return rp->irq; in mobiveil_pcie_integrated_interrupt_init()
517 irq_set_chained_handler_and_data(rp->irq, mobiveil_pcie_isr, pcie); in mobiveil_pcie_integrated_interrupt_init()
529 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_interrupt_init() local
531 if (rp->ops->interrupt_init) in mobiveil_pcie_interrupt_init()
532 return rp->ops->interrupt_init(pcie); in mobiveil_pcie_interrupt_init()
549 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_host_probe() local
550 struct pci_host_bridge *bridge = rp->bridge; in mobiveil_pcie_host_probe()