Lines Matching refs:gclk
242 struct clk *gclk; member
447 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, in mchp_i2s_mcc_config_divs()
491 if (best_clk == dev->gclk) in mchp_i2s_mcc_config_divs()
702 ret = clk_set_rate(dev->gclk, rate); in mchp_i2s_mcc_hw_params()
710 ret = clk_prepare(dev->gclk); in mchp_i2s_mcc_hw_params()
724 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_params()
776 clk_disable(dev->gclk); in mchp_i2s_mcc_hw_free()
780 clk_unprepare(dev->gclk); in mchp_i2s_mcc_hw_free()
841 err = clk_enable(dev->gclk); in mchp_i2s_mcc_trigger()
1039 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_i2s_mcc_probe()
1040 if (IS_ERR(dev->gclk)) { in mchp_i2s_mcc_probe()
1041 if (PTR_ERR(dev->gclk) == -EPROBE_DEFER) in mchp_i2s_mcc_probe()
1045 dev->gclk = NULL; in mchp_i2s_mcc_probe()