Searched refs:dwmac (Results 1 - 11 of 11) sorted by relevance

/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A DMakefile16 obj-$(CONFIG_DWMAC_ANARION) += dwmac-anarion.o
17 obj-$(CONFIG_DWMAC_INGENIC) += dwmac-ingenic.o
18 obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o
19 obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o
20 obj-$(CONFIG_DWMAC_MEDIATEK) += dwmac-mediatek.o
21 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
22 obj-$(CONFIG_DWMAC_QCOM_ETHQOS) += dwmac-qcom-ethqos.o
23 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
24 obj-$(CONFIG_DWMAC_RZN1) += dwmac
[all...]
H A Ddwmac-stm32.c3 * dwmac-stm32.c - DWMAC Specific Glue layer for STM32 MCU
101 int (*suspend)(struct stm32_dwmac *dwmac);
102 void (*resume)(struct stm32_dwmac *dwmac);
103 int (*parse_data)(struct stm32_dwmac *dwmac,
109 static int stm32_dwmac_clk_enable(struct stm32_dwmac *dwmac, bool resume) argument
113 ret = clk_prepare_enable(dwmac->clk_tx);
117 if (!dwmac->ops->clk_rx_enable_in_suspend || !resume) {
118 ret = clk_prepare_enable(dwmac->clk_rx);
123 ret = clk_prepare_enable(dwmac->syscfg_clk);
127 if (dwmac
148 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; local
162 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; local
223 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; local
247 stm32_dwmac_clk_disable(struct stm32_dwmac *dwmac, bool suspend) argument
258 stm32_dwmac_parse_data(struct stm32_dwmac *dwmac, struct device *dev) argument
295 stm32mp1_parse_data(struct stm32_dwmac *dwmac, struct device *dev) argument
361 struct stm32_dwmac *dwmac; local
414 struct stm32_dwmac *dwmac = priv->plat->bsp_priv; local
426 stm32mp1_suspend(struct stm32_dwmac *dwmac) argument
431 stm32mp1_resume(struct stm32_dwmac *dwmac) argument
441 struct stm32_dwmac *dwmac = priv->plat->bsp_priv; local
461 struct stm32_dwmac *dwmac = priv->plat->bsp_priv; local
[all...]
H A Ddwmac-imx.c3 * dwmac-imx.c - DWMAC Specific Glue layer for NXP imx8
70 struct imx_priv_data *dwmac = plat_dat->bsp_priv; local
79 val |= (dwmac->rmii_refclk_ext ? 0 : GPR_ENET_QOS_CLK_TX_CLK_SEL);
89 pr_debug("imx dwmac doesn't support %d interface\n",
95 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off,
110 struct imx_priv_data *dwmac = plat_dat->bsp_priv; local
127 dev_dbg(dwmac->dev, "imx dwmac doesn't support %d interface\n",
133 return regmap_update_bits(dwmac
139 struct imx_priv_data *dwmac = priv; local
166 struct imx_priv_data *dwmac = priv; local
188 struct imx_priv_data *dwmac = priv; local
221 struct imx_priv_data *dwmac = priv; local
274 imx_dwmac_parse_dt(struct imx_priv_data *dwmac, struct device *dev) argument
322 struct imx_priv_data *dwmac; local
[all...]
H A Ddwmac-meson8b.c84 int (*set_phy_mode)(struct meson8b_dwmac *dwmac);
107 static void meson8b_dwmac_mask_bits(struct meson8b_dwmac *dwmac, u32 reg, argument
112 data = readl(dwmac->regs + reg);
116 writel(data, dwmac->regs + reg);
119 static struct clk *meson8b_dwmac_register_clk(struct meson8b_dwmac *dwmac, argument
129 snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dwmac->dev),
140 return devm_clk_register(dwmac->dev, hw);
143 static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) argument
146 struct device *dev = dwmac->dev;
167 clk_configs->m250_mux.reg = dwmac
213 meson8b_set_phy_mode(struct meson8b_dwmac *dwmac) argument
239 meson_axg_set_phy_mode(struct meson8b_dwmac *dwmac) argument
271 meson8b_devm_clk_prepare_enable(struct meson8b_dwmac *dwmac, struct clk *clk) argument
284 meson8b_init_rgmii_delays(struct meson8b_dwmac *dwmac) argument
350 meson8b_init_prg_eth(struct meson8b_dwmac *dwmac) argument
396 struct meson8b_dwmac *dwmac; local
[all...]
H A Ddwmac-intel-plat.c33 struct intel_dwmac *dwmac = priv; local
37 rate = clk_get_rate(dwmac->tx_clk);
53 dev_err(dwmac->dev, "Invalid speed\n");
57 ret = clk_set_rate(dwmac->tx_clk, rate);
59 dev_err(dwmac->dev, "Failed to configure tx clock rate\n");
70 { .compatible = "intel,keembay-dwmac", .data = &kmb_data },
79 struct intel_dwmac *dwmac; local
93 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL);
94 if (!dwmac)
162 struct intel_dwmac *dwmac = get_stmmac_bsp_priv(&pdev->dev); local
[all...]
H A Ddwmac-visconti.c59 struct visconti_eth *dwmac = priv; local
60 struct net_device *netdev = dev_get_drvdata(dwmac->dev);
64 spin_lock_irqsave(&dwmac->lock, flags);
67 val = readl(dwmac->reg + MAC_CTRL_REG);
72 if (dwmac->phy_intf_sel == ETHER_CONFIG_INTF_RGMII)
76 if (dwmac->phy_intf_sel == ETHER_CONFIG_INTF_RGMII)
78 if (dwmac->phy_intf_sel == ETHER_CONFIG_INTF_RMII)
83 if (dwmac->phy_intf_sel == ETHER_CONFIG_INTF_RGMII)
85 if (dwmac->phy_intf_sel == ETHER_CONFIG_INTF_RMII)
92 spin_unlock_irqrestore(&dwmac
144 struct visconti_eth *dwmac = plat_dat->bsp_priv; local
185 struct visconti_eth *dwmac = plat_dat->bsp_priv; local
204 struct visconti_eth *dwmac = get_stmmac_bsp_priv(&pdev->dev); local
216 struct visconti_eth *dwmac; local
[all...]
H A Ddwmac-meson.c27 struct meson_dwmac *dwmac = priv; local
30 val = readl(dwmac->reg);
41 writel(val, dwmac->reg);
48 struct meson_dwmac *dwmac; local
59 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL);
60 if (!dwmac)
63 dwmac->reg = devm_platform_ioremap_resource(pdev, 1);
64 if (IS_ERR(dwmac->reg))
65 return PTR_ERR(dwmac
[all...]
H A Ddwmac-sti.c3 * dwmac-sti.c - STMicroelectronics DWMAC Specific Glue layer
140 struct sti_dwmac *dwmac = priv; local
141 u32 src = dwmac->tx_retime_src;
142 u32 reg = dwmac->ctrl_reg;
145 if (dwmac->interface == PHY_INTERFACE_MODE_MII) {
147 } else if (dwmac->interface == PHY_INTERFACE_MODE_RMII) {
148 if (dwmac->ext_phyclk) {
154 } else if (IS_PHY_IF_MODE_RGMII(dwmac->interface)) {
169 clk_set_rate(dwmac->clk, freq);
171 regmap_update_bits(dwmac
175 sti_dwmac_set_mode(struct sti_dwmac *dwmac) argument
195 sti_dwmac_parse_data(struct sti_dwmac *dwmac, struct platform_device *pdev) argument
263 struct sti_dwmac *dwmac; local
317 struct sti_dwmac *dwmac = get_stmmac_bsp_priv(&pdev->dev); local
327 struct sti_dwmac *dwmac = get_stmmac_bsp_priv(dev); local
337 struct sti_dwmac *dwmac = get_stmmac_bsp_priv(dev); local
[all...]
H A Ddwmac-socfpga.c4 * Adopted from dwmac-sti.c
66 struct socfpga_dwmac *dwmac = (struct socfpga_dwmac *)priv; local
67 void __iomem *splitter_base = dwmac->splitter_base;
68 void __iomem *sgmii_adapter_base = dwmac->sgmii_adapter_base;
69 struct device *dev = dwmac->dev;
103 static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device *dev) argument
134 dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "altr,f2h_ptp_ref_clk");
145 dwmac->splitter_base = devm_ioremap_resource(dev, &res_splitter);
146 if (IS_ERR(dwmac->splitter_base)) {
148 return PTR_ERR(dwmac
234 socfpga_get_plat_phymode(struct socfpga_dwmac *dwmac) argument
242 socfpga_sgmii_config(struct socfpga_dwmac *dwmac, bool enable) argument
272 socfpga_gen5_set_phy_mode(struct socfpga_dwmac *dwmac) argument
330 socfpga_gen10_set_phy_mode(struct socfpga_dwmac *dwmac) argument
384 struct socfpga_dwmac *dwmac = priv->plat->bsp_priv; local
438 struct socfpga_dwmac *dwmac; local
[all...]
H A Ddwmac-starfive.c36 struct starfive_dwmac *dwmac = priv; local
40 rate = clk_get_rate(dwmac->clk_tx);
53 dev_err(dwmac->dev, "invalid speed %u\n", speed);
57 err = clk_set_rate(dwmac->clk_tx, rate);
59 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate);
64 struct starfive_dwmac *dwmac = plat_dat->bsp_priv; local
83 dev_err(dwmac->dev, "unsupported interface %d\n",
88 regmap = syscon_regmap_lookup_by_phandle_args(dwmac->dev->of_node,
92 return dev_err_probe(dwmac->dev, PTR_ERR(regmap), "getting the regmap failed\n");
99 return dev_err_probe(dwmac
116 struct starfive_dwmac *dwmac; local
[all...]
H A Ddwmac-loongson1.c51 struct ls1x_dwmac *dwmac = priv; local
52 struct plat_stmmacenet_data *plat = dwmac->plat_dat;
53 struct regmap *regmap = dwmac->regmap;
118 struct ls1x_dwmac *dwmac = priv; local
119 struct plat_stmmacenet_data *plat = dwmac->plat_dat;
120 struct regmap *regmap = dwmac->regmap;
147 struct ls1x_dwmac *dwmac; local
168 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL);
169 if (!dwmac)
[all...]

Completed in 134 milliseconds