Lines Matching refs:clk_ref
46 struct clk *clk_ref; member
56 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_suspend()
66 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_resume()
246 pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); in img_spdif_out_hw_params()
249 pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); in img_spdif_out_hw_params()
258 clk_set_rate(spdif->clk_ref, pre_div_b); in img_spdif_out_hw_params()
260 clk_set_rate(spdif->clk_ref, pre_div_a); in img_spdif_out_hw_params()
267 clk_rate = clk_get_rate(spdif->clk_ref); in img_spdif_out_hw_params()
351 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_spdif_out_probe()
352 if (IS_ERR(spdif->clk_ref)) { in img_spdif_out_probe()
353 if (PTR_ERR(spdif->clk_ref) != -EPROBE_DEFER) in img_spdif_out_probe()
355 return PTR_ERR(spdif->clk_ref); in img_spdif_out_probe()