Home
last modified time | relevance | path

Searched refs:dwmac (Results 1 – 13 of 13) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-stm32.c176 dwmac->enable_eth_ck = dwmac->ext_phyclk; in stm32mp1_select_ethck_external()
179 dwmac->enable_eth_ck = dwmac->eth_clk_sel_reg || in stm32mp1_select_ethck_external()
183 dwmac->enable_eth_ck = dwmac->eth_ref_clk_sel_reg || in stm32mp1_select_ethck_external()
190 dwmac->enable_eth_ck = dwmac->eth_clk_sel_reg || in stm32mp1_select_ethck_external()
283 regmap_write(dwmac->regmap, dwmac->ops->syscfg_clr_off, in stm32mp1_configure_pmcr()
411 err = dwmac->ops->parse_data(dwmac, dev); in stm32_dwmac_parse_data()
484 if (!dwmac->clk_eth_ck && dwmac->irq_pwr_wakeup >= 0) { in stm32mp1_parse_data()
517 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in stm32_dwmac_probe()
518 if (!dwmac) in stm32_dwmac_probe()
619 ret = dwmac->ops->suspend(dwmac); in stm32_dwmac_suspend()
[all …]
A Ddwmac-meson8b.c324 dev_err(dwmac->dev, in meson8b_init_rgmii_delays()
333 dev_err(dwmac->dev, in meson8b_init_rgmii_delays()
366 dev_err(dwmac->dev, in meson8b_init_prg_eth()
374 dev_err(dwmac->dev, in meson8b_init_prg_eth()
407 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson8b_dwmac_probe()
408 if (!dwmac) in meson8b_dwmac_probe()
413 if (!dwmac->data) in meson8b_dwmac_probe()
438 if (dwmac->rx_delay_ps > 3000 || dwmac->rx_delay_ps % 200) { in meson8b_dwmac_probe()
444 if (dwmac->rx_delay_ps != 0 && dwmac->rx_delay_ps != 2000) { in meson8b_dwmac_probe()
451 dwmac->timing_adj_clk = devm_clk_get_optional(dwmac->dev, in meson8b_dwmac_probe()
[all …]
A Ddwmac-imx.c97 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx8mp_set_intf_mode()
143 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_set_intf_mode()
244 if (regmap_read(dwmac->intf_regmap, dwmac->intf_reg_off, &iface)) in imx93_dwmac_fix_speed()
253 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed()
262 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed()
301 dwmac->clk_mem = NULL; in imx_dwmac_parse_dt()
318 dwmac->intf_regmap = in imx_dwmac_parse_dt()
340 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in imx_dwmac_probe()
341 if (!dwmac) in imx_dwmac_probe()
354 dwmac->ops = data; in imx_dwmac_probe()
[all …]
A Ddwmac-socfpga.c169 dwmac->splitter_base = in socfpga_dwmac_parse_data()
213 dwmac->tse_pcs_base = in socfpga_dwmac_parse_data()
225 dwmac->dev = dev; in socfpga_dwmac_parse_data()
288 if (dwmac->splitter_base) in socfpga_gen5_set_phy_mode()
310 if (dwmac->f2h_ptp_ref_clk) in socfpga_gen5_set_phy_mode()
344 if (dwmac->splitter_base) in socfpga_gen10_set_phy_mode()
394 if (!dwmac->tse_pcs_base) in socfpga_dwmac_pcs_init()
441 return dwmac->ops->set_phy_mode(dwmac); in socfpga_dwmac_init()
467 dwmac = devm_kzalloc(dev, sizeof(*dwmac), GFP_KERNEL); in socfpga_dwmac_probe()
468 if (!dwmac) in socfpga_dwmac_probe()
[all …]
A Ddwmac-sti.c134 u32 reg = dwmac->ctrl_reg; in stih4xx_fix_retime_src()
140 if (dwmac->ext_phyclk) { in stih4xx_fix_retime_src()
169 if (dwmac->gmac_en) in sti_dwmac_set_mode()
177 dwmac->fix_retime_src(dwmac, dwmac->speed, 0); in sti_dwmac_set_mode()
204 dwmac->regmap = regmap; in sti_dwmac_parse_data()
208 dwmac->speed = SPEED_100; in sti_dwmac_parse_data()
228 if (IS_ERR(dwmac->clk)) { in sti_dwmac_parse_data()
230 dwmac->clk = NULL; in sti_dwmac_parse_data()
264 struct sti_dwmac *dwmac; in sti_dwmac_probe() local
281 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in sti_dwmac_probe()
[all …]
A DMakefile21 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
24 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
25 obj-$(CONFIG_DWMAC_RZN1) += dwmac-rzn1.o
26 obj-$(CONFIG_DWMAC_S32) += dwmac-s32.o
30 obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o
31 obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o
32 obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o
33 obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o
34 obj-$(CONFIG_DWMAC_THEAD) += dwmac-thead.o
39 obj-$(CONFIG_DWMAC_IMX8) += dwmac-imx.o
[all …]
A Ddwmac-intel-plat.c46 struct intel_dwmac *dwmac; in intel_eth_plat_probe() local
60 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in intel_eth_plat_probe()
61 if (!dwmac) in intel_eth_plat_probe()
64 dwmac->dev = &pdev->dev; in intel_eth_plat_probe()
65 dwmac->tx_clk = NULL; in intel_eth_plat_probe()
75 if (dwmac->data->tx_clk_en) { in intel_eth_plat_probe()
77 if (IS_ERR(dwmac->tx_clk)) in intel_eth_plat_probe()
78 return PTR_ERR(dwmac->tx_clk); in intel_eth_plat_probe()
116 plat_dat->bsp_priv = dwmac; in intel_eth_plat_probe()
125 if (dwmac->data->tx_clk_en) in intel_eth_plat_probe()
[all …]
A Ddwmac-thead.c56 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if() local
107 struct thead_dwmac *dwmac = bsp_priv; in thead_set_clk_tx_rate() local
113 plat = dwmac->plat; in thead_set_clk_tx_rate()
184 struct thead_dwmac *dwmac = priv; in thead_dwmac_init() local
213 struct thead_dwmac *dwmac; in thead_dwmac_probe() local
241 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in thead_dwmac_probe()
242 if (!dwmac) in thead_dwmac_probe()
250 dwmac->dev = &pdev->dev; in thead_dwmac_probe()
251 dwmac->plat = plat; in thead_dwmac_probe()
252 dwmac->apb_base = apb; in thead_dwmac_probe()
[all …]
A Ddwmac-visconti.c58 struct visconti_eth *dwmac = bsp_priv; in visconti_eth_set_clk_tx_rate() local
80 val = readl(dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate()
180 dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_init_hw()
196 if (IS_ERR(dwmac->phy_ref_clk)) in visconti_eth_clock_probe()
215 clk_disable_unprepare(dwmac->phy_ref_clk); in visconti_eth_clock_remove()
223 struct visconti_eth *dwmac; in visconti_eth_dwmac_probe() local
234 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in visconti_eth_dwmac_probe()
235 if (!dwmac) in visconti_eth_dwmac_probe()
238 dwmac->reg = stmmac_res.addr; in visconti_eth_dwmac_probe()
239 dwmac->dev = &pdev->dev; in visconti_eth_dwmac_probe()
[all …]
A Ddwmac-starfive.c35 struct starfive_dwmac *dwmac = plat_dat->bsp_priv; in starfive_dwmac_set_mode() local
54 dev_err(dwmac->dev, "unsupported interface %d\n", in starfive_dwmac_set_mode()
72 if (dwmac->data) { in starfive_dwmac_set_mode()
74 dwmac->data->gtxclk_dlychain); in starfive_dwmac_set_mode()
76 return dev_err_probe(dwmac->dev, err, in starfive_dwmac_set_mode()
87 struct starfive_dwmac *dwmac; in starfive_dwmac_probe() local
101 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in starfive_dwmac_probe()
102 if (!dwmac) in starfive_dwmac_probe()
105 dwmac->data = device_get_match_data(&pdev->dev); in starfive_dwmac_probe()
126 dwmac->dev = &pdev->dev; in starfive_dwmac_probe()
[all …]
A Ddwmac-loongson1.c72 dwmac->id = 0; in ls1b_dwmac_setup()
74 dwmac->id = 1; in ls1b_dwmac_setup()
86 struct ls1x_dwmac *dwmac = priv; in ls1b_dwmac_syscon_init() local
90 if (dwmac->id == 0) { in ls1b_dwmac_syscon_init()
109 } else if (dwmac->id == 1) { in ls1b_dwmac_syscon_init()
170 struct ls1x_dwmac *dwmac; in ls1x_dwmac_probe() local
190 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in ls1x_dwmac_probe()
191 if (!dwmac) in ls1x_dwmac_probe()
199 plat_dat->bsp_priv = dwmac; in ls1x_dwmac_probe()
201 dwmac->plat_dat = plat_dat; in ls1x_dwmac_probe()
[all …]
A Ddwmac-meson.c28 struct meson_dwmac *dwmac = bsp_priv; in meson6_dwmac_set_clk_tx_rate() local
31 val = readl(dwmac->reg); in meson6_dwmac_set_clk_tx_rate()
42 writel(val, dwmac->reg); in meson6_dwmac_set_clk_tx_rate()
51 struct meson_dwmac *dwmac; in meson6_dwmac_probe() local
62 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson6_dwmac_probe()
63 if (!dwmac) in meson6_dwmac_probe()
66 dwmac->reg = devm_platform_ioremap_resource(pdev, 1); in meson6_dwmac_probe()
67 if (IS_ERR(dwmac->reg)) in meson6_dwmac_probe()
68 return PTR_ERR(dwmac->reg); in meson6_dwmac_probe()
70 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
A DKconfig95 Select the QCOM_SOCINFO config flag to enable specific dwmac
115 tristate "Amlogic Meson dwmac support"
147 tristate "Rockchip dwmac support"
158 tristate "Renesas RZ/N1 dwmac support"
182 tristate "SOCFPGA dwmac support"
197 tristate "Sophgo dwmac support"
208 tristate "StarFive dwmac support"
267 tristate "T-HEAD dwmac support"
289 tristate "Intel dwmac support"

Completed in 622 milliseconds