Lines Matching refs:clk
13 static ulong tegra186_clk_get_rate(struct clk *clk) in tegra186_clk_get_rate() argument
19 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_get_rate()
20 clk->id); in tegra186_clk_get_rate()
22 req.cmd_and_id = (CMD_CLK_GET_RATE << 24) | clk->id; in tegra186_clk_get_rate()
24 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_get_rate()
32 static ulong tegra186_clk_set_rate(struct clk *clk, ulong rate) in tegra186_clk_set_rate() argument
38 debug("%s(clk=%p, rate=%lu) (dev=%p, id=%lu)\n", __func__, clk, rate, in tegra186_clk_set_rate()
39 clk->dev, clk->id); in tegra186_clk_set_rate()
41 req.cmd_and_id = (CMD_CLK_SET_RATE << 24) | clk->id; in tegra186_clk_set_rate()
44 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_set_rate()
52 static int tegra186_clk_en_dis(struct clk *clk, in tegra186_clk_en_dis() argument
59 req.cmd_and_id = (cmd << 24) | clk->id; in tegra186_clk_en_dis()
61 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_en_dis()
69 static int tegra186_clk_enable(struct clk *clk) in tegra186_clk_enable() argument
71 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_enable()
72 clk->id); in tegra186_clk_enable()
74 return tegra186_clk_en_dis(clk, CMD_CLK_ENABLE); in tegra186_clk_enable()
77 static int tegra186_clk_disable(struct clk *clk) in tegra186_clk_disable() argument
79 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_disable()
80 clk->id); in tegra186_clk_disable()
82 return tegra186_clk_en_dis(clk, CMD_CLK_DISABLE); in tegra186_clk_disable()