Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 ERR_CAST(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()
306 data->stmmac_clk = eqos->clk_slave; in tegra_eqos_probe()
H A Ddwmac-intel.c307 plat->stmmac_clk = clk_register_fixed_rate(&pdev->dev, in intel_mgbe_common_data()
311 if (IS_ERR(plat->stmmac_clk)) { in intel_mgbe_common_data()
313 plat->stmmac_clk = NULL; in intel_mgbe_common_data()
316 ret = clk_prepare_enable(plat->stmmac_clk); in intel_mgbe_common_data()
318 clk_unregister_fixed_rate(plat->stmmac_clk); in intel_mgbe_common_data()
649 clk_disable_unprepare(plat->stmmac_clk); in intel_eth_pci_probe()
650 clk_unregister_fixed_rate(plat->stmmac_clk); in intel_eth_pci_probe()
672 clk_disable_unprepare(priv->plat->stmmac_clk); in intel_eth_pci_remove()
673 clk_unregister_fixed_rate(priv->plat->stmmac_clk); in intel_eth_pci_remove()
H A Dstmmac_platform.c586 plat->stmmac_clk = devm_clk_get(&pdev->dev, in stmmac_probe_config_dt()
588 if (IS_ERR(plat->stmmac_clk)) { in stmmac_probe_config_dt()
590 plat->stmmac_clk = NULL; in stmmac_probe_config_dt()
592 clk_prepare_enable(plat->stmmac_clk); in stmmac_probe_config_dt()
607 plat->clk_ptp_rate = clk_get_rate(plat->stmmac_clk); in stmmac_probe_config_dt()
630 clk_disable_unprepare(plat->stmmac_clk); in stmmac_probe_config_dt()
645 clk_disable_unprepare(plat->stmmac_clk); in stmmac_remove_config_dt()
H A Dstmmac_ethtool.c751 unsigned long clk = clk_get_rate(priv->plat->stmmac_clk); in stmmac_usec2riwt()
764 unsigned long clk = clk_get_rate(priv->plat->stmmac_clk); in stmmac_riwt2usec()
H A Dstmmac_main.c129 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
134 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
138 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config()
/OK3568_Linux_fs/kernel/include/linux/
H A Dstmmac.h193 struct clk *stmmac_clk; member
/OK3568_Linux_fs/kernel/Documentation/networking/device_drivers/ethernet/stmicro/
H A Dstmmac.rst455 struct clk *stmmac_clk;