/linux/drivers/pci/controller/dwc/ |
A D | pcie-tegra194.c | 729 val_w = dw_pcie_readw_dbi(&pcie->pci, pcie->pcie_cap_base + in tegra_pcie_enable_system_interrupts() 734 val_w = dw_pcie_readw_dbi(&pcie->pci, pcie->pcie_cap_base + in tegra_pcie_enable_system_interrupts() 865 pcie->pcie_cap_base = dw_pcie_find_capability(&pcie->pci, in tegra_pcie_dw_host_init() 1140 pcie->pex_refclk_sel_gpiod = devm_gpiod_get(pcie->dev, in tegra_pcie_dw_parse_dt() 1301 if (pcie->slot_ctl_3v3 || pcie->slot_ctl_12v) in tegra_pcie_enable_slot_regulators() 1583 pcie->link_state = tegra_pcie_dw_link_up(&pcie->pci); in tegra_pcie_config_rp() 1732 appl_writel(pcie, pcie->atu_dma_res->start & in pex_ep_event_pex_rst_deassert() 1769 pcie->pcie_cap_base = dw_pcie_find_capability(&pcie->pci, in pex_ep_event_pex_rst_deassert() 1975 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in tegra_pcie_dw_probe() 1976 if (!pcie) in tegra_pcie_dw_probe() [all …]
|
A D | pcie-visconti.c | 201 visconti_smu_writel(pcie, in visconti_pcie_host_init() 248 if (IS_ERR(pcie->ulreg_base)) in visconti_get_resources() 252 if (IS_ERR(pcie->smu_base)) in visconti_get_resources() 256 if (IS_ERR(pcie->mpu_base)) in visconti_get_resources() 260 if (IS_ERR(pcie->refclk)) in visconti_get_resources() 265 if (IS_ERR(pcie->coreclk)) in visconti_get_resources() 270 if (IS_ERR(pcie->auxclk)) in visconti_get_resources() 295 struct visconti_pcie *pcie; in visconti_pcie_probe() local 299 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in visconti_pcie_probe() 300 if (!pcie) in visconti_pcie_probe() [all …]
|
A D | pcie-keembay.c | 191 if (IS_ERR(pcie->clk_aux)) in keembay_pcie_probe_clocks() 247 pp = &pcie->pci.pp; in keembay_pcie_msi_irq_handler() 273 pcie); in keembay_pcie_setup_msi_irq() 348 if (IS_ERR(pcie->reset)) in keembay_pcie_add_pcie_port() 388 struct keembay_pcie *pcie; in keembay_pcie_probe() local 398 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in keembay_pcie_probe() 399 if (!pcie) in keembay_pcie_probe() 402 pci = &pcie->pci; in keembay_pcie_probe() 406 pcie->mode = mode; in keembay_pcie_probe() 409 if (IS_ERR(pcie->apb_base)) in keembay_pcie_probe() [all …]
|
A D | pci-layerscape.c | 91 if (!pcie->scfg) in ls1021_pcie_link_up() 94 regmap_read(pcie->scfg, SCFG_PEXMSCPORTSR(pcie->index), &state); in ls1021_pcie_link_up() 108 state = (ioread32(pcie->lut + pcie->drvdata->lut_dbg) >> in ls_pcie_link_up() 155 pcie->scfg = NULL; in ls1021_pcie_host_init() 161 pcie->scfg = NULL; in ls1021_pcie_host_init() 164 pcie->index = index[1]; in ls1021_pcie_host_init() 239 struct ls_pcie *pcie; in ls_pcie_probe() local 242 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in ls_pcie_probe() 243 if (!pcie) in ls_pcie_probe() 256 pcie->pci = pci; in ls_pcie_probe() [all …]
|
A D | pcie-qcom.c | 233 pcie->ops->ltssm_enable(pcie); in qcom_pcie_start_link() 1387 ret = pcie->ops->init(pcie); in qcom_pcie_host_init() 1396 ret = pcie->ops->post_init(pcie); in qcom_pcie_host_init() 1404 ret = pcie->ops->config_sid(pcie); in qcom_pcie_host_init() 1414 pcie->ops->post_deinit(pcie); in qcom_pcie_host_init() 1418 pcie->ops->deinit(pcie); in qcom_pcie_host_init() 1533 struct qcom_pcie *pcie; in qcom_pcie_probe() local 1537 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in qcom_pcie_probe() 1538 if (!pcie) in qcom_pcie_probe() 1554 pcie->pci = pci; in qcom_pcie_probe() [all …]
|
A D | pcie-armada8k.c | 80 phy_exit(pcie->phy[i]); in armada8k_pcie_disable_phys() 95 pcie->phy_count); in armada8k_pcie_enable_phys() 97 phy_exit(pcie->phy[i]); in armada8k_pcie_enable_phys() 103 phy_exit(pcie->phy[i]); in armada8k_pcie_enable_phys() 125 pcie->phy[i] = NULL; in armada8k_pcie_setup_phys() 129 pcie->phy_count++; in armada8k_pcie_setup_phys() 133 if (!pcie->phy_count) in armada8k_pcie_setup_phys() 275 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in armada8k_pcie_probe() 276 if (!pcie) in armada8k_pcie_probe() 286 pcie->pci = pci; in armada8k_pcie_probe() [all …]
|
A D | Makefile | 2 obj-$(CONFIG_PCIE_DW) += pcie-designware.o 4 obj-$(CONFIG_PCIE_DW_EP) += pcie-designware-ep.o 8 obj-$(CONFIG_PCIE_FU740) += pcie-fu740.o 14 obj-$(CONFIG_PCIE_QCOM) += pcie-qcom.o 15 obj-$(CONFIG_PCIE_QCOM_EP) += pcie-qcom-ep.o 21 obj-$(CONFIG_PCIE_KIRIN) += pcie-kirin.o 22 obj-$(CONFIG_PCIE_HISI_STB) += pcie-histb.o 39 obj-$(CONFIG_PCIE_AL) += pcie-al.o 40 obj-$(CONFIG_PCI_HISI) += pcie-hisi.o 44 obj-$(CONFIG_ARM64) += pcie-al.o [all …]
|
/linux/drivers/pci/controller/ |
A D | pci-aardvark.c | 629 pcie->wins[i].match, pcie->wins[i].remap, in advk_pcie_setup_hw() 630 pcie->wins[i].mask, pcie->wins[i].actions); in advk_pcie_setup_hw() 1462 if (!pcie->phy) in advk_pcie_enable_phy() 1493 if (IS_ERR(pcie->phy) && (PTR_ERR(pcie->phy) == -EPROBE_DEFER)) in advk_pcie_setup_phy() 1574 pcie->wins[pcie->wins_count].actions = OB_WIN_TYPE_IO; in advk_pcie_probe() 1577 pcie->wins[pcie->wins_count].actions = OB_WIN_TYPE_MEM; in advk_pcie_probe() 1578 pcie->wins[pcie->wins_count].match = start; in advk_pcie_probe() 1580 pcie->wins[pcie->wins_count].remap = start - entry->offset; in advk_pcie_probe() 1581 pcie->wins[pcie->wins_count].mask = ~(win_size - 1); in advk_pcie_probe() 1583 if (pcie->wins[pcie->wins_count].remap & (win_size - 1)) in advk_pcie_probe() [all …]
|
A D | pcie-altera.c | 188 if (!pcie->pcie_data->ops->get_link_status(pcie)) in altera_pcie_valid_device() 349 return pcie->pcie_data->ops->tlp_read_pkt(pcie, value); in tlp_cfg_dword_read() 363 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write() 366 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write() 369 ret = pcie->pcie_data->ops->tlp_read_pkt(pcie, NULL); in tlp_cfg_dword_write() 439 return pcie->pcie_data->ops->rp_read_cfg(pcie, where, in _altera_pcie_cfg_read() 483 return pcie->pcie_data->ops->rp_write_cfg(pcie, busno, in _altera_pcie_cfg_write() 574 altera_read_cap_word(pcie, pcie->root_bus_nr, RP_DEVFN, in altera_wait_link_retrain() 589 if (pcie->pcie_data->ops->get_link_status(pcie)) in altera_wait_link_retrain() 604 if (!pcie->pcie_data->ops->get_link_status(pcie)) in altera_pcie_retrain() [all …]
|
A D | pcie-xilinx-nwl.c | 342 msi = &pcie->msi; in nwl_pcie_handle_msi_irq() 544 pcie); in nwl_pcie_init_irq_domain() 600 nwl_bridge_writel(pcie, nwl_bridge_readl(pcie, I_MSII_CONTROL) | in nwl_pcie_enable_msi() 604 nwl_bridge_writel(pcie, nwl_bridge_readl(pcie, I_MSII_CONTROL) | in nwl_pcie_enable_msi() 655 nwl_bridge_writel(pcie, lower_32_bits(pcie->phys_breg_base), in nwl_pcie_bridge_init() 657 nwl_bridge_writel(pcie, upper_32_bits(pcie->phys_breg_base), in nwl_pcie_bridge_init() 665 nwl_bridge_writel(pcie, nwl_bridge_readl(pcie, BRCFG_PCIE_RX0) | in nwl_pcie_bridge_init() 691 nwl_bridge_writel(pcie, nwl_bridge_readl(pcie, E_ECAM_CONTROL) | in nwl_pcie_bridge_init() 698 nwl_bridge_writel(pcie, lower_32_bits(pcie->phys_ecam_base), in nwl_pcie_bridge_init() 700 nwl_bridge_writel(pcie, upper_32_bits(pcie->phys_ecam_base), in nwl_pcie_bridge_init() [all …]
|
A D | pci-tegra.c | 716 struct tegra_pcie *pcie = port->pcie; in tegra_pcie_port_free() local 832 afi_writel(pcie, pcie->cs.start, AFI_AXI_BAR0_START); in tegra_pcie_setup_translations() 1466 pcie->cs.end = pcie->cs.start + SZ_4K - 1; in tegra_pcie_get_resources() 1468 pcie->cfg = devm_ioremap_resource(dev, &pcie->cs); in tegra_pcie_get_resources() 1501 free_irq(pcie->irq, pcie); in tegra_pcie_put_resources() 1511 struct tegra_pcie *pcie = port->pcie; in tegra_pcie_pme_turnoff() local 1979 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators() 2012 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_regulators() 2025 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_regulators() 2037 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_regulators() [all …]
|
A D | pcie-iproc.c | 402 return pcie; in iproc_data() 1203 if (pcie->need_ob_cfg) { in iproc_pcie_invalidate_mapping() 1326 switch (pcie->type) { in iproc_pcie_msi_steer() 1392 iproc_msi_exit(pcie); in iproc_pcie_msi_disable() 1401 switch (pcie->type) { in iproc_pcie_rev_init() 1448 if (!pcie->reg_offsets) in iproc_pcie_rev_init() 1452 pcie->reg_offsets[0] = (pcie->type == IPROC_PCIE_PAXC_V2) ? in iproc_pcie_rev_init() 1468 dev = pcie->dev; in iproc_pcie_setup() 1520 host->sysdata = pcie; in iproc_pcie_setup() 1539 phy_exit(pcie->phy); in iproc_pcie_setup() [all …]
|
A D | pcie-rcar-host.c | 86 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_config_access() local 273 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_hw_enable() local 428 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_phy_init_h1() local 453 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_phy_init_gen2() local 491 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_msi_irq() local 687 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_enable_msi() local 740 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_teardown_msi() local 753 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_get_resources() local 901 pcie = &host->pcie; in rcar_pcie_probe() 988 struct rcar_pcie *pcie = &host->pcie; in rcar_pcie_resume() local [all …]
|
A D | pcie-brcmstb.c | 732 tmp = readl(pcie->base + PCIE_RGR1_SW_INIT_1(pcie)); in brcm_pcie_bridge_sw_init_set_generic() 734 writel(tmp, pcie->base + PCIE_RGR1_SW_INIT_1(pcie)); in brcm_pcie_bridge_sw_init_set_generic() 879 pcie->bridge_sw_init_set(pcie, 1); in brcm_pcie_setup() 883 pcie->bridge_sw_init_set(pcie, 0); in brcm_pcie_setup() 958 brcm_pcie_set_gen(pcie, pcie->gen); in brcm_pcie_setup() 961 pcie->perst_set(pcie, 0); in brcm_pcie_setup() 1111 return pcie->rescal ? brcm_phy_cntl(pcie, 1) : 0; in brcm_phy_start() 1116 return pcie->rescal ? brcm_phy_cntl(pcie, 0) : 0; in brcm_phy_stop() 1127 pcie->perst_set(pcie, 1); in brcm_pcie_turn_off() 1140 pcie->bridge_sw_init_set(pcie, 1); in brcm_pcie_turn_off() [all …]
|
A D | pcie-mt7621.c | 78 struct mt7621_pcie *pcie; member 193 struct mt7621_pcie *pcie = port->pcie; in mt7621_control_assert() local 195 if (pcie->resets_inverted) in mt7621_control_assert() 203 struct mt7621_pcie *pcie = port->pcie; in mt7621_control_deassert() local 205 if (pcie->resets_inverted) in mt7621_control_deassert() 289 port->pcie = pcie; in mt7621_pcie_parse_port() 309 if (IS_ERR(pcie->base)) in mt7621_pcie_parse_dt() 336 struct mt7621_pcie *pcie = port->pcie; in mt7621_pcie_init_port() local 445 struct mt7621_pcie *pcie = port->pcie; in mt7621_pcie_enable_port() local 509 host->sysdata = pcie; in mt7621_pcie_register_host() [all …]
|
A D | pcie-rcar-ep.c | 23 struct rcar_pcie pcie; member 93 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_parse_outbound_ranges() local 131 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_get_pdata() local 163 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_write_header() local 203 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_set_bar() local 263 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_set_msi() local 276 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_get_msi() local 290 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_map_addr() local 349 struct rcar_pcie *pcie = &ep->pcie; in rcar_pcie_ep_assert_intx() local 489 pcie = &ep->pcie; in rcar_pcie_ep_probe() [all …]
|
A D | built-in.a | 5 pcie-rcar.o/ 6 pcie-rcar-host.o/ 7 pcie-rcar-ep.o/ 14 pcie-iproc.o/ 15 pcie-iproc-msi.o/ 17 pcie-altera.o/ 18 pcie-altera-msi.o/ 19 pcie-rockchip.o/ 24 dwc/pcie-qcom.o/ 29 dwc/pcie-hisi.o/ [all …]
|
A D | pcie-rcar.c | 16 writel(val, pcie->base + reg); in rcar_pci_write_reg() 21 return readl(pcie->base + reg); in rcar_pci_read_reg() 27 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_rmw32() 31 rcar_pci_write_reg(pcie, val, where & ~3); in rcar_rmw32() 34 int rcar_pcie_wait_for_phyrdy(struct rcar_pcie *pcie) in rcar_pcie_wait_for_phyrdy() argument 39 if (rcar_pci_read_reg(pcie, PCIEPHYSR) & PHYRDY) in rcar_pcie_wait_for_phyrdy() 48 int rcar_pcie_wait_for_dl(struct rcar_pcie *pcie) in rcar_pcie_wait_for_dl() argument 99 rcar_pci_write_reg(pcie, mask, PCIEPTCTLR(win)); in rcar_pcie_set_outbound() 110 rcar_pci_write_reg(pcie, lower_32_bits(pci_addr), in rcar_pcie_set_inbound() 113 rcar_pci_write_reg(pcie, flags, PCIELAMR(idx)); in rcar_pcie_set_inbound() [all …]
|
/linux/drivers/pci/controller/mobiveil/ |
A D | pcie-mobiveil-host.c | 125 mobiveil_csr_writel(pcie, in mobiveil_pcie_isr() 225 pcie->ib_wins_configured = 0; in mobiveil_host_init() 226 pcie->ob_wins_configured = 0; in mobiveil_host_init() 289 program_ob_windows(pcie, pcie->ob_wins_configured, in mobiveil_host_init() 311 rp = &pcie->rp; in mobiveil_mask_intx_irq() 327 rp = &pcie->rp; in mobiveil_unmask_intx_irq() 453 &msi_domain_ops, pcie); in mobiveil_allocate_msi_domains() 479 &intx_domain_ops, pcie); in mobiveil_pcie_init_irq_domain() 503 if (IS_ERR(pcie->apb_csr_base)) in mobiveil_pcie_integrated_interrupt_init() 507 mobiveil_pcie_enable_msi(pcie); in mobiveil_pcie_integrated_interrupt_init() [all …]
|
A D | pcie-mobiveil.c | 44 mobiveil_pcie_sel_page(pcie, 0); in mobiveil_pcie_comp_addr() 129 if (pcie->ops->link_up) in mobiveil_pcie_link_up() 130 return pcie->ops->link_up(pcie); in mobiveil_pcie_link_up() 142 if (win_num >= pcie->ppio_wins) { in program_ib_windows() 143 dev_err(&pcie->pdev->dev, in program_ib_windows() 167 pcie->ib_wins_configured++; in program_ib_windows() 179 if (win_num >= pcie->apio_wins) { in program_ob_windows() 180 dev_err(&pcie->pdev->dev, in program_ob_windows() 202 mobiveil_csr_writel(pcie, in program_ob_windows() 213 pcie->ob_wins_configured++; in program_ob_windows() [all …]
|
A D | pcie-layerscape-gen4.c | 72 struct mobiveil_pcie *mv_pci = &pcie->pci; in ls_pcie_g4_disable_interrupt() 145 ls_pcie_g4_disable_interrupt(pcie); in ls_pcie_g4_isr() 162 if (pcie->irq < 0) in ls_pcie_g4_interrupt_init() 163 return pcie->irq; in ls_pcie_g4_interrupt_init() 187 if (!ls_pcie_g4_reinit_hw(pcie)) in ls_pcie_g4_reset() 190 ls_pcie_g4_enable_interrupt(pcie); in ls_pcie_g4_reset() 206 struct ls_pcie_g4 *pcie; in ls_pcie_g4_probe() local 219 pcie = pci_host_bridge_priv(bridge); in ls_pcie_g4_probe() 220 mv_pci = &pcie->pci; in ls_pcie_g4_probe() 227 platform_set_drvdata(pdev, pcie); in ls_pcie_g4_probe() [all …]
|
/linux/drivers/pci/controller/cadence/ |
A D | pcie-cadence.c | 75 if (pcie->is_rc) { in cdns_pcie_set_outbound_region() 93 cpu_addr = pcie->ops->cpu_addr_fixup(pcie, cpu_addr); in cdns_pcie_set_outbound_region() 113 if (pcie->is_rc) { in cdns_pcie_set_outbound_region_for_normal_msg() 123 cpu_addr = pcie->ops->cpu_addr_fixup(pcie, cpu_addr); in cdns_pcie_set_outbound_region_for_normal_msg() 151 int i = pcie->phy_count; in cdns_pcie_disable_phy() 155 phy_exit(pcie->phy[i]); in cdns_pcie_disable_phy() 171 phy_exit(pcie->phy[i]); in cdns_pcie_enable_phy() 181 phy_exit(pcie->phy[i]); in cdns_pcie_enable_phy() 200 pcie->phy_count = 0; in cdns_pcie_init_phy() 228 pcie->phy = phy; in cdns_pcie_init_phy() [all …]
|
A D | pcie-cadence-ep.c | 39 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_write_header() local 81 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_set_bar() local 155 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_clear_bar() local 187 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_map_addr() local 210 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_unmap_addr() local 229 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_set_msi() local 251 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_get_msi() local 274 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_get_msix() local 295 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_set_msix() local 323 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_assert_intx() local [all …]
|
A D | pci-j721e.c | 111 j721e_pcie_intd_writel(pcie, STATUS_CLR_REG_SYS_2, pcie->linkdown_irq_regfield); in j721e_pcie_link_irq_handler() 170 u32 mode = pcie->mode; in j721e_pcie_set_mode() 209 u32 lanes = pcie->num_lanes; in j721e_pcie_set_lane_count() 359 struct j721e_pcie *pcie; in j721e_pcie_probe() local 376 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in j721e_pcie_probe() 377 if (!pcie) in j721e_pcie_probe() 380 pcie->dev = dev; in j721e_pcie_probe() 381 pcie->mode = mode; in j721e_pcie_probe() 448 cdns_pcie = &rc->pcie; in j721e_pcie_probe() 479 pcie->refclk = clk; in j721e_pcie_probe() [all …]
|
A D | pcie-cadence-host.c | 31 struct cdns_pcie *pcie = &rc->pcie; in cdns_pci_map_bus() local 128 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_start_link() local 145 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_init_root_port() local 188 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_bar_ib_config() local 280 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_bar_config() local 361 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_map_dma_ranges() local 398 struct cdns_pcie *pcie = &rc->pcie; in cdns_pcie_host_init_address_translation() local 421 cpu_addr = pcie->ops->cpu_addr_fixup(pcie, cpu_addr); in cdns_pcie_host_init_address_translation() 472 struct cdns_pcie *pcie; in cdns_pcie_host_setup() local 480 pcie = &rc->pcie; in cdns_pcie_host_setup() [all …]
|