Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/pci/controller/dwc/
H A Dpcie-designware.h157 struct dw_pcie;
248 u64 (*cpu_addr_fixup)(struct dw_pcie *pcie, u64 cpu_addr);
249 u32 (*read_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
251 void (*write_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
253 void (*write_dbi2)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
255 int (*link_up)(struct dw_pcie *pcie);
256 int (*start_link)(struct dw_pcie *pcie);
257 void (*stop_link)(struct dw_pcie *pcie);
262 struct dw_pcie { struct
279 #define to_dw_pcie_from_pp(port) container_of((port), struct dw_pcie, pp) argument
[all …]
H A Dpcie-designware.c24 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap()
46 u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_capability()
58 static u16 dw_pcie_find_next_ext_capability(struct dw_pcie *pci, u16 start, in dw_pcie_find_next_ext_capability()
93 u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_ext_capability()
139 u32 dw_pcie_read_dbi(struct dw_pcie *pci, u32 reg, size_t size) in dw_pcie_read_dbi()
155 void dw_pcie_write_dbi(struct dw_pcie *pci, u32 reg, size_t size, u32 val) in dw_pcie_write_dbi()
170 void dw_pcie_write_dbi2(struct dw_pcie *pci, u32 reg, size_t size, u32 val) in dw_pcie_write_dbi2()
184 static u32 dw_pcie_readl_atu(struct dw_pcie *pci, u32 reg) in dw_pcie_readl_atu()
199 static void dw_pcie_writel_atu(struct dw_pcie *pci, u32 reg, u32 val) in dw_pcie_writel_atu()
213 static u32 dw_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ob_unroll()
[all …]
H A 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 …]
H A Dpcie-designware-ep.c56 static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, u8 func_no, in __dw_pcie_ep_reset_bar()
76 void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar) in dw_pcie_ep_reset_bar()
89 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in __dw_pcie_ep_find_next_cap()
114 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_find_capability()
132 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_write_header()
162 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_inbound_atu()
188 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_outbound_atu()
209 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_clear_bar()
225 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_set_bar()
284 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_unmap_addr()
[all …]
H A Dpci-layerscape-ep.c32 struct dw_pcie *pci;
37 static int ls_pcie_establish_link(struct dw_pcie *pci) in ls_pcie_establish_link()
49 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_get_features()
57 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_init()
76 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_raise_irq()
95 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_func_conf_select()
130 struct dw_pcie *pci = pcie->pci; in ls_add_pcie_ep()
158 struct dw_pcie *pci; in ls_pcie_ep_probe()
H A Dpci-exynos.c65 struct dw_pcie *pci;
85 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_get_mem_resources()
101 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_get_clk_resources()
125 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_init_clk_resources()
224 struct dw_pcie *pci = ep->pci; in exynos_pcie_assert_reset()
234 struct dw_pcie *pci = ep->pci; in exynos_pcie_establish_link()
297 struct dw_pcie *pci = ep->pci; in exynos_pcie_msi_init()
317 static u32 exynos_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_read_dbi()
329 static void exynos_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_write_dbi()
342 struct dw_pcie *pci = to_dw_pcie_from_pp(bus->sysdata); in exynos_pcie_rd_own_conf()
[all …]
H A Dpcie-designware-plat.c25 struct dw_pcie *pci;
38 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_plat_pcie_host_init()
57 static int dw_plat_pcie_establish_link(struct dw_pcie *pci) in dw_plat_pcie_establish_link()
68 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_init()
79 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_raise_irq()
116 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_port()
149 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_ep()
177 struct dw_pcie *pci; in dw_plat_pcie_probe()
H A Dpci-dra7xx.c88 struct dw_pcie *pci;
114 static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in dra7xx_pcie_cpu_addr_fixup()
119 static int dra7xx_pcie_link_up(struct dw_pcie *pci) in dra7xx_pcie_link_up()
127 static void dra7xx_pcie_stop_link(struct dw_pcie *pci) in dra7xx_pcie_stop_link()
137 static int dra7xx_pcie_establish_link(struct dw_pcie *pci) in dra7xx_pcie_establish_link()
181 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_host_init()
210 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_handle_msi()
233 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_handle_msi_irq()
262 struct dw_pcie *pci; in dra7xx_pcie_msi_irq_handler()
298 struct dw_pcie *pci = dra7xx->pci; in dra7xx_pcie_irq_handler()
[all …]
H A Dpcie-artpec6.c33 struct dw_pcie *pci;
97 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in artpec6_pcie_cpu_addr_fixup()
114 static int artpec6_pcie_establish_link(struct dw_pcie *pci) in artpec6_pcie_establish_link()
126 static void artpec6_pcie_stop_link(struct dw_pcie *pci) in artpec6_pcie_stop_link()
144 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_wait_for_phy_a6()
171 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_wait_for_phy_a7()
243 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_pcie_init_phy_a7()
320 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in artpec6_pcie_host_init()
346 struct dw_pcie *pci = artpec6_pcie->pci; in artpec6_add_pcie_port()
370 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in artpec6_pcie_ep_init()
[all …]
H A Dpcie-spear13xx.c25 struct dw_pcie *pci;
71 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_establish_link()
109 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_irq_handler()
127 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_enable_interrupts()
139 static int spear13xx_pcie_link_up(struct dw_pcie *pci) in spear13xx_pcie_link_up()
152 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in spear13xx_pcie_host_init()
168 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_add_pcie_port()
203 struct dw_pcie *pci; in spear13xx_pcie_probe()
H A Dpcie-uniphier-ep.c59 struct dw_pcie pci;
119 static int uniphier_pcie_start_link(struct dw_pcie *pci) in uniphier_pcie_start_link()
128 static void uniphier_pcie_stop_link(struct dw_pcie *pci) in uniphier_pcie_stop_link()
137 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in uniphier_pcie_ep_init()
146 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in uniphier_pcie_ep_raise_legacy_irq()
172 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in uniphier_pcie_ep_raise_msi_irq()
191 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in uniphier_pcie_ep_raise_irq()
209 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in uniphier_pcie_get_features()
224 struct dw_pcie *pci = &priv->pci; in uniphier_add_pcie_ep()
H A 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(bus->sysdata); in histb_pcie_rd_own_conf()
142 struct dw_pcie *pci = to_dw_pcie_from_pp(bus->sysdata); in histb_pcie_wr_own_conf()
156 static int histb_pcie_link_up(struct dw_pcie *pci) in histb_pcie_link_up()
174 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_establish_link()
234 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_host_enable()
[all …]
H A Dpcie-designware-host.c62 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_handle_msi_irq()
106 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg()
129 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_mask()
148 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_unmask()
167 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_ack()
236 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_allocate_domains()
271 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_free_msi()
281 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_msi_init()
295 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_host_init()
447 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_other_conf_map_bus()
[all …]
H A Dpcie-uniphier.c66 struct dw_pcie pci;
138 static int uniphier_pcie_link_up(struct dw_pcie *pci) in uniphier_pcie_link_up()
149 static int uniphier_pcie_establish_link(struct dw_pcie *pci) in uniphier_pcie_establish_link()
161 static void uniphier_pcie_stop_link(struct dw_pcie *pci) in uniphier_pcie_stop_link()
177 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_mask()
194 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_unmask()
231 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_handler()
267 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_config_legacy_irq()
304 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_host_init()
331 struct dw_pcie *pci = &priv->pci; in uniphier_add_pcie_port()
H A Dpci-keystone.c116 struct dw_pcie *pci;
152 struct dw_pcie *pci; in ks_pcie_msi_irq_ack()
171 struct dw_pcie *pci; in ks_pcie_compose_msi_msg()
197 struct dw_pcie *pci; in ks_pcie_msi_mask()
221 struct dw_pcie *pci; in ks_pcie_msi_unmask()
258 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_handle_legacy_irq()
397 struct dw_pcie *pci = ks_pcie->pci; in ks_pcie_setup_rc_app_regs()
438 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_pcie_other_map_bus()
465 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_pcie_v3_65_add_bus()
499 static int ks_pcie_link_up(struct dw_pcie *pci) in ks_pcie_link_up()
[all …]
H A Dpcie-armada8k.c31 struct dw_pcie *pci;
113 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_setup_phys()
143 static int armada8k_pcie_link_up(struct dw_pcie *pci) in armada8k_pcie_link_up()
159 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_establish_link()
210 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in armada8k_pcie_host_init()
222 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_irq_handler()
243 struct dw_pcie *pci = pcie->pci; in armada8k_add_pcie_port()
276 struct dw_pcie *pci; in armada8k_pcie_probe()
H A Dpcie-kirin.c82 struct dw_pcie *pci;
336 struct dw_pcie *pci = to_dw_pcie_from_pp(bus->sysdata); in kirin_pcie_rd_own_conf()
350 struct dw_pcie *pci = to_dw_pcie_from_pp(bus->sysdata); in kirin_pcie_wr_own_conf()
364 static u32 kirin_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in kirin_pcie_read_dbi()
377 static void kirin_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in kirin_pcie_write_dbi()
387 static int kirin_pcie_link_up(struct dw_pcie *pci) in kirin_pcie_link_up()
400 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in kirin_pcie_establish_link()
447 static int kirin_pcie_add_msi(struct dw_pcie *pci, in kirin_pcie_add_msi()
463 static int kirin_add_pcie_port(struct dw_pcie *pci, in kirin_add_pcie_port()
481 struct dw_pcie *pci; in kirin_pcie_probe()
H A Dpci-meson.c68 struct dw_pcie pci;
111 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems()
262 struct dw_pcie *pci = &mp->pci; in meson_set_max_payload()
278 struct dw_pcie *pci = &mp->pci; in meson_set_max_rd_req_size()
294 struct dw_pcie *pci = &mp->pci; in meson_pcie_establish_link()
340 static int meson_pcie_link_up(struct dw_pcie *pci) in meson_pcie_link_up()
381 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in meson_pcie_host_init()
403 struct dw_pcie *pci = &mp->pci; in meson_add_pcie_port()
432 struct dw_pcie *pci; in meson_pcie_probe()
H A Dpcie-intel-gw.c68 struct dw_pcie pci;
142 static void intel_pcie_init_n_fts(struct dw_pcie *pci) in intel_pcie_init_n_fts()
235 struct dw_pcie *pci = &lpp->pci; in intel_pcie_get_resources()
288 struct dw_pcie *pci = &lpp->pci; in intel_pcie_wait_l2()
400 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in intel_pcie_rc_init()
414 static u64 intel_pcie_cpu_addr(struct dw_pcie *pcie, u64 cpu_addr) in intel_pcie_cpu_addr()
440 struct dw_pcie *pci; in intel_pcie_probe()
H A Dpci-imx6.c64 struct dw_pcie *pci;
146 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_poll_ack()
167 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_wait_ack()
190 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_read()
216 struct dw_pcie *pci = imx6_pcie->pci; in pcie_phy_write()
419 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_enable_ref_clk()
491 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_deassert_core_reset()
717 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_wait_for_speed_change()
755 struct dw_pcie *pci = imx6_pcie->pci; in imx6_pcie_establish_link()
835 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in imx6_pcie_host_init()
[all …]
H A Dpcie-dw-ep-rockchip.c116 struct dw_pcie pci;
327 static int rockchip_pcie_link_up(struct dw_pcie *pci) in rockchip_pcie_link_up()
338 static int rockchip_pcie_start_link(struct dw_pcie *pci) in rockchip_pcie_start_link()
469 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_resize_bar()
555 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_init_id()
566 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_ep_set_bar()
601 static u8 rockchip_pcie_iatu_unroll_enabled(struct dw_pcie *pci) in rockchip_pcie_iatu_unroll_enabled()
616 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_local_elbi_enable()
629 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_elbi_clear()
648 struct dw_pcie *pci = &rockchip->pci; in rockchip_pcie_sys_irq_handler()
[all …]
H A Dpcie-qcom.c185 struct dw_pcie *pci;
212 struct dw_pcie *pci = pcie->pci; in qcom_pcie_establish_link()
237 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_1_0()
309 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_2_1_0()
434 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_1_0_0()
476 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_1_0_0()
554 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_3_2()
607 struct dw_pcie *pci = pcie->pci; in qcom_pcie_init_2_3_2()
681 struct dw_pcie *pci = pcie->pci; in qcom_pcie_post_init_2_3_2()
697 struct dw_pcie *pci = pcie->pci; in qcom_pcie_get_resources_2_4_0()
[all …]
H A Dpcie-tegra194.c275 struct dw_pcie pci;
314 static inline struct tegra_pcie_dw *to_tegra_pcie(struct dw_pcie *pci) in to_tegra_pcie()
336 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in apply_bad_link_workaround()
371 struct dw_pcie *pci = &pcie->pci; in tegra_pcie_rp_irq_handler()
468 struct dw_pcie *pci = &pcie->pci; in tegra_pcie_ep_irq_thread()
663 struct dw_pcie *pci = &pcie->pci; in init_host_aspm()
703 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in tegra_pcie_enable_system_interrupts()
741 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in tegra_pcie_enable_legacy_interrupts()
762 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in tegra_pcie_enable_msi_interrupts()
777 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in tegra_pcie_enable_interrupts()
[all …]
H A Dpcie-dw-rockchip.c155 struct dw_pcie *pci;
276 static u8 rk_pcie_iatu_unroll_enabled(struct dw_pcie *pci) in rk_pcie_iatu_unroll_enabled()
287 static void rk_pcie_writel_atu(struct dw_pcie *pci, u32 reg, u32 val) in rk_pcie_writel_atu()
301 static void rk_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg, in rk_pcie_writel_ib_unroll()
309 static u32 rk_pcie_readl_atu(struct dw_pcie *pci, u32 reg) in rk_pcie_readl_atu()
324 static u32 rk_pcie_readl_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg) in rk_pcie_readl_ib_unroll()
331 static int rk_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, u8 func_no, in rk_pcie_prog_inbound_atu_unroll()
379 static int rk_pcie_prog_inbound_atu(struct dw_pcie *pci, u8 func_no, int index, in rk_pcie_prog_inbound_atu()
463 static void rk_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg, in rk_pcie_writel_ob_unroll()
471 static u32 rk_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg) in rk_pcie_readl_ob_unroll()
[all …]
H A Dpcie-al.c132 struct dw_pcie *pci;
302 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in al_pcie_host_init()
352 struct dw_pcie *pci; in al_pcie_probe()