Lines Matching refs:clkdev
177 static int skl_clk_change_status(struct skl_clk *clkdev, in skl_clk_change_status() argument
183 clk_type = skl_get_clk_type(clkdev->id); in skl_clk_change_status()
187 vbus_id = skl_get_vbus_id(clkdev->id, clk_type); in skl_clk_change_status()
191 rcfg = skl_get_rate_cfg(clkdev->pdata->ssp_clks[clkdev->id].rate_cfg, in skl_clk_change_status()
192 clkdev->rate); in skl_clk_change_status()
196 return skl_send_clk_dma_control(clkdev->pdata->pvt_data, rcfg, in skl_clk_change_status()
202 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_prepare() local
204 return skl_clk_change_status(clkdev, true); in skl_clk_prepare()
209 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_unprepare() local
211 skl_clk_change_status(clkdev, false); in skl_clk_unprepare()
217 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_set_rate() local
224 rcfg = skl_get_rate_cfg(clkdev->pdata->ssp_clks[clkdev->id].rate_cfg, in skl_clk_set_rate()
229 clk_type = skl_get_clk_type(clkdev->id); in skl_clk_set_rate()
234 clkdev->rate = rate; in skl_clk_set_rate()
242 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_recalc_rate() local
244 if (clkdev->rate) in skl_clk_recalc_rate()
245 return clkdev->rate; in skl_clk_recalc_rate()
321 struct skl_clk *clkdev; in register_skl_clk() local
324 clkdev = devm_kzalloc(dev, sizeof(*clkdev), GFP_KERNEL); in register_skl_clk()
325 if (!clkdev) in register_skl_clk()
333 clkdev->hw.init = &init; in register_skl_clk()
334 clkdev->pdata = clk_pdata; in register_skl_clk()
336 clkdev->id = id; in register_skl_clk()
337 ret = devm_clk_hw_register(dev, &clkdev->hw); in register_skl_clk()
339 clkdev = ERR_PTR(ret); in register_skl_clk()
340 return clkdev; in register_skl_clk()
343 clkdev->lookup = clkdev_hw_create(&clkdev->hw, init.name, NULL); in register_skl_clk()
344 if (!clkdev->lookup) in register_skl_clk()
345 clkdev = ERR_PTR(-ENOMEM); in register_skl_clk()
347 return clkdev; in register_skl_clk()