Lines Matching refs:clk
581 struct clk *clk; in cnss_get_clk_single() local
584 clk = devm_clk_get(dev, clk_info->cfg.name); in cnss_get_clk_single()
585 if (IS_ERR(clk)) { in cnss_get_clk_single()
586 ret = PTR_ERR(clk); in cnss_get_clk_single()
596 clk_info->clk = clk; in cnss_get_clk_single()
609 devm_clk_put(dev, clk_info->clk); in cnss_put_clk_single()
625 ret = clk_set_rate(clk_info->clk, clk_info->cfg.freq); in cnss_clk_on_single()
634 ret = clk_prepare_enable(clk_info->clk); in cnss_clk_on_single()
656 clk_disable_unprepare(clk_info->clk); in cnss_clk_off_single()
709 if (IS_ERR_OR_NULL(clk_info->clk)) in cnss_get_clk()
734 if (IS_ERR_OR_NULL(clk_info->clk)) in cnss_put_clk()
748 if (IS_ERR_OR_NULL(clk_info->clk)) in cnss_clk_on()
759 if (IS_ERR_OR_NULL(clk_info->clk)) in cnss_clk_on()
774 if (IS_ERR_OR_NULL(clk_info->clk)) in cnss_clk_off()