Lines Matching defs:clk
9 #include <linux/clk.h>
10 #include <linux/clk-provider.h>
460 * @clk: Pointer to the clock to change
464 static void macb_set_tx_clk(struct clk *clk, int speed, struct net_device *dev)
468 if (!clk)
485 rate_rounded = clk_round_rate(clk, rate);
498 if (clk_set_rate(clk, rate_rounded))
3018 struct clk *tsu_clk;
3606 static int macb_clk_init(struct platform_device *pdev, struct clk **pclk,
3607 struct clk **hclk, struct clk **tx_clk,
3608 struct clk **rx_clk, struct clk **tsu_clk)
4215 static int at91ether_clk_init(struct platform_device *pdev, struct clk **pclk,
4216 struct clk **hclk, struct clk **tx_clk,
4217 struct clk **rx_clk, struct clk **tsu_clk)
4312 static int fu540_c000_clk_init(struct platform_device *pdev, struct clk **pclk,
4313 struct clk **hclk, struct clk **tx_clk,
4314 struct clk **rx_clk, struct clk **tsu_clk)
4343 dev_info(&pdev->dev, "Registered clk switch '%s'\n", init.name);
4474 int (*clk_init)(struct platform_device *, struct clk **,
4475 struct clk **, struct clk **, struct clk **,
4476 struct clk **) = macb_config->clk_init;
4479 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL;
4480 struct clk *tsu_clk = NULL;