Home
last modified time | relevance | path

Searched refs:stmmac_clk (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-dwc-qos-eth.c128 plat_dat->stmmac_clk = devm_clk_get(&pdev->dev, "apb_pclk"); in dwc_qos_probe()
129 if (IS_ERR(plat_dat->stmmac_clk)) { in dwc_qos_probe()
131 return PTR_ERR(plat_dat->stmmac_clk); in dwc_qos_probe()
134 err = clk_prepare_enable(plat_dat->stmmac_clk); in dwc_qos_probe()
158 clk_disable_unprepare(plat_dat->stmmac_clk); in dwc_qos_probe()
168 clk_disable_unprepare(priv->plat->stmmac_clk); in dwc_qos_remove()
302 data->stmmac_clk = eqos->clk_slave; in tegra_eqos_probe()
H A Dstmmac_platform.c585 plat->stmmac_clk = devm_clk_get(&pdev->dev, in stmmac_probe_config_dt()
587 if (IS_ERR(plat->stmmac_clk)) { in stmmac_probe_config_dt()
589 plat->stmmac_clk = NULL; in stmmac_probe_config_dt()
591 clk_prepare_enable(plat->stmmac_clk); in stmmac_probe_config_dt()
604 plat->clk_ptp_rate = clk_get_rate(plat->stmmac_clk); in stmmac_probe_config_dt()
631 clk_disable_unprepare(plat->stmmac_clk); in stmmac_probe_config_dt()
679 clk_disable_unprepare(plat->stmmac_clk); in stmmac_remove_config_dt()
H A Ddwmac-intel.c536 plat->stmmac_clk = clk_register_fixed_rate(&pdev->dev, in intel_mgbe_common_data()
540 if (IS_ERR(plat->stmmac_clk)) { in intel_mgbe_common_data()
542 plat->stmmac_clk = NULL; in intel_mgbe_common_data()
545 ret = clk_prepare_enable(plat->stmmac_clk); in intel_mgbe_common_data()
547 clk_unregister_fixed_rate(plat->stmmac_clk); in intel_mgbe_common_data()
1122 clk_disable_unprepare(plat->stmmac_clk); in intel_eth_pci_probe()
1123 clk_unregister_fixed_rate(plat->stmmac_clk); in intel_eth_pci_probe()
1141 clk_disable_unprepare(priv->plat->stmmac_clk); in intel_eth_pci_remove()
1142 clk_unregister_fixed_rate(priv->plat->stmmac_clk); in intel_eth_pci_remove()
H A Ddwmac-visconti.c209 clk_disable_unprepare(priv->plat->stmmac_clk); in visconti_eth_clock_remove()
H A Dstmmac_ethtool.c936 unsigned long clk = clk_get_rate(priv->plat->stmmac_clk); in stmmac_usec2riwt()
949 unsigned long clk = clk_get_rate(priv->plat->stmmac_clk); in stmmac_riwt2usec()
H A Ddwmac4_core.c52 clk_rate = clk_get_rate(priv->plat->stmmac_clk); in dwmac4_core_init()
H A Dstmmac_main.c155 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
160 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
166 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
172 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
305 clk_rate = clk_get_rate(priv->plat->stmmac_clk); in stmmac_clk_csr_set()
/openbmc/linux/include/linux/
H A Dstmmac.h288 struct clk *stmmac_clk; member
/openbmc/linux/Documentation/networking/device_drivers/ethernet/stmicro/
H A Dstmmac.rst455 struct clk *stmmac_clk;