Home
last modified time | relevance | path

Searched refs:stmmac_res (Results 1 – 20 of 20) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-dwc-qos-eth.c124 struct stmmac_resources *stmmac_res) in dwc_qos_probe() argument
427 struct stmmac_resources stmmac_res; in dwc_eth_dwmac_probe() local
433 memset(&stmmac_res, 0, sizeof(struct stmmac_resources)); in dwc_eth_dwmac_probe()
439 stmmac_res.irq = platform_get_irq(pdev, 0); in dwc_eth_dwmac_probe()
440 if (stmmac_res.irq < 0) in dwc_eth_dwmac_probe()
441 return stmmac_res.irq; in dwc_eth_dwmac_probe()
442 stmmac_res.wol_irq = stmmac_res.irq; in dwc_eth_dwmac_probe()
444 stmmac_res.addr = devm_platform_ioremap_resource(pdev, 0); in dwc_eth_dwmac_probe()
445 if (IS_ERR(stmmac_res.addr)) in dwc_eth_dwmac_probe()
446 return PTR_ERR(stmmac_res.addr); in dwc_eth_dwmac_probe()
[all …]
Dstmmac_platform.c660 struct stmmac_resources *stmmac_res) in stmmac_get_platform_resources() argument
662 memset(stmmac_res, 0, sizeof(*stmmac_res)); in stmmac_get_platform_resources()
667 stmmac_res->irq = platform_get_irq_byname(pdev, "macirq"); in stmmac_get_platform_resources()
668 if (stmmac_res->irq < 0) in stmmac_get_platform_resources()
669 return stmmac_res->irq; in stmmac_get_platform_resources()
678 stmmac_res->wol_irq = in stmmac_get_platform_resources()
680 if (stmmac_res->wol_irq < 0) { in stmmac_get_platform_resources()
681 if (stmmac_res->wol_irq == -EPROBE_DEFER) in stmmac_get_platform_resources()
684 stmmac_res->wol_irq = stmmac_res->irq; in stmmac_get_platform_resources()
687 stmmac_res->lpi_irq = in stmmac_get_platform_resources()
[all …]
Ddwmac-lpc18xx.c31 struct stmmac_resources stmmac_res; in lpc18xx_dwmac_probe() local
36 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in lpc18xx_dwmac_probe()
40 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in lpc18xx_dwmac_probe()
66 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in lpc18xx_dwmac_probe()
Ddwmac-generic.c22 struct stmmac_resources stmmac_res; in dwmac_generic_probe() local
25 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in dwmac_generic_probe()
30 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in dwmac_generic_probe()
56 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in dwmac_generic_probe()
Ddwmac-meson.c47 struct stmmac_resources stmmac_res; in meson6_dwmac_probe() local
51 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in meson6_dwmac_probe()
55 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson6_dwmac_probe()
74 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson6_dwmac_probe()
Ddwmac-intel-plat.c80 struct stmmac_resources stmmac_res; in intel_eth_plat_probe() local
87 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in intel_eth_plat_probe()
91 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in intel_eth_plat_probe()
158 writel(tx_lpi_usec, stmmac_res.addr + GMAC_1US_TIC_COUNTER); in intel_eth_plat_probe()
161 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in intel_eth_plat_probe()
Ddwmac-anarion.c108 struct stmmac_resources stmmac_res; in anarion_dwmac_probe() local
110 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in anarion_dwmac_probe()
118 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in anarion_dwmac_probe()
127 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in anarion_dwmac_probe()
Ddwmac-oxnas.c113 struct stmmac_resources stmmac_res; in oxnas_dwmac_probe() local
117 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in oxnas_dwmac_probe()
121 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in oxnas_dwmac_probe()
154 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in oxnas_dwmac_probe()
Ddwmac-sunxi.c102 struct stmmac_resources stmmac_res; in sun7i_gmac_probe() local
107 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in sun7i_gmac_probe()
111 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sun7i_gmac_probe()
160 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sun7i_gmac_probe()
Ddwmac-imx.c216 struct stmmac_resources stmmac_res; in imx_dwmac_probe() local
221 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in imx_dwmac_probe()
229 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in imx_dwmac_probe()
260 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in imx_dwmac_probe()
Ddwmac-ipq806x.c248 struct stmmac_resources stmmac_res; in ipq806x_gmac_probe() local
254 val = stmmac_get_platform_resources(pdev, &stmmac_res); in ipq806x_gmac_probe()
258 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in ipq806x_gmac_probe()
351 err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in ipq806x_gmac_probe()
Ddwmac-sti.c314 struct stmmac_resources stmmac_res; in sti_dwmac_probe() local
324 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in sti_dwmac_probe()
328 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sti_dwmac_probe()
357 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sti_dwmac_probe()
Ddwmac-meson8b.c365 struct stmmac_resources stmmac_res; in meson8b_dwmac_probe() local
369 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in meson8b_dwmac_probe()
373 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson8b_dwmac_probe()
440 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson8b_dwmac_probe()
Ddwmac-mediatek.c382 struct stmmac_resources stmmac_res; in mediatek_dwmac_probe() local
406 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in mediatek_dwmac_probe()
410 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in mediatek_dwmac_probe()
425 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in mediatek_dwmac_probe()
Ddwmac-socfpga.c382 struct stmmac_resources stmmac_res; in socfpga_dwmac_probe() local
396 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in socfpga_dwmac_probe()
400 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in socfpga_dwmac_probe()
429 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in socfpga_dwmac_probe()
Ddwmac-stm32.c367 struct stmmac_resources stmmac_res; in stm32_dwmac_probe() local
372 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in stm32_dwmac_probe()
376 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in stm32_dwmac_probe()
408 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in stm32_dwmac_probe()
Ddwmac-qcom-ethqos.c454 struct stmmac_resources stmmac_res; in qcom_ethqos_probe() local
460 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in qcom_ethqos_probe()
464 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in qcom_ethqos_probe()
511 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in qcom_ethqos_probe()
Dstmmac_platform.h20 struct stmmac_resources *stmmac_res);
Ddwmac-sun8i.c1129 struct stmmac_resources stmmac_res; in sun8i_dwmac_probe() local
1138 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in sun8i_dwmac_probe()
1206 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sun8i_dwmac_probe()
1232 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sun8i_dwmac_probe()
Ddwmac-rk.c1375 struct stmmac_resources stmmac_res; in rk_gmac_probe() local
1385 ret = stmmac_get_platform_resources(pdev, &stmmac_res); in rk_gmac_probe()
1389 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in rk_gmac_probe()
1410 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in rk_gmac_probe()