Home
last modified time | relevance | path

Searched refs:dw_pcie (Results 1 – 19 of 19) sorted by relevance

/linux-4.19.296/drivers/pci/controller/dwc/
Dpcie-designware.h109 struct dw_pcie;
205 u64 (*cpu_addr_fixup)(struct dw_pcie *pcie, u64 cpu_addr);
206 u32 (*read_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
208 void (*write_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
210 int (*link_up)(struct dw_pcie *pcie);
211 int (*start_link)(struct dw_pcie *pcie);
212 void (*stop_link)(struct dw_pcie *pcie);
215 struct dw_pcie { struct
226 #define to_dw_pcie_from_pp(port) container_of((port), struct dw_pcie, pp) argument
229 container_of((endpoint), struct dw_pcie, ep)
[all …]
Dpci-layerscape.c47 struct dw_pcie *pci;
58 struct dw_pcie *pci = pcie->pci; in ls_pcie_is_bridge()
70 struct dw_pcie *pci = pcie->pci; in ls_pcie_clear_multifunction()
79 struct dw_pcie *pci = pcie->pci; in ls_pcie_drop_msg_tlp()
94 static int ls1021_pcie_link_up(struct dw_pcie *pci) in ls1021_pcie_link_up()
111 static int ls_pcie_link_up(struct dw_pcie *pci) in ls_pcie_link_up()
129 struct dw_pcie *pci = pcie->pci; in ls_pcie_fix_error_response()
136 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_host_init()
160 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021_pcie_host_init()
187 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_msi_host_init()
[all …]
Dpcie-designware.c61 u32 __dw_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, u32 reg, in __dw_pcie_read_dbi()
77 void __dw_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, u32 reg, in __dw_pcie_write_dbi()
92 static u32 dw_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ob_unroll()
99 static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg, in dw_pcie_writel_ob_unroll()
107 static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, in dw_pcie_prog_outbound_atu_unroll()
143 void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, int type, in dw_pcie_prog_outbound_atu()
186 static u32 dw_pcie_readl_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ib_unroll()
193 static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg, in dw_pcie_writel_ib_unroll()
201 static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, in dw_pcie_prog_inbound_atu_unroll()
246 int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, int index, int bar, in dw_pcie_prog_inbound_atu()
[all …]
Dpcie-designware-ep.c22 static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar, in __dw_pcie_ep_reset_bar()
38 void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar) in dw_pcie_ep_reset_bar()
43 static u8 __dw_pcie_ep_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_ep_find_next_cap()
65 static u8 dw_pcie_ep_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_ep_find_capability()
80 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_write_header()
107 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_inbound_atu()
132 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_outbound_atu()
153 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_clear_bar()
168 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_set_bar()
220 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_unmap_addr()
[all …]
Dpci-keystone-dw.c82 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_get_msi_addr()
100 struct dw_pcie *pci = ks_pcie->pci; in ks_dw_pcie_handle_msi_irq()
127 struct dw_pcie *pci; in ks_dw_pcie_msi_irq_ack()
141 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_msi_set_irq()
152 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_msi_clear_irq()
175 struct dw_pcie *pci = ks_pcie->pci; in ks_dw_pcie_handle_legacy_irq()
287 struct dw_pcie *pci = ks_pcie->pci; in ks_dw_pcie_setup_rc_app_regs()
337 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_cfg_setup()
361 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_rd_other_conf()
374 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_wr_other_conf()
[all …]
Dpcie-designware-plat.c27 struct dw_pcie *pci;
40 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_plat_pcie_host_init()
61 static int dw_plat_pcie_establish_link(struct dw_pcie *pci) in dw_plat_pcie_establish_link()
72 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_init()
87 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_raise_irq()
111 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_port()
144 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_ep()
173 struct dw_pcie *pci; in dw_plat_pcie_probe()
Dpci-exynos.c65 struct dw_pcie *pci;
85 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_get_mem_resources()
103 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_get_clk_resources()
127 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_init_clk_resources()
226 struct dw_pcie *pci = ep->pci; in exynos_pcie_assert_reset()
236 struct dw_pcie *pci = ep->pci; in exynos_pcie_establish_link()
299 struct dw_pcie *pci = ep->pci; in exynos_pcie_msi_init()
319 static u32 exynos_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_read_dbi()
331 static void exynos_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_write_dbi()
344 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in exynos_pcie_rd_own_conf()
[all …]
Dpcie-artpec6.c33 struct dw_pcie *pci;
107 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in artpec6_pcie_cpu_addr_fixup()
124 static int artpec6_pcie_establish_link(struct dw_pcie *pci) in artpec6_pcie_establish_link()
136 static void artpec6_pcie_stop_link(struct dw_pcie *pci) in artpec6_pcie_stop_link()
154 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_wait_for_phy_a6()
181 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_wait_for_phy_a7()
253 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_init_phy_a7()
297 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_set_nfts()
357 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_enable_interrupts()
366 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in artpec6_pcie_host_init()
[all …]
Dpcie-spear13xx.c25 struct dw_pcie *pci;
74 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_establish_link()
136 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_irq_handler()
154 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_enable_interrupts()
166 static int spear13xx_pcie_link_up(struct dw_pcie *pci) in spear13xx_pcie_link_up()
179 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in spear13xx_pcie_host_init()
195 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_add_pcie_port()
231 struct dw_pcie *pci; in spear13xx_pcie_probe()
Dpcie-armada8k.c29 struct dw_pcie *pci;
70 static int armada8k_pcie_link_up(struct dw_pcie *pci) in armada8k_pcie_link_up()
86 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_establish_link()
137 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in armada8k_pcie_host_init()
149 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_irq_handler()
170 struct dw_pcie *pci = pcie->pci; in armada8k_add_pcie_port()
205 struct dw_pcie *pci; in armada8k_pcie_probe()
Dpcie-histb.c53 struct dw_pcie *pci;
79 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_dbi_w_mode()
93 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_dbi_r_mode()
105 static u32 histb_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in histb_pcie_read_dbi()
117 static void histb_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in histb_pcie_write_dbi()
128 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_rd_own_conf()
141 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_wr_own_conf()
151 static int histb_pcie_link_up(struct dw_pcie *pci) in histb_pcie_link_up()
169 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_establish_link()
231 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_host_enable()
[all …]
Dpci-dra7xx.c86 struct dw_pcie *pci;
112 static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in dra7xx_pcie_cpu_addr_fixup()
117 static int dra7xx_pcie_link_up(struct dw_pcie *pci) in dra7xx_pcie_link_up()
125 static void dra7xx_pcie_stop_link(struct dw_pcie *pci) in dra7xx_pcie_stop_link()
135 static int dra7xx_pcie_establish_link(struct dw_pcie *pci) in dra7xx_pcie_establish_link()
200 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_host_init()
233 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_init_irq_domain()
257 struct dw_pcie *pci = dra7xx->pci; in dra7xx_pcie_msi_irq_handler()
288 struct dw_pcie *pci = dra7xx->pci; in dra7xx_pcie_irq_handler()
346 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dra7xx_pcie_ep_init()
[all …]
Dpci-imx6.c43 struct dw_pcie *pci;
108 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_poll_ack()
129 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_wait_ack()
152 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_read()
179 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_write()
325 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_enable_ref_clk()
383 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_deassert_core_reset()
512 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_wait_for_link()
527 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_wait_for_speed_change()
546 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_establish_link()
[all …]
Dpcie-kirin.c82 struct dw_pcie *pci;
341 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in kirin_pcie_rd_own_conf()
355 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in kirin_pcie_wr_own_conf()
366 static u32 kirin_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in kirin_pcie_read_dbi()
379 static void kirin_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in kirin_pcie_write_dbi()
389 static int kirin_pcie_link_up(struct dw_pcie *pci) in kirin_pcie_link_up()
402 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in kirin_pcie_establish_link()
451 static int kirin_pcie_add_msi(struct dw_pcie *pci, in kirin_pcie_add_msi()
470 static int kirin_add_pcie_port(struct dw_pcie *pci, in kirin_add_pcie_port()
488 struct dw_pcie *pci; in kirin_pcie_probe()
Dpcie-hisi.c138 struct dw_pcie *pci;
151 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in hisi_pcie_cfg_read()
176 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in hisi_pcie_cfg_write()
208 struct dw_pcie *pci = hisi_pcie->pci; in hisi_pcie_link_up_hip06()
216 static int hisi_pcie_link_up(struct dw_pcie *pci) in hisi_pcie_link_up()
231 struct dw_pcie *pci = hisi_pcie->pci; in hisi_add_pcie_port()
265 struct dw_pcie *pci; in hisi_pcie_probe()
Dpci-keystone.c87 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_establish_link()
115 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_msi_irq_handler()
143 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_legacy_irq_handler()
267 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_pcie_host_init()
321 struct dw_pcie *pci = ks_pcie->pci; in ks_add_pcie_port()
391 struct dw_pcie *pci; in ks_pcie_probe()
Dpcie-designware-host.c26 struct dw_pcie *pci; in dw_pcie_rd_own_conf()
38 struct dw_pcie *pci; in dw_pcie_wr_own_conf()
127 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg()
278 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_allocate_domains()
316 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_msi_init()
340 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_host_init()
527 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_rd_other_conf()
566 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_wr_other_conf()
601 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_valid_device()
651 static u8 dw_pcie_iatu_unroll_enabled(struct dw_pcie *pci) in dw_pcie_iatu_unroll_enabled()
[all …]
Dpci-keystone.h14 struct dw_pcie *pci;
57 int ks_dw_pcie_link_up(struct dw_pcie *pci);
Dpcie-qcom.c181 struct dw_pcie *pci;
208 struct dw_pcie *pci = pcie->pci; in qcom_pcie_establish_link()
233 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_1_0()
300 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_2_1_0()
431 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_1_0_0()
473 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_1_0_0()
551 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_3_2()
604 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_2_3_2()
678 struct dw_pcie *pci = pcie->pci; in qcom_pcie_post_init_2_3_2()
694 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_4_0()
[all …]