Lines Matching full:tx_clk

526 	if (!bp->tx_clk || (bp->caps & MACB_CAPS_CLK_HW_CHG))  in macb_set_tx_clk()
547 rate_rounded = clk_round_rate(bp->tx_clk, rate); in macb_set_tx_clk()
561 if (clk_set_rate(bp->tx_clk, rate_rounded)) in macb_set_tx_clk()
562 netdev_err(bp->dev, "adjusting tx_clk failed.\n"); in macb_set_tx_clk()
3999 static void macb_clks_disable(struct clk *pclk, struct clk *hclk, struct clk *tx_clk, in macb_clks_disable() argument
4007 { .clk = tx_clk }, in macb_clks_disable()
4014 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument
4039 *tx_clk = devm_clk_get_optional(&pdev->dev, "tx_clk"); in macb_clk_init()
4040 if (IS_ERR(*tx_clk)) in macb_clk_init()
4041 return PTR_ERR(*tx_clk); in macb_clk_init()
4063 err = clk_prepare_enable(*tx_clk); in macb_clk_init()
4065 dev_err(&pdev->dev, "failed to enable tx_clk (%d)\n", err); in macb_clk_init()
4087 clk_disable_unprepare(*tx_clk); in macb_clk_init()
4596 struct clk **hclk, struct clk **tx_clk, in at91ether_clk_init() argument
4602 *tx_clk = NULL; in at91ether_clk_init()
4693 struct clk **hclk, struct clk **tx_clk, in fu540_c000_clk_init() argument
4699 err = macb_clk_init(pdev, pclk, hclk, tx_clk, rx_clk, tsu_clk); in fu540_c000_clk_init()
4717 *tx_clk = devm_clk_register(&pdev->dev, &mgmt->hw); in fu540_c000_clk_init()
4718 if (IS_ERR(*tx_clk)) { in fu540_c000_clk_init()
4719 err = PTR_ERR(*tx_clk); in fu540_c000_clk_init()
4723 err = clk_prepare_enable(*tx_clk); in fu540_c000_clk_init()
4725 dev_err(&pdev->dev, "failed to enable tx_clk (%u)\n", err); in fu540_c000_clk_init()
4726 *tx_clk = NULL; in fu540_c000_clk_init()
4735 macb_clks_disable(*pclk, *hclk, *tx_clk, *rx_clk, *tsu_clk); in fu540_c000_clk_init()
5004 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL; in macb_probe() local
5031 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk, &tsu_clk); in macb_probe()
5071 bp->tx_clk = tx_clk; in macb_probe()
5202 macb_clks_disable(pclk, hclk, tx_clk, rx_clk, tsu_clk); in macb_probe()
5228 macb_clks_disable(bp->pclk, bp->hclk, bp->tx_clk, in macb_remove()
5457 macb_clks_disable(bp->pclk, bp->hclk, bp->tx_clk, bp->rx_clk, bp->tsu_clk); in macb_runtime_suspend()
5472 clk_prepare_enable(bp->tx_clk); in macb_runtime_resume()