Lines Matching full:dwmac
3 * StarFive DWMAC platform driver
35 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()
59 regmap = syscon_regmap_lookup_by_phandle_args(dwmac->dev->of_node, in starfive_dwmac_set_mode()
63 return dev_err_probe(dwmac->dev, PTR_ERR(regmap), "getting the regmap failed\n"); in starfive_dwmac_set_mode()
70 return dev_err_probe(dwmac->dev, err, "error setting phy mode\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()
128 plat_dat->bsp_priv = dwmac; in starfive_dwmac_probe()
143 { .compatible = "starfive,jh7100-dwmac", .data = &jh7100_data },
144 { .compatible = "starfive,jh7110-dwmac" },
153 .name = "starfive-dwmac",
161 MODULE_DESCRIPTION("StarFive DWMAC platform driver");