Home
last modified time | relevance | path

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

12

/linux/drivers/pci/controller/dwc/
H A Dpcie-designware.h312 struct dw_pcie;
502 u64 (*cpu_addr_fixup)(struct dw_pcie *pcie, u64 cpu_addr);
503 u32 (*read_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
505 void (*write_dbi)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
507 void (*write_dbi2)(struct dw_pcie *pcie, void __iomem *base, u32 reg,
509 bool (*link_up)(struct dw_pcie *pcie);
510 enum dw_pcie_ltssm (*get_ltssm)(struct dw_pcie *pcie);
511 int (*start_link)(struct dw_pcie *pcie);
512 void (*stop_link)(struct dw_pcie *pcie);
520 struct dw_pcie { struct
[all …]
H A Dpcie-designware-debugfs.c69 struct dw_pcie *pci;
189 struct dw_pcie *pci = file->private_data; in lane_detect_read()
208 struct dw_pcie *pci = file->private_data; in lane_detect_write()
227 struct dw_pcie *pci = file->private_data; in rx_valid_read()
253 struct dw_pcie *pci = pdata->pci; in err_inj_write()
308 struct dw_pcie *pci, struct dwc_pcie_rasdes_info *rinfo) in set_event_number()
324 struct dw_pcie *pci = pdata->pci; in counter_enable_read()
347 struct dw_pcie *pci = pdata->pci; in counter_enable_write()
388 struct dw_pcie *pci = pdata->pci; in counter_lane_read()
408 struct dw_pcie *pci = pdata->pci; in counter_lane_write()
[all …]
H A Dpcie-designware.c65 static int dw_pcie_get_clocks(struct dw_pcie *pci) in dw_pcie_get_clocks()
84 static int dw_pcie_get_resets(struct dw_pcie *pci) in dw_pcie_get_resets()
113 int dw_pcie_get_resources(struct dw_pcie *pci) in dw_pcie_get_resources()
202 void dw_pcie_version_detect(struct dw_pcie *pci) in dw_pcie_version_detect()
226 u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_capability()
233 u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_ext_capability()
239 void dw_pcie_remove_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_remove_capability()
261 void dw_pcie_remove_ext_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_remove_ext_capability()
293 static u16 __dw_pcie_find_vsec_capability(struct dw_pcie *pci, u16 vendor_id, in __dw_pcie_find_vsec_capability()
312 static u16 dw_pcie_find_vsec_capability(struct dw_pcie *pci, in dw_pcie_find_vsec_capability()
[all …]
H A Dpci-exynos.c55 struct dw_pcie pci;
73 struct dw_pcie *pci = &ep->pci; in exynos_pcie_sideband_dbi_w_mode()
86 struct dw_pcie *pci = &ep->pci; in exynos_pcie_sideband_dbi_r_mode()
99 struct dw_pcie *pci = &ep->pci; in exynos_pcie_assert_core_reset()
111 struct dw_pcie *pci = &ep->pci; in exynos_pcie_deassert_core_reset()
124 static int exynos_pcie_start_link(struct dw_pcie *pci) in exynos_pcie_start_link()
140 struct dw_pcie *pci = &ep->pci; in exynos_pcie_clear_irq_pulse()
157 struct dw_pcie *pci = &ep->pci; in exynos_pcie_enable_irq_pulse()
167 static u32 exynos_pcie_read_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_read_dbi()
179 static void exynos_pcie_write_dbi(struct dw_pcie *pci, void __iomem *base, in exynos_pcie_write_dbi()
[all …]
H A Dpci-layerscape.c64 struct dw_pcie *pci;
77 struct dw_pcie *pci = pcie->pci; in ls_pcie_is_bridge()
89 struct dw_pcie *pci = pcie->pci; in ls_pcie_clear_multifunction()
98 struct dw_pcie *pci = pcie->pci; in ls_pcie_drop_msg_tlp()
108 struct dw_pcie *pci = pcie->pci; in ls_pcie_fix_error_response()
131 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_send_turnoff_msg()
150 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_exit_from_l2()
179 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_host_init()
213 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021a_pcie_send_turnoff_msg()
230 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021a_pcie_exit_from_l2()
[all …]
H A Dpcie-spacemit-k1.c53 struct dw_pcie pci;
60 #define to_k1_pcie(dw_pcie) \ argument
61 platform_get_drvdata(to_platform_device((dw_pcie)->dev))
84 struct dw_pcie *pci = &k1->pci; in k1_pcie_enable_resources()
107 struct dw_pcie *pci = &k1->pci; in k1_pcie_disable_resources()
116 struct dw_pcie *pci = &k1->pci; in k1_pcie_disable_aspm_l1()
132 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in k1_pcie_init()
186 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in k1_pcie_deinit()
203 static bool k1_pcie_link_up(struct dw_pcie *pci) in k1_pcie_link_up()
213 static int k1_pcie_start_link(struct dw_pcie *pci) in k1_pcie_start_link()
[all …]
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()
140 struct dw_pcie *pci = to_dw_pcie_from_pp(bus->sysdata); in histb_pcie_wr_own_conf()
154 static bool histb_pcie_link_up(struct dw_pcie *pci) in histb_pcie_link_up()
167 static int histb_pcie_start_link(struct dw_pcie *pci) in histb_pcie_start_link()
182 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_host_init()
[all …]
H A Dpcie-designware-ep.c39 static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, u8 func_no, in __dw_pcie_ep_reset_bar()
61 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_write_header()
117 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_ib_atu_bar()
153 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_clear_ib_maps()
209 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_validate_submap()
262 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_ib_atu_addr()
332 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_outbound_atu()
357 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_clear_bar()
398 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_pcie_ep_set_bar_resizable()
[all …]
H A Dpcie-rcar-gen4.c81 struct dw_pcie dw;
90 static bool rcar_gen4_pcie_link_up(struct dw_pcie *dw) in rcar_gen4_pcie_link_up()
105 static int rcar_gen4_pcie_speed_change(struct dw_pcie *dw) in rcar_gen4_pcie_speed_change()
132 static int rcar_gen4_pcie_start_link(struct dw_pcie *dw) in rcar_gen4_pcie_start_link()
165 static void rcar_gen4_pcie_stop_link(struct dw_pcie *dw) in rcar_gen4_pcie_stop_link()
175 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_common_init()
242 struct dw_pcie *dw = &rcar->dw; in rcar_gen4_pcie_common_deinit()
311 struct dw_pcie *dw = to_dw_pcie_from_pp(pp); in rcar_gen4_pcie_host_init()
345 struct dw_pcie *dw = to_dw_pcie_from_pp(pp); in rcar_gen4_pcie_host_deinit()
378 struct dw_pcie *dw = to_dw_pcie_from_ep(ep); in rcar_gen4_pcie_ep_pre_init()
[all …]
H A Dpcie-stm32-ep.c22 struct dw_pcie pci;
33 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in stm32_pcie_ep_init()
40 static int stm32_pcie_start_link(struct dw_pcie *pci) in stm32_pcie_start_link()
49 static void stm32_pcie_stop_link(struct dw_pcie *pci) in stm32_pcie_stop_link()
59 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in stm32_pcie_raise_irq()
117 static void stm32_pcie_perst_assert(struct dw_pcie *pci) in stm32_pcie_perst_assert()
135 static void stm32_pcie_perst_deassert(struct dw_pcie *pci) in stm32_pcie_perst_deassert()
185 struct dw_pcie *pci = &stm32_pcie->pci; in stm32_pcie_ep_perst_irq_thread()
312 struct dw_pcie *pci = &stm32_pcie->pci; in stm32_pcie_remove()
H A Dpci-layerscape-ep.c44 struct dw_pcie *pci;
54 struct dw_pcie *pci = pcie->pci; in ls_pcie_pf_lut_readl()
64 struct dw_pcie *pci = pcie->pci; in ls_pcie_pf_lut_writel()
75 struct dw_pcie *pci = pcie->pci; in ls_pcie_ep_event_handler()
144 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_get_features()
152 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_init()
171 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_raise_irq()
189 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_get_dbi_offset()
229 struct dw_pcie *pci; in ls_pcie_ep_probe()
H A Dpcie-keembay.c59 struct dw_pcie pci;
104 static bool keembay_pcie_link_up(struct dw_pcie *pci) in keembay_pcie_link_up()
114 static int keembay_pcie_start_link(struct dw_pcie *pci) in keembay_pcie_start_link()
138 static void keembay_pcie_stop_link(struct dw_pcie *pci) in keembay_pcie_stop_link()
187 struct dw_pcie *pci = &pcie->pci; in keembay_pcie_probe_clocks()
211 struct dw_pcie *pci = &pcie->pci; in keembay_pcie_pll_init()
268 struct dw_pcie *pci = &pcie->pci; in keembay_pcie_setup_msi_irq()
285 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in keembay_pcie_ep_init()
294 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in keembay_pcie_ep_raise_irq()
342 struct dw_pcie *pci = &pcie->pci; in keembay_pcie_add_pcie_port()
[all …]
H A Dpcie-designware-host.c68 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_handle_msi_irq()
104 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg()
118 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_mask()
133 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_unmask()
148 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_bottom_ack()
210 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_allocate_domains()
243 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_msi_init()
270 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_parse_split_msi_irq()
310 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_msi_host_init()
396 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pcie_host_request_msg_tlp_res()
[all …]
H A Dpci-dra7xx.c89 struct dw_pcie *pci;
116 static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_addr) in dra7xx_pcie_cpu_addr_fixup()
121 static bool dra7xx_pcie_link_up(struct dw_pcie *pci) in dra7xx_pcie_link_up()
129 static void dra7xx_pcie_stop_link(struct dw_pcie *pci) in dra7xx_pcie_stop_link()
139 static int dra7xx_pcie_establish_link(struct dw_pcie *pci) in dra7xx_pcie_establish_link()
183 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_host_init()
207 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_handle_msi()
229 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dra7xx_pcie_handle_msi_irq()
259 struct dw_pcie *pci; in dra7xx_pcie_msi_irq_handler()
291 struct dw_pcie *pci = dra7xx->pci; in dra7xx_pcie_irq_handler()
[all …]
H A Dpcie-spear13xx.c25 struct dw_pcie *pci;
69 static int spear13xx_pcie_start_link(struct dw_pcie *pci) in spear13xx_pcie_start_link()
87 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_irq_handler()
113 static bool spear13xx_pcie_link_up(struct dw_pcie *pci) in spear13xx_pcie_link_up()
123 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in spear13xx_pcie_host_init()
154 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_add_pcie_port()
191 struct dw_pcie *pci; in spear13xx_pcie_probe()
H A Dpcie-nxp-s32g.c46 struct dw_pcie pci;
82 static int s32g_pcie_start_link(struct dw_pcie *pci) in s32g_pcie_start_link()
91 static void s32g_pcie_stop_link(struct dw_pcie *pci) in s32g_pcie_stop_link()
104 static void s32g_pcie_reset_mstr_ace(struct dw_pcie *pci) in s32g_pcie_reset_mstr_ace()
136 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in s32g_init_pcie_controller()
177 struct dw_pcie *pci = &s32g_pp->pci; in s32g_init_pcie_phy()
298 struct dw_pcie *pci = &s32g_pp->pci; in s32g_pcie_get_resources()
367 struct dw_pcie *pci = &s32g_pp->pci; in s32g_pcie_suspend_noirq()
375 struct dw_pcie *pci = &s32g_pp->pci; in s32g_pcie_resume_noirq()
H A Dpcie-artpec6.c33 struct dw_pcie *pci;
97 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_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()
341 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in artpec6_pcie_ep_init()
357 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in artpec6_pcie_raise_irq()
[all …]
H A Dpcie-visconti.c28 struct dw_pcie pci;
124 static bool visconti_pcie_link_up(struct dw_pcie *pci) in visconti_pcie_link_up()
133 static int visconti_pcie_start_link(struct dw_pcie *pci) in visconti_pcie_start_link()
161 static void visconti_pcie_stop_link(struct dw_pcie *pci) in visconti_pcie_stop_link()
179 static u64 visconti_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_addr) in visconti_pcie_cpu_addr_fixup()
195 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in visconti_pcie_host_init()
280 struct dw_pcie *pci = &pcie->pci; in visconti_add_pcie_port()
296 struct dw_pcie *pci; in visconti_pcie_probe()
H A Dpcie-uniphier.c65 struct dw_pcie pci;
138 static bool uniphier_pcie_link_up(struct dw_pcie *pci) in uniphier_pcie_link_up()
149 static int uniphier_pcie_start_link(struct dw_pcie *pci) in uniphier_pcie_start_link()
158 static void uniphier_pcie_stop_link(struct dw_pcie *pci) in uniphier_pcie_stop_link()
175 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_mask()
192 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_unmask()
229 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_irq_handler()
263 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_config_intx_irq()
300 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in uniphier_pcie_host_init()
H A Dpcie-armada8k.c30 struct dw_pcie *pci;
112 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_setup_phys()
142 static bool armada8k_pcie_link_up(struct dw_pcie *pci) in armada8k_pcie_link_up()
156 static int armada8k_pcie_start_link(struct dw_pcie *pci) in armada8k_pcie_start_link()
171 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in armada8k_pcie_host_init()
213 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_irq_handler()
234 struct dw_pcie *pci = pcie->pci; in armada8k_add_pcie_port()
268 struct dw_pcie *pci; in armada8k_pcie_probe()
H A Dpcie-sophgo.c27 struct dw_pcie pci;
48 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_pcie_intx_handler()
66 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_intx_irq_mask()
83 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_intx_irq_unmask()
118 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_pcie_init_irq_domain()
150 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_pcie_msi_enable()
166 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in sophgo_pcie_disable_l0s_l1()
H A Dpcie-qcom-common.h9 struct dw_pcie;
11 void qcom_pcie_common_set_equalization(struct dw_pcie *pci);
12 void qcom_pcie_common_set_16gt_lane_margining(struct dw_pcie *pci);
H A Dpcie-dw-rockchip.c91 struct dw_pcie pci;
196 static enum dw_pcie_ltssm rockchip_pcie_get_ltssm(struct dw_pcie *pci) in rockchip_pcie_get_ltssm()
223 static bool rockchip_pcie_link_up(struct dw_pcie *pci) in rockchip_pcie_link_up()
238 static void rockchip_pcie_configure_l1ss(struct dw_pcie *pci) in rockchip_pcie_configure_l1ss()
260 static void rockchip_pcie_enable_l0s(struct dw_pcie *pci) in rockchip_pcie_enable_l0s()
275 static int rockchip_pcie_start_link(struct dw_pcie *pci) in rockchip_pcie_start_link()
299 static void rockchip_pcie_stop_link(struct dw_pcie *pci) in rockchip_pcie_stop_link()
308 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in rockchip_pcie_host_init()
351 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in rockchip_pcie_ep_hide_broken_ats_cap_rk3588()
363 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in rockchip_pcie_ep_init()
[all …]
H A Dpcie-designware-plat.c24 struct dw_pcie *pci;
37 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_init()
47 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in dw_plat_pcie_ep_raise_irq()
84 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_port()
109 struct dw_pcie *pci; in dw_plat_pcie_probe()
H A Dpcie-qcom-ep.c203 struct dw_pcie pci;
232 struct dw_pcie *pci = &pcie_ep->pci; in qcom_pcie_ep_core_reset()
268 static bool qcom_pcie_dw_link_up(struct dw_pcie *pci) in qcom_pcie_dw_link_up()
277 static int qcom_pcie_dw_start_link(struct dw_pcie *pci) in qcom_pcie_dw_start_link()
286 static void qcom_pcie_dw_stop_link(struct dw_pcie *pci) in qcom_pcie_dw_stop_link()
293 static void qcom_pcie_dw_write_dbi2(struct dw_pcie *pci, void __iomem *base, in qcom_pcie_dw_write_dbi2()
309 struct dw_pcie *pci = &pcie_ep->pci; in qcom_pcie_ep_icc_update()
331 struct dw_pcie *pci = &pcie_ep->pci; in qcom_pcie_enable_resources()
396 static int qcom_pcie_perst_deassert(struct dw_pcie *pci) in qcom_pcie_perst_deassert()
569 static void qcom_pcie_perst_assert(struct dw_pcie *pci) in qcom_pcie_perst_assert()
[all …]

12