Lines Matching full:cc
39 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_prepare() local
41 return cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_prepare()
48 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_unprepare() local
50 cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_unprepare()
89 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_vote_q6dsp_block() local
91 return cc->desc->lpass_vote_clk(clk->dev, clk->q6dsp_clk_id, in clk_vote_q6dsp_block()
98 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_unvote_q6dsp_block() local
100 cc->desc->lpass_unvote_clk(clk->dev, clk->q6dsp_clk_id, clk->handle); in clk_unvote_q6dsp_block()
112 struct q6dsp_cc *cc = data; in q6dsp_of_clk_hw_get() local
117 dev_err(cc->dev, "Invalid clk specifier (%d, %d)\n", idx, attr); in q6dsp_of_clk_hw_get()
121 if (cc->clks[idx]) { in q6dsp_of_clk_hw_get()
122 cc->clks[idx]->attributes = attr; in q6dsp_of_clk_hw_get()
123 return &cc->clks[idx]->hw; in q6dsp_of_clk_hw_get()
131 struct q6dsp_cc *cc; in q6dsp_clock_dev_probe() local
137 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in q6dsp_clock_dev_probe()
138 if (!cc) in q6dsp_clock_dev_probe()
145 cc->desc = desc; in q6dsp_clock_dev_probe()
146 cc->dev = dev; in q6dsp_clock_dev_probe()
170 cc->clks[id] = clk; in q6dsp_clock_dev_probe()
177 ret = devm_of_clk_add_hw_provider(dev, q6dsp_of_clk_hw_get, cc); in q6dsp_clock_dev_probe()
181 dev_set_drvdata(dev, cc); in q6dsp_clock_dev_probe()