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()
4004 static void macb_clks_disable(struct clk *pclk, struct clk *hclk, struct clk *tx_clk, in macb_clks_disable() argument
4012 { .clk = tx_clk }, in macb_clks_disable()
4019 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument
4044 *tx_clk = devm_clk_get_optional(&pdev->dev, "tx_clk"); in macb_clk_init()
4045 if (IS_ERR(*tx_clk)) in macb_clk_init()
4046 return PTR_ERR(*tx_clk); in macb_clk_init()
4068 err = clk_prepare_enable(*tx_clk); in macb_clk_init()
4070 dev_err(&pdev->dev, "failed to enable tx_clk (%d)\n", err); in macb_clk_init()
4092 clk_disable_unprepare(*tx_clk); in macb_clk_init()
4601 struct clk **hclk, struct clk **tx_clk, in at91ether_clk_init() argument
4607 *tx_clk = NULL; in at91ether_clk_init()
4698 struct clk **hclk, struct clk **tx_clk, in fu540_c000_clk_init() argument
4704 err = macb_clk_init(pdev, pclk, hclk, tx_clk, rx_clk, tsu_clk); in fu540_c000_clk_init()
4722 *tx_clk = devm_clk_register(&pdev->dev, &mgmt->hw); in fu540_c000_clk_init()
4723 if (IS_ERR(*tx_clk)) { in fu540_c000_clk_init()
4724 err = PTR_ERR(*tx_clk); in fu540_c000_clk_init()
4728 err = clk_prepare_enable(*tx_clk); in fu540_c000_clk_init()
4730 dev_err(&pdev->dev, "failed to enable tx_clk (%u)\n", err); in fu540_c000_clk_init()
4731 *tx_clk = NULL; in fu540_c000_clk_init()
4740 macb_clks_disable(*pclk, *hclk, *tx_clk, *rx_clk, *tsu_clk); in fu540_c000_clk_init()
5008 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL; in macb_probe() local
5035 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk, &tsu_clk); in macb_probe()
5075 bp->tx_clk = tx_clk; in macb_probe()
5206 macb_clks_disable(pclk, hclk, tx_clk, rx_clk, tsu_clk); in macb_probe()
5232 macb_clks_disable(bp->pclk, bp->hclk, bp->tx_clk, in macb_remove()
5461 macb_clks_disable(bp->pclk, bp->hclk, bp->tx_clk, bp->rx_clk, bp->tsu_clk); in macb_runtime_suspend()
5476 clk_prepare_enable(bp->tx_clk); in macb_runtime_resume()